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

At line 1 changed 1 line.
[{Java2HtmlPlugin
[this mailing list thread|http://nagoya.apache.org/eyebrowse/ReadMsg?listName=myfaces-user@incubator.apache.org&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.
hank you for your visiting china,Some good website(china) to you:
[QuickStart Guide_es]
At line 59 changed 212 lines.
------------------------------------------------
http://www.gotooa.com &#22823;&#36830;OA&#32593;&#19978;&#21150;&#20844;&#33258;&#21160;&#21270;
http://www.gaokao.net.cn &#39640;&#32771;&#22312;&#32447;
http://www.yzx666.net/zhu/index.htm &#39321;&#28207;&#20845;&#21512;&#24425;
------------------------------------------------
http://www.sinoart.com.cn &#32593;&#31449;&#25512;&#24191;&#32593;&#31449;&#24314;&#35774;&#19987;&#23478;
http://www.googlepromotion.com &#21271;&#20140;google&#25490;&#21517;google&#24038;&#20391;&#25490;&#21517;&#20013;&#24515;
http://www.gogoogle.net &#21271;&#20140;google&#24191;&#21578;google&#25512;&#24191;&#20013;&#24515;
------------------------------------------------
http://www.passion.org.cn passion gmat
http://www.sxcoal.com/en/index.asp china coal
http://www.bj-sd.com &#39034;&#36798;&#26426;&#31080;
http://www.bbell.com &#36125;&#23572;&#23567;&#28789;&#36890;
http://www.monarch.com.cn &#21516;&#19968;&#28070;&#28369;&#27833;[http://www.bjhsdx.com &#21326;&#30427;&#40718;&#20852;&#26465;&#30721;&#25171;&#21360;&#26426;
http://www.pm.tsinghua.edu.cn &#28165;&#21326;&#39033;&#30446;&#31649;&#29702;
http://211.157.35.153/index.asp &#28165;&#21326;&#39033;&#30446;&#31649;&#29702;
------------------------------------------------
http://www.168flower.com &#40092;&#33457;&#24215;&#40092;&#33457;&#36895;&#36882;
http://www.8848flower.com china flower
http://www.8848flower.com china flowers
--------------------------------------------------
http://www.jinyibei.com.cn &#37329;&#19968;&#20493;&#21333;&#29255;&#26426;
http://www.glory-vision.com sony&#25237;&#24433;&#26426;
http://www.glory-vision.com/d_lib/htdocs/touyingji.htm &#26684;&#32599;&#21147;&#25237;&#24433;&#26426;
-------------------------------------------------
http://www.cstarcom.com gps&#21355;&#26143;&#23450;&#20301;
http://www.sinoart.com.cn/oa.htm OA
http://myoa.freewebpage.org OA
--------------------------------------------------
http://www.ponytest.com &#21271;&#20140;&#26816;&#27979;&#20013;&#24515;&#27979;&#35797;&#20013;&#24515;&#26816;&#39564;&#35748;&#35777;&#26816;&#27979;&#35748;&#35777;
http://www.ponytest.com/html_cn/contact.htm &#26816;&#39564;&#20013;&#24515;
http://www.ponytest.com/html_cn/lab_environment.htm &#21271;&#20140;&#27700;&#36136;&#26816;&#27979;&#27700;&#36136;&#26816;&#39564;&#27700;&#36136;&#26816;&#39564;&#27700;&#36136;&#26816;&#27979;&#20013;&#24515;&#27700;&#36136;&#26816;&#39564;&#20013;&#24515;
http://www.ponytest.com/html_cn/lab_medical.htm &#26222;&#23612;&#39135;&#21697;&#26816;&#27979;&#20013;&#24515;
http://www.ponytest.com/html_cn/lab_environment.htm &#26222;&#23612;&#21830;&#21697;&#26816;&#39564;&#20013;&#24515;
http://www.ponytest.com &#36136;&#37327;&#26816;&#27979;&#20013;&#24515;&#36136;&#26816;&#20013;&#24515;
http://www.ponytest.com/html_cn/lab_medical.htm &#19987;&#19994;&#21270;&#23398;&#25104;&#20998;&#26816;&#27979;&#32511;&#33394;&#20135;&#21697;&#26816;&#27979;&#26377;&#23475;&#29289;&#36136;&#26816;&#27979;&#37325;&#37329;&#23646;&#26816;&#27979;&#20013;&#33647;&#26816;&#27979;&#20013;&#24515;
---------------------------------------------------
http://www.bjzufang.com &#31199;&#25151;&#20449;&#24687;
http://www.bjzufang.com &#21271;&#20140;&#31199;&#25151;
http://www.bjzufang.com/p_gy.php &#27714;&#31199;&#20844;&#23507;&#21271;&#20140;&#20844;&#23507;
http://www.bjzufang.com/p_gy.php &#21035;&#22661;&#20986;&#31199;
http://www.bjzufang.com/p_mz.php &#27665;&#23429;
--------------------------------------------------
http://www.creativetoys.com.cn &#29609;&#20855;&#24037;&#21378;&#65306;&#30410;&#26234;&#29609;&#20855;&#25480;&#26435;&#29609;&#20855;&#27611;&#32466;&#29609;&#20855;&#22609;&#33014;&#29609;&#20855;
--------------------------------------------------
http://creativetoys.com.cn/watch/ch/default.asp &#25163;&#34920;&#65306;&#31036;&#21697;&#34920;&#32426;&#24565;&#34920;&#24773;&#20387;&#34920;&#30707;&#33521;&#34920;&#26102;&#35013;&#34920;
--------------------------------------------------
http://www.multivision.com.hk/s-index.html multivision&#30417;&#25511;
http://www.multivision.com.hk/s-index.html multivision&#23433;&#38450;
--------------------------------------------------
http://www.dongdao.net &#19996;&#21040;&#35774;&#35745;
http://www.dongdao.net &#19996;&#21040;&#24179;&#38754;&#35774;&#35745;
http://www.dongdao.net &#19996;&#21040;&#24191;&#21578;&#35774;&#35745;
http://www.dongdao.net/main04.htm &#19996;&#21040;CI&#35774;&#35745;
http://www.dongdao.net/main04.htm &#19996;&#21040;VI&#35774;&#35745;
http://www.dongdao.net/main04.htm &#19996;&#21040;&#26631;&#24535;&#35774;&#35745;
http://www.dongdao.net/main04-02.htm &#19996;&#21040;&#21253;&#35013;&#35774;&#35745;
-------------------------------------------------
http://www.bjkhp.com &#36335;&#28009;&#21830;&#26631;
http://www.bjkhp.com &#36335;&#28009;&#19987;&#21033;
http://www.bjkhp.com/operation.asp &#36335;&#28009;&#21830;&#26631;&#20195;&#29702;
http://www.bjkhp.com &#36335;&#28009;&#19987;&#21033;&#20195;&#29702;
http://www.kangxin.com &#24247;&#20449;&#21830;&#26631;
http://www.kangxin.com &#24247;&#20449;&#19987;&#21033;
http://www.kangxin.com &#24247;&#20449;&#30693;&#35782;&#20135;&#26435;
http://www.tmrr.com &#21830;&#26631;&#22312;&#32447;
http://www.tmrr.com &#21830;&#26631;&#27880;&#20876;&#22312;&#32447;
--------------------------------------------------
http://www.cambridge-group.org acca&#32771;&#35797;
http://www.cambridge-group.org acca&#22521;&#35757;
http://www.bjacca.com acca&#32771;&#35797;
http://www.bjacca.com acca&#22521;&#35757;
--------------------------------------------------
http://www.fashuo300.com &#32771;&#30740;&#22312;&#32447;
http://www.fashuo300.com &#27861;&#24459;&#30805;&#22763;&#22521;&#35757;
http://www.fashuo300.com &#27861;&#30805;&#20013;&#24515;
--------------------------------------------------
http://www.approachina.com &#25463;&#30431;&#31649;&#29702;&#21672;&#35810;
http://www.approachina.com &#31649;&#29702;&#21672;&#35810;&#20844;&#21496;
http://www.creavic.com.cn/ois/usersites/chengwei/index.jsp &#25104;&#20255;&#31649;&#29702;&#21672;&#35810;
http://www.creavic.com.cn/ois/usersites/chengwei/index.jsp &#25104;&#20255;&#31649;&#29702;&#39038;&#38382;
-------------------------------------------------
http://www.jzhrb.com.cn &#37329;&#27954;&#20943;&#32933;
http://www.jzhrb.com.cn &#37329;&#27954;&#32654;&#23481;
http://www.51zhengxing.net 51&#32654;&#23481;
http://www.51zhengxing.net 51&#25972;&#24418;
http://www.51zhengxing.net 51&#25972;&#23481;
http://www.51zhengxing.net/2-zxjf.htm 51&#20943;&#32933;
http://www.51zhengxing.net/2-zxjf.htm 51&#30246;&#36523;
http://www.51zhengxing.net/2-zxxm.htm 51&#38534;&#33016;
http://www.51zhengxing.net/2-zxxm.htm 51&#20016;&#33016;
--------------------------------------------------
http://www.melucky.com melucky&#38376;&#31105;
http://www.melucky.com melucky&#19968;&#21345;&#36890;
http://www.melucky.com melucky&#20572;&#36710;&#22330;
http://www.ychzn.com/DKmjjianjie.htm &#19968;&#32856;&#38376;&#31105;
http://www.ychzn.com/suo_elem.htm &#19968;&#32856;&#30005;&#23376;&#38145;
http://www.peak-e.com/cpyxt/mj.asp &#25259;&#20811;&#38376;&#31105;
http://www.peak-e.com/cpyxt/yktxt.asp &#25259;&#20811;&#19968;&#21345;&#36890;
--------------------------------------------------
http://www.tonzh.com tonzh&#22238;&#27969;&#28938;
http://www.tonzh.com tonzh smt
--------------------------------------------------
http://www.creativetoys.com.cn creativetoys&#29609;&#20855;
http://www.creativewatch.cn creativewatch&#25163;&#34920;
--------------------------------------------------
http://www.cnsec.cn/product/firewall/NS-5GT.htm cnsec netscreen
http://www.cnsec.cn/product/1firewall.htm cnsec&#38450;&#28779;&#22681;
http://www.cnsec.cn/product/1fortinet.htm cnsec&#38450;&#27602;&#22681;
--------------------------------------------------
http://www.drs.infosec.org.cn &#25968;&#25454;&#24674;&#22797;&#20013;&#24515;
http://www.drs.infosec.org.cn &#25968;&#25454;&#20462;&#22797;&#20013;&#24515;
http://www.drs.infosec.org.cn/area.html &#30828;&#30424;&#25968;&#25454;&#20462;&#22797;&#20013;&#24515;
http://www.drs.infosec.org.cn/area.html &#30828;&#30424;&#25968;&#25454;&#24674;&#22797;&#20013;&#24515;
http://www.chindata.com &#25968;&#25454;&#24674;&#22797;&#20844;&#21496;
--------------------------------------------------
http://www.protech.net.cn &#36127;&#36733;&#22343;&#34913;
http://www.protech.net.cn RADWARE
http://www.protech.net.cn ALTEON
--------------------------------------------------
http://www.zgpt.cn/pro1.htm &#20013;&#39640;&#21457;&#30005;&#26426;
http://www.zgpt.cn/pro1.htm &#20013;&#39640;&#21457;&#30005;&#26426;&#32452;
http://www.zgpt.cn/showroom.htm &#20013;&#39640;&#26612;&#27833;&#21457;&#30005;&#26426;
--------------------------------------------------
http://www.zt148.com zt148&#24459;&#24072;
http://www.zt148.com zt148&#24459;&#24072;&#20107;&#21153;&#25152;
http://www.zt148.com zt148&#27861;&#24459;&#21672;&#35810;
http://www.148-law.com 148&#24459;&#24072;
http://www.148-law.com/housing/service.htm 148&#24459;&#24072;&#20107;&#21153;&#25152;
http://www.148-law.com/message.htm 148&#27861;&#24459;&#21672;&#35810;
http://www.148-law.com/card/card1.htm 148&#27861;&#24459;&#39038;&#38382;
--------------------------------------------------
http://www.rotek.com.cn/1024-768.htm &#20061;&#22914;&#27700;&#22788;&#29702;
http://www.huihualin.com/sclyj.htm &#27700;&#22788;&#29702;&#27969;&#31243;
http://www.rotek.com.cn/1024-768.htm &#20061;&#22914;&#36719;&#27700;&#26426;&#20928;&#27700;&#35774;&#22791;
--------------------------------------------------
http://www.bjerwai.com/modules/peixun/english.htm &#33521;&#35821;&#22312;&#32447;
http://www.bjerwai.com/modules/peixun/french.htm &#27861;&#35821;&#22521;&#35757;
http://www.bjerwai.com/modules/ielts/index.htm &#20108;&#22806;&#38597;&#24605;
--------------------------------------------------
http://www.cfeenet.com/Examzhichen/default.asp cfeenet&#20250;&#35745;
http://www.cfeenet.com/ExamCPA/default.asp cfeenet&#27880;&#20876;&#20250;&#35745;&#24072;
http://www.ck100.com ck100&#20250;&#35745;&#65292;&#27880;&#20876;&#20250;&#35745;&#24072;
--------------------------------------------------
http://www.sense.com.cn sense&#36719;&#20214;&#21152;&#23494;
http://www.sense.com.cn sense&#21152;&#23494;&#29399;
http://www.sense.com.cn sense&#21152;&#23494;&#38145;
--------------------------------------------------
http://www.join-2008.com &#21161;&#20154;&#31508;&#35760;&#26412;&#30005;&#33041;
http://www.join-2008.com &#21161;&#20154;&#20108;&#25163;&#31508;&#35760;&#26412;
--------------------------------------------------
http://www.xinchen.net.cn &#26133;&#36784;&#26426;&#26588;
http://www.xinchen.net.cn/LCD/1.htm &#26133;&#36784;&#20999;&#25442;&#22120;
http://www.xinchen.net.cn/avocent/index.htm Avocent
http://www.xinchen.net.cn/avocent/index.htm kvm
--------------------------------------------------
http://www.gyhx.com &#35270;&#39057;&#20809;&#31471;&#26426;&#35270;&#39057;&#32534;&#35299;&#30721;&#22120;&#20809;&#32420;&#25910;&#21457;&#22120;
--------------------------------------------------
http://www.ruilong.com.cn &#29790;&#40857;&#20581;&#36523;&#22120;&#26448;&#36305;&#27493;&#26426;&#25353;&#25705;&#26885;
------------------------------------------------------------
http://www.omeida.com/omdhtm/cindex/course/course.htm &#33521;&#35821;&#22521;&#35757;&#22312;&#32447;
http://www.omeida.com/omdhtm/cindex/course/course.htm &#33521;&#35821;&#21475;&#35821;&#22312;&#32447;
------------------------------------------------------------
http://www.dstmedia.com dstmedia&#35270;&#39057;&#20250;&#35758;
http://www.plcm.com.cn/defaultflash.asp polycom&#35270;&#39057;&#20250;&#35758;
----------------------------------------------------------
http://www.bjacca.com &#20013;&#26032;acca&#32771;&#35797;acca&#22521;&#35757;&#20013;&#24515;
http://www.ndtek.com/chshbcehy.htm ndtek&#27979;&#21402;&#20202;
http://www.ndtek.com/yeshiyi.htm ndtek&#22812;&#35270;&#20202;
http://www.ndtek.com/rechxy.htm ndtek&#32418;&#22806;&#28909;&#20687;&#20202;
http://www.ndtek.com/rechxy.htm ndtek&#28909;&#20687;&#20202;
http://www.ndtek.com/cejuyi.htm ndtek&#27979;&#36317;&#20202;
http://www.ndtek.com/hwcew.htm ndtek&#27979;&#28201;&#20202;
----------------------------------------------------------
http://www.dongdao.net/guanggaosheji.htm &#19996;&#36947;&#24191;&#21578;&#35774;&#35745;
http://www.dongdao.net/ci.htm &#19996;&#36947;CI&#35774;&#35745;
http://www.dongdao.net/vi.htm &#19996;&#36947;VI&#35774;&#35745;
http://www.dongdao.net/main04-02.htm &#19996;&#36947;&#21253;&#35013;&#35774;&#35745;
http://www.dongdao.net/main04.htm &#19996;&#36947;&#26631;&#24535;&#35774;&#35745;
http://www.zt148.com/falvzixun.htm zt148&#27861;&#24459;&#21672;&#35810;
http://www.zt148.com/lvshi.htm zt148&#24459;&#24072;
http://www.zt148.com/lvshishiwusuo.htm zt148&#24459;&#24072;&#20107;&#21153;&#25152;
http://www.plcm.com.cn/dianhuahuiyi.htm POLYCOM&#30005;&#35805;&#20250;&#35758;
http://www.plcm.com.cn/polycom.htm POLYCOM
http://www.plcm.com.cn/shipinhuiyi.htm POLYCOM&#35270;&#39057;&#20250;&#35758;
http://www.51zhengxing.net/zhengxing.htm 51&#25972;&#24418;
http://www.51zhengxing.net/meirong.htm 51&#32654;&#23481;
http://www.51zhengxing.net/jianfei.htm 51&#20943;&#32933;
http://www.bjhsdx.com bjhsdx&#26465;&#30721;&#25171;&#21360;&#26426;
http://www.globalsearch.cn/jiami/jiami.htm jiami&#21152;&#23494;
http://www.globalsearch.cn/jiami/jiamisuo.htm jiamisuo&#21152;&#23494;&#38145;
http://www.globalsearch.cn/jiami/jiamigou.htm jiamigou&#21152;&#23494;&#29399;
http://www.globalsearch.cn/jiami/ruanjianjiami.htm jiami&#36719;&#20214;&#21152;&#23494;
http://www.sense.com.cn/gscp/index.htm sense&#21152;&#23494;&#38145;
http://www.sense.com.cn sense&#21152;&#23494;&#29399;
http://www.bjacca.com &#20013;&#26032;ACCA&#32771;&#35797;
http://www.bjacca.com &#20013;&#26032;ACCA&#22521;&#35757;
http://www.51marksix.com &#39321;&#28207;&#20845;&#21512;&#24425;
http://www.globalsearch.cn/coal/coal.htm china coal
hhttp://www.globalsearch.cn/english/yingyupeixun.htm &#27431;&#32654;&#36798;&#33521;&#35821;&#22521;&#35757;
http://www.globalsearch.cn/english/yingyukouyu.htm &#27431;&#32654;&#36798;&#33521;&#35821;&#21475;&#35821;
http://www.globalsearch.cn/acca/acca.htm ACCA
http://www.globalsearch.cn/acca/acca.htm ACCA&#32771;&#35797;&#20013;&#24515;
http://www.globalsearch.cn/acca/acca.htm ACCA&#22521;&#35757;&#20013;&#24515;
http://www.bjzufang.com zufang&#31199;&#25151;
http://www.bjzufang.com &#21271;&#20140;&#31199;&#25151;&#32593;
http://www.globalsearch.cn/zufang/bjzufang.htm zufang&#21271;&#20140;&#31199;&#25151;
http://www.globalsearch.cn/zufang/zufang.htm zufang&#31199;&#25151;
http://www.globalsearch.cn/zufang/zolhouse.htm zolhouse&#20013;&#20851;&#26449;&#20844;&#23507;
http://www.globalsearch.cn/zhishichanquan/shangbiao.htm &#24247;&#20449;&#21830;&#26631;
http://www.globalsearch.cn/zhishichanquan/zhuanli.htm &#24247;&#20449;&#19987;&#21033;
http://www.globalsearch.cn/zhishichanquan/zhishichanquan.htm &#24247;&#20449;&#30693;&#35782;&#20135;&#26435;
[SpringControllerUnitTest]
[δΈ­ζ–‡ζŒ‡ε—|Articles_zh]

Back to SandBox, or to the Page History.