At line 1 changed 25 lines. |
[http://www.yourgoogle.com/] |
[http://www.yourgoogle.com/google-list/] |
[http://www.yourgoogle.com/webdesign/] |
[http://googlecn.freewebpage.org/] |
[http://googlesz.freewebpage.org/] |
[http://googlegd.freewebpage.org/] |
[http://www.inflatables-china.com/] |
[http://www.szhicom.net/] |
[http://www.tlup.com/] |
[http://glasses.freewebpage.org/] |
[http://www.swellongtools.com/] |
[http://nami8.freewebpage.org/] |
[http://cellphone.freewebpage.org/] |
[http://www.creator-cg.com/] |
[http://swellong.freewebpage.org/] |
[http://inflatable.freewebpage.org/] |
[http://www.blueattain.com] |
[http://www.flowerwish.com] |
[http://www.blueattain.com] |
[http://www.flowerwish.com] |
[http://www.szsuun.com] |
[http://www.szsuun.com/htm/kvm/kvm1.htm] |
[http://www.zhongzhibiotech.com/en/chuchongju.asp] |
[http://www.cnliandong.com/products.asp] |
[http://www.sfcomm.com] |
[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] |