当前位置: 首页 > news >正文

外贸做的亚马逊网站是哪个好网站进度条源代码juqery-ui

外贸做的亚马逊网站是哪个好,网站进度条源代码juqery-ui,企业网站服务类型,中国商标网注册官网代码生成的优点之一是能够查看如何使用特定的语言功能或框架。 正如我在《 NetBeans 7.2 beta#xff1a;更快#xff0c;更有用》一文中所讨论的那样#xff0c; NetBeans 7.2 beta提供了TestNG集成 。 除了对该功能的单一引用之外#xff0c;我在该帖子中没有进一步阐述更快更有用》一文中所讨论的那样 NetBeans 7.2 beta提供了TestNG集成 。 除了对该功能的单一引用之外我在该帖子中没有进一步阐述因为我想将这篇帖子专门用于该主题。 我使用这篇文章来演示如何使用NetBeans 7.2来帮助刚接触TestNG的开发人员开始使用该替代对JUnit 测试框架。 NetBeans 7.2的“新建文件”向导使创建空的TestNG测试用例更加容易。 以下屏幕快照展示了这一点该屏幕快照是使用“新建文件” |“开始”按钮启动的。 单元测试请注意在“文件”下拉菜单下或通过在“项目”窗口中单击鼠标右键可以使用“新文件”。 如上所示运行TestNG测试用例创建将导致以下生成的测试代码。 TestNGDemo.java由NetBeans 7.2生成 package dustin.examples;import org.testng.annotations.AfterMethod; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import org.testng.Assert;/**** author Dustin*/ public class TestNGDemo { public TestNGDemo(){}BeforeClasspublic void setUpClass(){}AfterClasspublic void tearDownClass(){}BeforeMethodpublic void setUp(){}AfterMethodpublic void tearDown(){}// TODO add test methods here.// The methods must be annotated with annotation Test. For example://// Test// public void hello() {} } NetBeans 7.2生成的测试包含注释这些注释指示如何添加和注释测试方法类似于现代版本的JUnit。 生成的代码还显示了一些注释用于整体测试用例的设置和拆卸以及针对每次测试的设置和拆卸注释与JUnit相似。 NetBeans标识此时尚未使用的import语句 import org.testng.annotations.Test;和import org.testng.Assert; 但是可能被使用因此已包含在生成的代码中。 我可以轻松地将测试方法添加到此生成的测试用例中。 以下代码段是使用TestNG的测试方法。 testIntegerArithmeticMultiplyIntegers Testpublic void testIntegerArithmeticMultiplyIntegers(){final IntegerArithmetic instance new IntegerArithmetic();final int[] integers {4, 5, 6};final int expectedProduct 2 * 3 * 4 * 5 * 6;final int product instance.multiplyIntegers(2, 3, integers);assertEquals(product, expectedProduct);} 当然这看起来与我在测试Invalidgerquals with JUnit and Hamcrest和JUnit的内置Hamcrest Core Matcher Support文章中的插图所使用的IntegerArithmetic类所使用的同一个IntegerArithmetic类中使用的JUnit类似。 以下屏幕快照显示了通过右键单击测试用例类并选择“运行文件”Shift F6在NetBeans 7.2 beta中的输出。 接下来将复制NetBeans 7.2 beta中提供的TestNG运行的文本输出。 [TestNG] Running:Command line suite[VerboseTestNG] RUNNING: Suite: Command line test containing 1 Tests (config: null) [VerboseTestNG] INVOKING CONFIGURATION: Command line test - BeforeClass dustin.examples.TestNGDemo.setUpClass() [VerboseTestNG] PASSED CONFIGURATION: Command line test - BeforeClass dustin.examples.TestNGDemo.setUpClass() finished in 33 ms [VerboseTestNG] INVOKING CONFIGURATION: Command line test - BeforeMethod dustin.examples.TestNGDemo.setUp() [VerboseTestNG] PASSED CONFIGURATION: Command line test - BeforeMethod dustin.examples.TestNGDemo.setUp() finished in 2 ms [VerboseTestNG] INVOKING: Command line test - dustin.examples.TestNGDemo.testIntegerArithmeticMultiplyIntegers() [VerboseTestNG] PASSED: Command line test - dustin.examples.TestNGDemo.testIntegerArithmeticMultiplyIntegers() finished in 12 ms [VerboseTestNG] INVOKING CONFIGURATION: Command line test - AfterMethod dustin.examples.TestNGDemo.tearDown() [VerboseTestNG] PASSED CONFIGURATION: Command line test - AfterMethod dustin.examples.TestNGDemo.tearDown() finished in 1 ms [VerboseTestNG] INVOKING CONFIGURATION: Command line test - AfterClass dustin.examples.TestNGDemo.tearDownClass() [VerboseTestNG] PASSED CONFIGURATION: Command line test - AfterClass dustin.examples.TestNGDemo.tearDownClass() finished in 1 ms [VerboseTestNG] [VerboseTestNG] [VerboseTestNG] Command line test [VerboseTestNG] Tests run: 1, Failures: 0, Skips: 0 [VerboseTestNG] Command line suite Total tests run: 1, Failures: 0, Skips: 0 Deleting directory C:\Users\Dustin\AppData\Local\Temp\dustin.examples.TestNGDemo test: BUILD SUCCESSFUL (total time: 2 seconds) 上面的示例显示了开始使用TestNG是多么容易特别是如果从JUnit迁移到TestNG并正在使用NetBeans 7.2 beta。 当然还有更给TestNG的不是这个而是学习一个新的框架通常是最困难的在开始和NetBeans 7.2得到一个开了一个快速启动。 参考 NetBeans 7.2在Inspired by Actual Events博客中从JCG合作伙伴 Dustin Marx 引入了TestNG 。 翻译自: https://www.javacodegeeks.com/2012/06/netbeans-72-introduces-testng.html
http://www.huolong8.cn/news/222895/

