| At line 1 changed 1 line. |
| :) |
| [this mailing list thread|http://nagoya.apache.org/eyebrowse/[email protected]&msgNo=451]. |
| At line 3 changed 4 lines. |
| hi |
| this is |
| a return line |
| here |
| [What is this SandBox?|WhatIsThisSandBox] |
| At line 8 changed 2 lines. |
| here |
| is a double line |
| [{Java2HtmlPlugin |
| At line 11 changed 1 line. |
| {{{another test}}} |
| import javax.naming.Context; |
| import javax.naming.InitialContext; |
| At line 13 changed 3 lines. |
| {{{ |
| Foo f = (Foo) FooFactory.newInstance(); |
| }}} |
| 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 18 changed 3 lines. |
| |nice|template|how|can |
| |i|make|tables|look |
| |better|?|?|? |
| /** |
| * Parent TestCase class for testing EJBs using MockEJB |
| * |
| * @author mraible |
| * |
| */ |
| public abstract class MockEJBTestCase extends TestCase { |
| At line 22 changed 1 line. |
| [{Java2HtmlPlugin |
| /** |
| * 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 6 lines. |
| public void setUp() throws Exception { |
| String[] paths = {"/applicationContext.xml", "/action-servlet.xml"}; |
| ctx = new ClassPathXmlApplicationContext(paths); |
| } |
| }] |
| ---- |
| 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 51 added 1 line. |
| protected void onSetUp() throws Exception {} |
| At line 53 added 2 lines. |
| protected abstract SessionBeanDescriptor getDeploymentDescriptor(); |
| } |
| At line 56 added 1 line. |
| }] |
| At line 58 added 2 lines. |
| [CreateDAO_zh] |
| [CreateDAO_sp] |
| At line 61 added 1 line. |
| [CreateManager_es] |
| At line 63 added 1 line. |
| [QuickStart Guide_es] |
| At line 65 added 1 line. |
| [SpringControllerUnitTest] |
| At line 40 changed 10 lines. |
|
|
|
|
|
|
|
| [federal firearms license | http://www.7-7.us/federal-firearms-license/] |
| [baby sleep | http://www.baby-sleep.us] |
| [baby slepe problems | http://www.baby-info.us/sleep/] |
| [δΈζζε|Articles_zh] |