| 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 177 lines. |
| ------------------------------------------------ |
| [http://www.gotooa.com 大连OA网上办公自动化] |
| [http://www.gaokao.net.cn 高考在线] |
| [http://www.yzx666.net/zhu/index.htm 香港六合彩] |
| [http://www.sinoart.com.cn 网站推广网站建设专家] |
| [http://www.googlepromotion.com 北京google排名google左侧排名中心] |
| [http://www.gogoogle.net 北京google广告google推广中心] |
| [http://www.passion.org.cn passion gmat] |
| [http://www.sxcoal.com/en/index.asp china coal] |
| [http://www.bj-sd.com 顺达机票] |
| [http://www.bbell.com 贝尔小灵通] |
| [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.8848flower.com china flower] |
| [http://www.8848flower.com china flowers] |
| [http://www.jinyibei.com.cn 金一倍单片机] |
| [http://www.glory-vision.com sony投影机] |
| [http://www.glory-vision.com/d_lib/htdocs/touyingji.htm 格罗力投影机] |
| [http://www.cstarcom.com gps卫星定位] |
| [http://www.bjzufang.com 租房信息] |
| [http://www.bjzufang.com 北京租房] |
| [http://www.multivision.com.hk/s-index.html multivision监控] |
| [http://www.multivision.com.hk/s-index.html multivision安防] |
| [http://www.dongdao.net 东道设计] |
| [http://www.dongdao.net 东道平面设计] |
| [http://www.dongdao.net 东道广告设计] |
| [http://www.dongdao.net/main04.htm 东道CI设计] |
| [http://www.dongdao.net/main04.htm 东道VI设计] |
| [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.cambridge-group.org acca考试] |
| [http://www.cambridge-group.org acca培训] |
| [http://www.bjacca.com acca考试] |
| [http://www.bjacca.com acca培训] |
| [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 51美容] |
| [http://www.51zhengxing.net 51整形] |
| [http://www.51zhengxing.net 51整容] |
| [http://www.51zhengxing.net/2-zxjf.htm 51减肥] |
| [http://www.51zhengxing.net/2-zxjf.htm 51瘦身] |
| [http://www.51zhengxing.net/2-zxxm.htm 51隆胸] |
| [http://www.51zhengxing.net/2-zxxm.htm 51丰胸] |
| [http://www.melucky.com melucky门禁] |
| [http://www.melucky.com melucky一卡通] |
| [http://www.melucky.com melucky停车场] |
| [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.tonzh.com tonzh回流焊] |
| [http://www.tonzh.com tonzh smt] |
| [http://www.creativetoys.com.cn creativetoys玩具] |
| [http://www.creativewatch.cn creativewatch手表] |
| [http://www.cnsec.cn/product/firewall/NS-5GT.htm cnsec netscreen] |
| [http://www.cnsec.cn/product/1firewall.htm cnsec防火墙] |
| [http://www.cnsec.cn/product/1fortinet.htm cnsec防毒墙] |
| [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 RADWARE] |
| [http://www.protech.net.cn ALTEON] |
| [http://www.zgpt.cn/pro1.htm 中高发电机] |
| [http://www.zgpt.cn/pro1.htm 中高发电机组] |
| [http://www.zgpt.cn/showroom.htm 中高柴油发电机] |
| [http://www.zt148.com zt148律师] |
| [http://www.zt148.com zt148律师事务所] |
| [http://www.zt148.com zt148法律咨询] |
| [http://www.148-law.com 148律师] |
| [http://www.148-law.com/housing/service.htm 148律师事务所] |
| [http://www.148-law.com/message.htm 148法律咨询] |
| [http://www.148-law.com/card/card1.htm 148法律顾问] |
| [http://www.rotek.com.cn/1024-768.htm 九如水处理] |
| [http://www.huihualin.com/sclyj.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 cfeenet会计] |
| [http://www.cfeenet.com/ExamCPA/default.asp cfeenet注册会计师] |
| [http://www.ck100.com ck100会计,注册会计师] |
| [http://www.sense.com.cn sense软件加密] |
| [http://www.sense.com.cn sense加密狗] |
| [http://www.sense.com.cn sense加密锁] |
| [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 Avocent] |
| [http://www.xinchen.net.cn/avocent/index.htm kvm] |
| [http://www.gyhx.com 视频光端机视频编解码器光纤收发器] |
| [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 dstmedia视频会议] |
| [http://www.plcm.com.cn/defaultflash.asp polycom视频会议] |
| [http://www.bjacca.com 中新acca考试acca培训中心] |
| [http://www.ndtek.com/chshbcehy.htm ndtek测厚仪] |
| [http://www.ndtek.com/yeshiyi.htm ndtek夜视仪] |
| [http://www.ndtek.com/rechxy.htm ndtek红外热像仪] |
| [http://www.ndtek.com/rechxy.htm ndtek热像仪] |
| [http://www.ndtek.com/cejuyi.htm ndtek测距仪] |
| [http://www.ndtek.com/hwcew.htm ndtek测温仪] |
| [http://www.dongdao.net/guanggaosheji.htm 东道广告设计] |
| [http://www.dongdao.net/ci.htm 东道CI设计] |
| [http://www.dongdao.net/vi.htm 东道VI设计] |
| [http://www.dongdao.net/main04-02.htm 东道包装设计] |
| [http://www.dongdao.net/main04.htm 东道标志设计] |
| [http://www.zt148.com/falvzixun.htm zt148法律咨询] |
| [http://www.zt148.com/lvshi.htm zt148律师] |
| [http://www.zt148.com/lvshishiwusuo.htm zt148律师事务所] |
| [http://www.plcm.com.cn/dianhuahuiyi.htm POLYCOM电话会议] |
| [http://www.plcm.com.cn/polycom.htm POLYCOM] |
| [http://www.plcm.com.cn/shipinhuiyi.htm POLYCOM视频会议] |
| [http://www.51zhengxing.net/zhengxing.htm 51整形] |
| [http://www.51zhengxing.net/meirong.htm 51美容] |
| [http://www.51zhengxing.net/jianfei.htm 51减肥] |
| [http://www.bjhsdx.com bjhsdx条码打印机] |
| [http://www.globalsearch.cn/jiami/jiami.htm jiami加密] |
| [http://www.globalsearch.cn/jiami/jiamisuo.htm jiamisuo加密锁] |
| [http://www.globalsearch.cn/jiami/jiamigou.htm jiamigou加密狗] |
| [http://www.globalsearch.cn/jiami/ruanjianjiami.htm jiami软件加密] |
| [http://www.sense.com.cn/gscp/index.htm sense加密锁] |
| [http://www.sense.com.cn sense加密狗] |
| [http://www.bjacca.com 中新ACCA考试] |
| [http://www.bjacca.com 中新ACCA培训] |
| [http://www.51marksix.com 香港六合彩] |
| [http://www.globalsearch.cn/coal/coal.htm china coal] |
| [http://www.globalsearch.cn/english/yingyupeixun.htm 欧美达英语培训] |
| [http://www.globalsearch.cn/english/yingyukouyu.htm 欧美达英语口语] |
| [http://www.globalsearch.cn/acca/acca.htm ACCA] |
| [http://www.globalsearch.cn/acca/acca.htm ACCA考试中心] |
| [http://www.globalsearch.cn/acca/acca.htm ACCA培训中心] |
| [http://www.bjzufang.com zufang租房] |
| [http://www.bjzufang.com 北京租房网] |
| [http://www.globalsearch.cn/zufang/bjzufang.htm zufang北京租房] |
| [http://www.globalsearch.cn/zufang/zufang.htm zufang租房] |
| [http://www.globalsearch.cn/zufang/zolhouse.htm zolhouse中关村公寓] |
| [http://www.globalsearch.cn/zhishichanquan/shangbiao.htm 康信商标] |
| [http://www.globalsearch.cn/zhishichanquan/zhuanli.htm 康信专利] |
| [http://www.globalsearch.cn/zhishichanquan/zhishichanquan.htm 康信知识产权] |
| [http://www.sinoart.com.cn/oa.htm OA] |
| [http://myoa.freewebpage.org OA] |
| [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_medical.htm 普尼食品检测中心] |
| [http://www.ponytest.com/html_cn/lab_environment.htm 普尼商品检验中心] |
| [http://www.ponytest.com 质量检测中心质检中心] |
| [http://www.ponytest.com/html_cn/lab_medical.htm 专业化学成分检测绿色产品检测有害物质检测重金属检测中药检测中心] |
| [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://creativetoys.com.cn/watch/ch/default.asp 手表:礼品表纪念表情侣表石英表时装表] |
| [SpringControllerUnitTest] |
|
|
| [δΈζζε|Articles_zh] |