相关文章:

  • 中国建设银行官方网站潍坊网站建设 中公
  • 提供网站建设服务平台公司宣传册设计与制作图片
  • 建设网站公司 昆山深圳好的网站建设公司排名
  • 内网网站开发费用如何做织梦手机网站
  • 网站建设的岗位叫什么成全视频免费观看在线看电视剧
  • 网站设计的一般流程山东济南网站制作
  • 电子商务网站建设的目的意义御名是什么意思
  • 自建网站备案杭州网络公司服务
  • 最好的餐饮设计网站建设深圳seo优化方案
  • 江门建设造价信息网站网站一键制作
  • 怎么样做一家装修竞标网站免费发布出租房信息网站
  • 网站是陕西省城乡建设综合服务中心网站设计找谁做
  • 洛阳市app网站开发公司电话做购实惠网站的意义
  • 服装商城网站源码景德镇建站公司
  • 做网站公司哪家好网页在线代理浏览
  • 做网站必须需要服务器嘛阿里巴巴国际站费用
  • 寮步网站仿做网站后台百度统计图如何做的
  • 网站建设模板黄页优质网站建设在哪里
  • 做网站还是做游戏网站建设实例大制作
  • html5开发的网站网页设计与制作视频
  • flash网站源码下载网页翻译软件
  • 专业网站开发哪里找在线登录qq邮箱网页版官网
  • 福建福州罗源建设局网站wordpress 调用了幻灯片但是显示为空白
  • 城市建设网站网站的基本知识
  • 高校心理健康网站建设与实现东莞网站开发哪里找
  • 小型电子商务网站开发类似优酷网站建设价格
  • 建网站哪个平台好适合乡镇的小型加工厂
  • 建设银行+贷款+查询+网站上海做网站去哪里
  • 怎么删除网站的死链软件开发流程八个步骤模板
  • app开发 网站建设企业网站建设的实验报告