At line 1 changed 1 line. |
:) |
[this mailing list thread|http://nagoya.apache.org/eyebrowse/[email protected]&msgNo=451]. |
At line 3 changed 4 lines. |
hi |
this is |
a return line |
here |
[What is this SandBox?|WhatIsThisSandBox] |
At line 8 changed 2 lines. |
here |
is a double line |
[{Java2HtmlPlugin |
At line 11 changed 1 line. |
{{{another test}}} |
import javax.naming.Context; |
import javax.naming.InitialContext; |
At line 13 changed 1 line. |
The line should read: |
import junit.framework.TestCase; |
At line 15 changed 3 lines. |
{{{ |
Foo f = (Foo) FooFactory.newInstance(); |
}}} |
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 21 changed 2 lines. |
test of preview save |
Test |
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 24 changed 25 lines. |
|nice|template|how|can |
|i|make|tables|look |
|better|?|?|? |
[网站建设|http://www.emmss.com] |
[s1|http://www.emmss.com/sitemap.html] |
[s2|http://www.emmss.com/sitemap2.asp] |
[01|http://www.emmss.com/pages/website.asp] |
[02|http://www.emmss.com/pages/company.asp] |
[03|http://www.emmss.com/pages/net_company.asp] |
[04|http://www.emmss.com/pages/citys.asp] |
[05|http://www.emmss.com/pages/web.asp] |
[06|http://www.emmss.com/pages/solutions.html] |
[07|http://www.emmss.com/pages/chongqing/] |
[08|http://www.emmss.com/pages/chongqing1/] |
[09|http://www.emmss.com/pages/chongqing2/] |
[10|http://www.emmss.com/pages/beijing/] |
[11|http://www.emmss.com/pages/beijing1/] |
[12|http://www.emmss.com/pages/beijing2/] |
[13|http://www.emmss.com/pages/shanghai/] |
[14|http://www.emmss.com/pages/shanghai1/] |
[15|http://www.emmss.com/pages/shanghai2/] |
[16|http://www.emmss.com/pages/shenzhen/] |
[17|http://www.emmss.com/pages/shenzhen1/] |
[18|http://www.emmss.com/pages/shenzhen2/] |
[{Java2HtmlPlugin |
protected String[] getConfigLocations() { |
return new String[] { "classpath:/applicationContext.xml" }; |
} |
At line 50 changed 1 line. |
private ApplicationContext ctx; |
protected void onSetUp() throws Exception {} |
At line 52 changed 4 lines. |
public void setUp() throws Exception { |
String[] paths = {"/applicationContext.xml", "/action-servlet.xml"}; |
ctx = new ClassPathXmlApplicationContext(paths); |
} |
protected abstract SessionBeanDescriptor getDeploymentDescriptor(); |
} |
|
At line 57 changed 1 line. |
---- |
|
[CreateDAO_zh] |
[CreateDAO_sp] |
|
[CreateManager_es] |
|
[QuickStart Guide_es] |
|
[SpringControllerUnitTest] |
|
|
[δΈζζε|Articles_zh] |