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

At line 1 changed 17 lines.
[http://www.sovilo.com/poster/shops/monet_poster.htm|monet posters and prints]
[http://www.sovilo.com/poster/shops/animal_poster.htm|animal posters and prints]
[http://www.sovilo.com/poster/shops/inspirational_poster.htm|inspirational posters and prints ]
[http://www.sovilo.com/poster/shops/motivational_poster.htm | motivational poster and prints]
[http://www.sovilo.com/poster/shops/space_poster.htm | space posters and prints]
[http://www.sovilo.com/poster/shops/lighthouse_poster.htm | lighthouse posters and prints]]
[http://www.sovilo.com/poster/shops/nature_poster.htm | nature posters and prints]
[http://www.sovilo.com/poster/shops/suflower_poster.htm | sunflower posters and prints]
[http://www.sovilo.com/poster/shops/cat_poster.htm| cat posters and prints]
[http://www.sovilo.com/poster/shops/safety_poster.htm |safety posters and prints]
[http://www.sovilo.com/poster/shops/fineart_poster.htm | fine art posters and prints]
[http://www.sovilo.com/poster/shops/audubon_poster.htm | audubon posters and prints]
[http://www.sovilo.com/poster/shops/eminem_poster.htm | eminem posters]
[http://www.sovilo.com/poster/shops/sharapova_poster.htm | sharapova posters]
[http://www.sovilo.com/poster | sharapova posters eminem posters audubon posters and prints fine art posters and prints safety posters and prints cat posters and prints
sunflower posters and prints nature posters and prints lighthouse posters and prints monet posters and prints
animal posters and prints inspirational posters and prints space posters and prints motivational posters and prints]
[this mailing list thread|http://nagoya.apache.org/eyebrowse/[email protected]&msgNo=451].
[What is this SandBox?|WhatIsThisSandBox]
[{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();
}
}]
[CreateDAO_zh]
[CreateDAO_sp]
[CreateManager_es]
[QuickStart Guide_es]
[SpringControllerUnitTest]
[δΈ­ζ–‡ζŒ‡ε—|Articles_zh]

Back to SandBox, or to the Page History.