Raible's Wiki

Raible Designs
Wiki Home
Recent Changes


  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in

Referenced by

JSPWiki v2.2.33


Hide Menu


Difference between version 318 and version 116:

At line 1 changed 4 lines.
__This is an example__, but afterwards the magic fades.
* What can you do
* with a bulleted list?
[this mailing list thread|http://nagoya.apache.org/eyebrowse/ReadMsg?listName=myfaces-user@incubator.apache.org&msgNo=451].
At line 6 changed 4 lines.
# Same kinda stuff
# you can do with
# a numbered list, but
# without the numbers
[What is this SandBox?|WhatIsThisSandBox]
At line 11 changed 1 line.
{{{ A code example? }}}
At line 13 changed 1 line.
And what happens if I refer to the footnote[1]? It creates a link, but footnotes don't appear automatically at the end of the page, so you need tomake sure you put them there yourself.
import javax.naming.Context;
import javax.naming.InitialContext;
At line 10 added 1 line.
import junit.framework.TestCase;
At line 16 changed 1 line.
[#1] Where does this appear?
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 {
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();
protected String[] getConfigLocations() {
return new String[] { "classpath:/applicationContext.xml" };
protected void onSetUp() throws Exception {}
protected abstract SessionBeanDescriptor getDeploymentDescriptor();
[QuickStart Guide_es]

Back to SandBox, or to the Page History.