At line 1 changed 4 lines. |
hi |
this is |
a return line |
here |
[this mailing list thread|http://nagoya.apache.org/eyebrowse/[email protected]&msgNo=451]. |
At line 6 changed 2 lines. |
here |
is a double line |
[What is this SandBox?|WhatIsThisSandBox] |
At line 9 changed 1 line. |
another test |
[{Java2HtmlPlugin |
At line 11 changed 1 line. |
The line should read: |
import javax.naming.Context; |
import javax.naming.InitialContext; |
At line 13 changed 3 lines. |
{{{ |
Foo f = (Foo) FooFactory.newInstance(); |
}}} |
import junit.framework.TestCase; |
At line 17 changed 1 line. |
[Toner | http://www.toner-preisvergleich.de] |
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 19 changed 2 lines. |
test of preview save |
Test |
/** |
* Parent TestCase class for testing EJBs using MockEJB |
* |
* @author mraible |
* |
*/ |
public abstract class MockEJBTestCase extends TestCase { |
At line 22 changed 3 lines. |
|nice|template|how|can |
|i|make|tables|look |
|better|?|?|? |
/** |
* 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 35 added 11 lines. |
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 27 changed 2 lines. |
* let's make a bulleted list |
* with two items and a [link|SandBox] |
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] |