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 250:

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 5 added 51 lines.
[{Java2HtmlPlugin
import javax.naming.Context;
import javax.naming.InitialContext;
import junit.framework.TestCase;
import org.mockejb.MockContainer;
import org.mockejb.SessionBeanDescriptor;
import org.mockejb.jndi.MockContextFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Parent TestCase class for testing EJBs using MockEJB
*
* @author mraible
*
*/
public abstract class MockEJBTestCase extends TestCase {
/**
* 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();
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();
}
protected String[] getConfigLocations() {
return new String[] { "classpath:/applicationContext.xml" };
}
protected void onSetUp() throws Exception {}
protected abstract SessionBeanDescriptor getDeploymentDescriptor();
}
At line 58 added 2 lines.
[CreateDAO_zh]
[CreateDAO_sp]
At line 61 added 1 line.
[CreateManager_es]
At line 63 added 1 line.
[QuickStart Guide_es]
At line 65 added 1 line.
[SpringControllerUnitTest]
At line 13 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]
[δΈ­ζ–‡ζŒ‡ε—|Articles_zh]

Back to SandBox, or to the Page History.