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

At line 1 changed 1 line.
[{Java2HtmlPlugin
[this mailing list thread|http://nagoya.apache.org/eyebrowse/[email protected]&msgNo=451].
At line 3 changed 4 lines.
BindException errors = new BindException(user, "user");
validator.validate(user, errors);
if (errors.hasErrors()) {
throw new MyValidationException("blabla", errors);
[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();
At line 55 added 1 line.
At line 58 added 2 lines.
[CreateDAO_zh]
[CreateDAO_sp]
At line 11 changed 1 line.
Hilarious dude!
[CreateManager_es]
At line 13 changed 1 line.
[http://www.cameltoe-world.com]
[QuickStart Guide_es]
At line 15 changed 1 line.
thanks for the provider of the website and please visit the webpages below
[SpringControllerUnitTest]
At line 17 removed 13 lines.
[http://www.tejia.com.cn &#20013;&#22269;&#29305;&#20215;&#25968;&#30721;&#21830;&#22478;-&#25968;&#30721;&#30456;&#26426;]
[http://www.tejia.com.cn/pages0.html &#20013;&#22269;&#29305;&#20215;&#25968;&#30721;&#21830;&#22478;-&#25968;&#30721;&#30456;&#26426;&#39318;&#39029;]
[http://www.tejia.com.cn/website.html &#20013;&#22269;&#29305;&#20215;&#25968;&#30721;&#21830;&#22478;-&#25968;&#30721;&#30456;&#26426;&#22320;&#22270;]
[http://www.tejia.com.cn/lbid4.html &#25968;&#30721;&#30456;&#26426;&#19987;&#21306;]
[http://www.tejia.com.cn/pages1.html &#25968;&#30721;&#30456;&#26426;]
[http://www.tejia.com.cn/website1.html &#25968;&#30721;&#30456;&#26426;&#22320;&#22270;]
[http://www.tejia.com.cn/lbid31.html MP3&#25773;&#25918;&#22120;&#19987;&#21306;]
[http://www.tejia.com.cn/Pages2.html MP3&#25773;&#25918;&#22120;]
[http://www.tejia.com.cn/website2.html MP3&#25773;&#25918;&#22120;&#22320;&#22270;]
[http://www.tejia.com.cn/lbid33.html &#25968;&#30721;&#25668;&#20687;&#22836;&#19987;&#21306;]
[http://www.tejia.com.cn/pages3.html &#25968;&#30721;&#25668;&#20687;&#22836;]
[http://www.tejia.com.cn/website3.html &#25968;&#30721;&#25668;&#20687;&#22836;&#22320;&#22270;]
[http://www.tejia.com.cn/links.asp &#25968;&#30721;&#30456;&#26426;&#21451;&#24773;&#38142;&#25509;]
At line 68 added 1 line.
[δΈ­ζ–‡ζŒ‡ε—|Articles_zh]

Back to SandBox, or to the Page History.