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

At line 1 changed 1 line.
[{Java2HtmlPlugin
[this mailing list thread|http://nagoya.apache.org/eyebrowse/[email protected]&msgNo=451].
At line 3 changed 6 lines.
public class UserWebTest extends WebTestCase {
public UserWebTest(String name) {
super(name);
getTestContext().setBaseUrl("http://localhost:8080/myusers");
}
[What is this SandBox?|WhatIsThisSandBox]
At line 10 changed 2 lines.
// should there be a setup method that adds a user
// before each test/method is called?
[{Java2HtmlPlugin
At line 13 changed 19 lines.
public void testWelcomePage() {
beginAt("/");
assertTitleEquals("MyUsers ~ Welcome");
}
public void testAddUser() {
beginAt("/editUser.html");
assertTitleEquals("MyUsers ~ User Details");
setFormElement("firstName", "Spring");
setFormElement("lastName", "User");
submit("save");
assertTextPresent("saved successfully");
}
public void testListUsers() {
beginAt("/users.html");
// check that table is present
assertTablePresent("userList");
import javax.naming.Context;
import javax.naming.InitialContext;
At line 33 changed 18 lines.
// check that a set of strings are present somewhere in table
assertTextInTable("userList",
new String[] {"Spring", "User"});
}
public void testEditUser() {
beginAt("/editUser.html?id=1");
assertFormElementEquals("firstName", "Spring");
submit("save");
assertTitleEquals("MyUsers ~ User List");
}
public void testDeleteUser() {
beginAt("/editUser.html?id=1");
assertTitleEquals("MyUsers ~ User Details");
submit("delete");
assertTitleEquals("MyUsers ~ User List");
}
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 54 changed 1 line.
[quaker parrots|http://www.iza.net/1/50-17] [pacific parrotlet|http://www.iza.net/1/52-5] [scarlet macaw|http://www.iza.net/1/50-18] [cockatiels|http://www.iza.net/1/51-7] [blue and gold macaw|http://www.iza.net/1/50-19]
[CreateDAO_zh]
[CreateDAO_sp]
At line 61 added 1 line.
[CreateManager_es]
At line 57 changed 1 line.
Thank you for your visiting china,Some good website(china) to you:
[QuickStart Guide_es]
At line 59 changed 204 lines.
---------------------------------
http://www.gotooa.com
http://www.gotooa.com
http://www.gotooa.com
http://www.gaokao.net.cn
http://www.sinoart.com.cn
http://www.sinoart.com.cn
http://www.googlepromotion.com
http://www.googlepromotion.com
http://www.gogoogle.net google
http://www.gogoogle.net google
http://www.passion.org.cn
http://www.passion.org.cn
http://www.passion.org.cn
http://www.sxcoal.com/en/index.asp
http://www.bj-sd.com
http://www.bbell.com
http://www.gaokao.net.cn
http://www.disinfect.cn/cpjs01.htm
http://www.monarch.com.cn
http://www.bjhsdx.com
http://www.pm.tsinghua.edu.cn
http://211.157.35.153/index.asp
http://www.168flower.com
http://www.168flower.com
http://www.168flower.com
http://www.8848flower.com
http://www.8848flower.com
http://www.jinyibei.com.cn
http://www.glory-vision.com/d_lib/htdocs/index.asp
http://www.glory-vision.com
http://www.glory-vision.com/d_lib/htdocs/touyingji.htm
http://www.cstarcom.com
http://www.cstarcom.com
http://www.sinoart.com.cn/oa.htm
http://myoa.freewebpage.org
http://www.ponytest.com
http://www.ponytest.com
http://www.ponytest.com/html_cn/contact.htm
http://www.ponytest.com/html_cn/lab_environment.htm
http://www.ponytest.com/html_cn/lab_environment.htm
http://www.ponytest.com/html_cn/lab_environment.htm
http://www.ponytest.com/html_cn/lab_environment.htm
http://www.ponytest.com/html_cn/lab_environment.htm
http://www.ponytest.com/html_cn/lab_medical.htm
http://www.ponytest.com/html_cn/lab_environment.htm
http://www.ponytest.com
http://www.ponytest.com
http://www.ponytest.com
http://www.ponytest.com/html_cn/lab_medical.htm
http://www.ponytest.com/html_cn/lab_medical.htm
http://www.ponytest.com/html_cn/lab_medical.htm
http://www.ponytest.com/html_cn/lab_medical.htm
http://www.ponytest.com/html_cn/lab_medical.htm
http://www.ponytest.com
http://www.ponytest.com
http://www.bjzufang.com
http://www.bjzufang.com
http://www.bjzufang.com/p_gy.php
http://www.bjzufang.com/p_gy.php
http://www.bjzufang.com/p_gy.php
http://www.bjzufang.com/p_gy.php
http://www.bjzufang.com/p_gy.php
http://www.bjzufang.com/p_mz.php
http://www.creativetoys.com.cn
http://www.creativetoys.com.cn
http://www.creativetoys.com.cn
http://www.creativetoys.com.cn
http://www.creativetoys.com.cn
http://www.creativetoys.com.cn
http://creativetoys.com.cn/watch/ch/default.asp
http://creativetoys.com.cn/watch/ch/default.asp
http://creativetoys.com.cn/watch/ch/default.asp
http://creativetoys.com.cn/watch/ch/default.asp
http://creativetoys.com.cn/watch/ch/default.asp
http://creativetoys.com.cn/watch/ch/default.asp
http://www.multivision.com.hk/s-index.html
http://www.multivision.com.hk/s-index.html
http://www.contake.com/english/farm_08.htm
http://www.dongdao.net
http://www.dongdao.net
http://www.dongdao.net
http://www.dongdao.net/main04.htm
http://www.dongdao.net/main04.htm
http://www.dongdao.net/main04.htm
http://www.dongdao.net/main04-02.htm
http://www.bjkhp.com
http://www.bjkhp.com
http://www.bjkhp.com/operation.asp
http://www.bjkhp.com
http://www.kangxin.com
http://www.kangxin.com
http://www.kangxin.com
http://www.tmrr.com
http://www.tmrr.com
http://www.glory-vision.com
http://www.glory-vision.com/d_lib/htdocs/touyingji.htm
http://www.glory-vision.com
http://www.jinyibei.com.cn
http://www.jinyibei.com.cn/chanpin/bcq/vlp-58A.htm
http://www.jinyibei.com.cn/chaxun/arm.htm
http://www.cambridge-group.org
http://www.cambridge-group.org
http://www.bjacca.com
http://www.bjacca.com
http://www.fashuo300.com
http://www.fashuo300.com
http://www.fashuo300.com
http://www.approachina.com
http://www.approachina.com
http://www.creavic.com.cn/ois/usersites/chengwei/index.jsp
http://www.creavic.com.cn/ois/usersites/chengwei/index.jsp
http://www.jzhrb.com.cn
http://www.jzhrb.com.cn
http://www.51zhengxing.net
http://www.51zhengxing.net
http://www.51zhengxing.net
http://www.51zhengxing.net/2-zxjf.htm
http://www.51zhengxing.net/2-zxjf.htm
http://www.51zhengxing.net/2-zxxm.htm
http://www.51zhengxing.net/2-zxxm.htm
http://www.melucky.com
http://www.melucky.com
http://www.melucky.com
http://www.ychzn.com/DKmjjianjie.htm
http://www.ychzn.com/suo_elem.htm
http://www.peak-e.com/cpyxt/mj.asp
http://www.peak-e.com/cpyxt/yktxt.asp
http://www.peak-e.com/cpyxt/tcc.asp
http://www.tonzh.com
http://www.tonzh.com
http://www.creativetoys.com.cn
http://www.creativewatch.cn
http://www.cnsec.cn/product/firewall/NS-5GT.htm
http://www.cnsec.cn/product/1firewall.htm
http://www.cnsec.cn/product/1fortinet.htm
http://www.drs.infosec.org.cn
http://www.drs.infosec.org.cn
http://www.drs.infosec.org.cn/area.html
http://www.drs.infosec.org.cn/area.html
http://www.chindata.com
http://www.protech.net.cn
http://www.protech.net.cn
http://www.protech.net.cn
http://www.zgpt.cn/pro1.htm
http://www.zgpt.cn/pro1.htm
http://www.zgpt.cn/showroom.htm
http://www.zt148.com
http://www.zt148.com
http://www.zt148.com
http://www.148-law.com
http://www.148-law.com/housing/service.htm
http://www.148-law.com/message.htm
http://www.148-law.com/card/card1.htm
http://www.rotek.com.cn/1024-768.htm
http://www.huihualin.com/sclyj.htm
http://www.rotek.com.cn/1024-768.htm
http://www.rotek.com.cn/1024-768.htm
http://www.bjerwai.com/modules/peixun/english.htm
http://www.bjerwai.com/modules/peixun/french.htm
http://www.bjerwai.com/modules/ielts/index.htm
http://www.cfeenet.com/Examzhichen/default.asp
http://www.cfeenet.com/ExamCPA/default.asp
http://www.ck100.com
http://www.ck100.com
http://www.sense.com.cn
http://www.sense.com.cn
http://www.sense.com.cn
http://www.join-2008.com
http://www.join-2008.com
http://www.xinchen.net.cn
http://www.xinchen.net.cn/LCD/1.htm
http://www.xinchen.net.cn/avocent/index.htm
http://www.xinchen.net.cn/avocent/index.htm
http://www.gyhx.com
http://www.gyhx.com
http://www.gyhx.com
http://www.ruilong.com.cn
http://www.ruilong.com.cn
http://www.ruilong.com.cn
http://www.omeida.com/omdhtm/cindex/course/course.htm
http://www.omeida.com/omdhtm/cindex/course/course.htm
http://www.dstmedia.com
http://www.dstmedia.com
http://www.dstmedia.com
http://www.plcm.com.cn/defaultflash.asp
http://www.plcm.com.cn/defaultflash.asp
http://www.plcm.com.cn/defaultflash.asp
http://www.plcm.com.cn/defaultflash.asp
http://www.sinoart.com.cn
http://www.sinoart.com.cn
http://www.googlepromotion.com
http://www.googlepromotion.com
http://www.gogoogle.net
http://www.gogoogle.net
http://www.gaokao.net.cn
http://www.bjacca.com/Acca.htm
http://www.bjacca.com/banxue.htm
http://www.ndtek.com/chshbcehy.htm
http://www.ndtek.com/yeshiyi.htm
http://www.ndtek.com/rechxy.htm
http://www.ndtek.com/rechxy.htm
http://www.ndtek.com/cejuyi.htm
http://www.ndtek.com/hwcew.htm
[SpringControllerUnitTest]
[δΈ­ζ–‡ζŒ‡ε—|Articles_zh]

Back to SandBox, or to the Page History.