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
Main
TextFormattingRules
WhatIsWiki




JSPWiki v2.2.33

[RSS]


Hide Menu

SandBox


Difference between version 318 and version 252:

At line 1 changed 1 line.
[{Java2HtmlPlugin
[this mailing list thread|http://nagoya.apache.org/eyebrowse/[email protected]&msgNo=451].
At line 3 changed 3 lines.
<bean id="userManagerTarget" class="org.appfuse.service.impl.UserManagerImpl">
<property name="userDAO"><ref local="userDAO"/></property>
</bean>
[What is this SandBox?|WhatIsThisSandBox]
At line 7 changed 1 line.
}]
[{Java2HtmlPlugin
At line 7 added 2 lines.
import javax.naming.Context;
import javax.naming.InitialContext;
At line 10 added 1 line.
import junit.framework.TestCase;
At line 12 added 5 lines.
import org.mockejb.MockContainer;
import org.mockejb.SessionBeanDescriptor;
import org.mockejb.jndi.MockContextFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
At line 18 added 7 lines.
/**
* Parent TestCase class for testing EJBs using MockEJB
*
* @author mraible
*
*/
public abstract class MockEJBTestCase extends TestCase {
At line 26 added 8 lines.
/**
* This method sets up a MockContainer and allows you to deploy an EJB to
* it. Override <code>onSetUp()</code> to add custom set-up behavior.
*
* @see #onSetUp()
*/
protected final void setUp() throws Exception {
MockContextFactory.setAsInitial();
At line 14 changed 1 line.
[1|http://www.pantandsocks.co.uk/] [2|http://www.cheapest-phone.co.uk/] [3| http://www.hewittlandscapes.co.uk/] [4|http://www.longcrossgroup.co.uk/] [5|http://www.buzz-hotels.co.uk/] [6|http://www.fuelcellmarketplace.co.uk/] [7| http://www.tcom-control.co.uk/] [8|http://www.bodet-clocks.co.uk/] [9|http://www.execsoft-software.co.uk/] [10|http://www.cragrats-catering.co.uk/] [11|http://www.jgc-network.co.uk/] [12|http://www.owaceilings.co.uk/] [13| http://www.beaumont-bar.co.uk/] [14|http://www.lasikclinic.co.uk/] [15| http://www.global-phonecard.co.uk/] [16| http://www.barrym.co.uk/] [17|http://www.parkersexecutivecar.co.uk/] [18|http://www.tcom-control.co.uk/] [19|http://www.parkersexecutivecar.co.uk/] [20|http://www.executive-chauffeur-hire.co.uk/] [21|http://www.cragrats-education.co.uk/] [22|http://www.cragrats-inspiring.co.uk/] [23|http://www.sec-battery.co.uk/] [24|http://www.cragrats-react.co.uk/] [25|http://www.cragratstraining.co.uk/] [26|http://www.cornishholidaysuk.com/] [27|http://www.allwoodoxford.com/] [28|http://www.uvinewine.co.uk/] [29|http://www.telematicsone.com/] [30|http://telematiksone.co.uk] [31|http://www.real-worldinternational.co.uk] [32|http://www.find-a-mortgage.co.uk] [33|http://www.lifeslittle-luxuries.co.uk] [34|http://www.haugeprint.co.uk] [35|http://www.logical-planet.co.uk] [36|http://www.fabricant-accessories.co.uk] [37|http://www.fleet-drive.co.uk] [38|http://www.prepaid-telephonecards.co.uk] [39|http://www.budget-phonecards.co.uk]
Context ctx = new InitialContext();
ApplicationContext appCtx =
new ClassPathXmlApplicationContext(getConfigLocations());
ctx.bind("java:comp/env/jdbc/appDS", appCtx.getBean("dataSource"));
MockContainer mc = new MockContainer(ctx);
SessionBeanDescriptor dd = getDeploymentDescriptor();
mc.deploy(dd);
onSetUp();
}
At line 47 added 3 lines.
protected String[] getConfigLocations() {
return new String[] { "classpath:/applicationContext.xml" };
}
At line 51 added 18 lines.
protected void onSetUp() throws Exception {}
protected abstract SessionBeanDescriptor getDeploymentDescriptor();
}
}]
[CreateDAO_zh]
[CreateDAO_sp]
[CreateManager_es]
[QuickStart Guide_es]
[SpringControllerUnitTest]
[δΈ­ζ–‡ζŒ‡ε—|Articles_zh]

Back to SandBox, or to the Page History.