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/[email protected]&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? }}} |
[{Java2HtmlPlugin |
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 to make sure you put them there yourself. |
import javax.naming.Context; |
import javax.naming.InitialContext; |
At line 15 changed 3 lines. |
Any chance of this getting practiacl applications? |
Been done at: |
http://www.furlongspetsupply.com/index.htm |
import junit.framework.TestCase; |
At line 12 added 5 lines. |
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 20 changed 1 line. |
Now, go see the [TextFormattingRules]. |
/** |
* Parent TestCase class for testing EJBs using MockEJB |
* |
* @author mraible |
* |
*/ |
public abstract class MockEJBTestCase extends TestCase { |
At line 22 changed 1 line. |
This is ''way'' better than some other so-called "Wiki" stuff I've seen. |
/** |
* 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 24 changed 1 line. |
[#1] Where does this appear? |
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 47 added 3 lines. |
protected String[] getConfigLocations() { |
return new String[] { "classpath:/applicationContext.xml" }; |
} |
At line 27 changed 1 line. |
For all of your Harley-Davidson, and Honda Motorcycle, Parts, Accessories, Apparel, and Gift needs log onto http://www.tnt-actionsports.com/. |
protected void onSetUp() throws Exception {} |
At line 29 changed 3 lines. |
[mangeur de cigogne|http://www.noname.fr/mangeur-de-cigogne/] |
[mangeur de cigogne|http://mangeur-de-cigogne.ipowa.com/] |
[nigritude ultramarine|http://nigritude-ultramarine.ipowa.com/] |
protected abstract SessionBeanDescriptor getDeploymentDescriptor(); |
} |
|
}] |
|
[CreateDAO_zh] |
[CreateDAO_sp] |
|
[CreateManager_es] |
|
[QuickStart Guide_es] |
|
[SpringControllerUnitTest] |
|
|
[δΈζζε|Articles_zh] |