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

At line 1 added 1 line.
[this mailing list thread|http://nagoya.apache.org/eyebrowse/[email protected]&msgNo=451].
At line 2 changed 44 lines.
[[http://www.yourgoogle.com google排名]]
[[http://www.yourgoogle.com/google-list/google-list.htm google左侧排名]]
[[http://www.yourgoogle.com/webdesign/webdesign-1.htm 网站建设]]
[[http://googlecn.freewebpage.org 搜索引擎推广]]
[[http://googlesz.freewebpage.org google推广]]
[[http://googlegd.freewebpage.org google排名]]
[[http://www.inflatables-china.com/ inflatable games]]
[[http://www.inflatables-china.com china inflatables]]
[[http://www.inflatables-china.com china inflatable]]
[[http://www.szhicom.net 邮件服务器]]
[[http://www.szhicom.net 信息服务器]]
[[http://www.szhicom.net 网站服务器]]
[[http://glasses.freewebpage.org 玻璃]]
[[http://glasses.freewebpage.org 玻璃技术]]
[[http://glasses.freewebpage.org 玻璃设备]]
[[http://www.swellongtools.com 五金工具]]
[[http://www.swellongtools.com 进口工具]]
[[http://nami8.freewebpage.org 纳米]]
[[http://cellphone.freewebpage.org 手机维修]]
[[http://cellphone.freewebpage.org 手机维修软件]]
[[http://cellphone.freewebpage.org 手机维修系统]]
[[http://cellphone.freewebpage.org 手机维修 软件下载]]
[[http://www.creator-cg.com 投影工程]]
[[http://www.creator-cg.com 会议室工程]]
[[http://www.creator-cg.com 多媒体电教室]]
[[http://www.sfcomm.com 网络摄像机]]
[[http://www.zhongzhibiotech.com/en Pyrethrum]]
[[http://www.flowerwish.com 鲜花]]
[[http://www.flowerwish.com 网上花店]]
[[http://www.flowerwish.com 网上订花]]
[[http://inflatable.freewebpage.org inflatable tent]]
[[http://inflatable.freewebpage.org inflatable games]]
[[http://www.flowerwish.com 鲜花]]
[[http://www.flowerwish.com 网上花店]]
[[http://www.flowerwish.com 网上订花]]
[[http://www.zhongzhibiotech.com/en/chuchongju.asp Pyrethrum]]
[[http://www.cnliandong.com/products.asp 发电机组]]
[[http://www.cnliandong.com/products.asp 柴油发电机组]]
[[http://www.blueattain.com 管理资料]]
[[http://www.szsuun.com 多功能网关]]
[[http://www.szsuun.com/htm/kvm/kvm1.htm KVM]]
[[http://swellong.freewebpage.org 网络摄像机]]
[[http://www.tlup.com 网络营销]]
[[http://www.tlup.com 项目合作]]
[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.