Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_pt
CreateActions
CreateDAO
CreateDAO_sp
CreateDAOiBATIS
CreateDAOiBATIS_ko
CreateManager_es
JSFBeans
SpringControllers
...and 3 more




JSPWiki v2.2.33

[RSS]


Hide Menu

CreateManager


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.