CreateManager |
|
Your trail: |
Difference between
version 8
and
version 7:
At line 20 changed 1 line. |
;:%%(color: blue)''I usually copy (open → save as) an existing test (i.e. UserManagerTest.java) and find/replace [[Uu]ser with [[Pp]erson, or whatever the name of my object is.%% |
;:%%(color: blue)''I usually copy (open → save as) an existing test (i.e. UserManagerTest.java) and find/replace [[Uu]ser with [[Pp]erson, or whatever the name of my object is.''%% |
{{{ |
package org.appfuse.webapp.service; |
At line 24 added 35 lines. |
import org.apache.commons.logging.Log; |
import org.apache.commons.logging.LogFactory; |
|
import org.appfuse.webapp.form.PersonForm; |
|
public class PersonManagerTest extends BaseManagerTestCase { |
//~ Instance fields ======================================================== |
|
private PersonManager mgr = null; |
private Log log = LogFactory.getLog(PersonManagerTest.class); |
private PersonForm personForm; |
|
//~ Constructors =========================================================== |
|
public PersonManagerTest(String name) { |
super(name); |
} |
|
//~ Methods ================================================================ |
|
protected void setUp() throws Exception { |
super.setUp(); |
mgr = new PersonManagerImpl(conn); |
} |
|
protected void tearDown() throws Exception { |
super.tearDown(); |
mgr = null; |
} |
|
public static void main(String[] args) { |
junit.textui.TestRunner.run(PersonManagerTest.class); |
} |
} |
}}} |
Back to CreateManager,
or to the Page History.
|