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


This is version 221. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]



public class UserWebTest extends WebTestCase {
  
    public UserWebTest(String name) {
        super(name);
        getTestContext().setBaseUrl("http://localhost:8080/myusers");
    }

    // should there be a setup method that adds a user
    // before each test/method is called?

    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");

        // 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");
    }
}

quaker parrots pacific parrotlet scarlet macaw cockatiels blue and gold macaw

Thank you for your visiting china,Some good website(china) to you:


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


Go to top   More info...   Attach file...
This particular version was published on 06-Nov-2006 13:52:35 MST by 61.30.47.22.