单词 | JUnit | ||||||||||||
释义 | JUnit
更多释义 收起释义 例句释义: 单元测试,测试框架,测试要求 1. More than any other testing framework, JUnit has driven developers to understand the usefulness of tests, especially of unit tests. JUnit超过了其他测试框架,推动开发人员理解了测试尤其是单元测试的用途。 www-128.ibm.com 2. Just pass the fully qualified class name of each test you want to run to the test runner, just as you would for a JUnit 4 test. 只要将您想要运行的每个测试的全限定类名传递给测试运行程序,就像针对JUnit4测试一样。 www.ibm.com 3. Another part of the assignment that was easy to grade was the requirement that they provide JUnit tests that cover all of their code. 作业中容易评分的另一部分是他们提供的覆盖所有代码的JUnit测试的需求。 www.ibm.com 4. I talked about some of the mechanics of using JUnit last month, but I'll go into a little more detail here. 上个月我讨论了一些关于使用JUnit的技巧,在此处我将进行详细阐述。 www.ibm.com 5. But Hansel assured me that all my code was being executed by the original JUnit tests, so why didn't this problem show up in those tests? 但Hansel让我可以确信,通过最初的JUnit测试,所有代码都将得到执行,那么为什么在那些测试中这个问题没有暴露出来呢? www.ibm.com 6. JUnit users will immediately note that this class lacks much of the syntactic sugar required by previous versions of JUnit. JUnit用户会立即注意到:这个类中没有了以前版本的JUnit中所要求的一些语法成分。 www.ibm.com 7. As I said at the beginning of this column, JUnit 4 and TestNG are similar on the surface. 正如我在本文开头所说,JUnit4和TestNG在表面上是相似的。 www.ibm.com 8. We've seen that it is possible to work alone, but Jazz is all about teams, so let us grow the JUnit team. 我们已经看到了独立工作是可能的,但是Jazz不仅仅是一个团队,所以让我们去发展一个JUnit团队。 www.ibm.com 9. The runner is smart enough to figure out which test class depends on which version of JUnit and invoke it appropriately. 运行程序足够智能,可以分辨出哪个测试类依赖于哪个版本的JUnit,并适当地调用它。 www.ibm.com 10. Thanks to JUnit, Java code tends to be far more robust, reliable, and bug free than code has ever been before. 由于JUnit,Java代码变得更健壮,更可靠,bug也比以前更少。 www.ibm.com 1. The first option is to write normal JUnit test cases just as you've been doing all along by extending JUnit's commendable TestCase. 第一个选择是编写普通的JUnit测试用例,就像以前一直做的那样,扩展JUnit令人称赞的TestCase。 www.ibm.com 2. The Cactus framework is an extension of JUnit that enables you to run unit tests inside a container. Cactus框架是JUnit的扩展,Junit使您能够在一个容器中运行单元测试。 www.ibm.com 3. Testing all the combinations through JUnit is possible, but it ll take a lot of code. 通过JUnit测试所有组合是可能的,但是要进行许多编码。 www-128.ibm.com 4. In JUnit, the template methods for result gathering and fixture management had to be placed (forevermore? ) in a particular call sequence. 在JUnit中,结果收集和装置管理的模板方法必须(永远?)按照固定的调用顺序。 www.ibm.com 5. JUnit is the Java community's de facto standard test framework, and a system without a comprehensive JUnit test suite is incomplete. JUnit是Java社区事实上的标准测试框架,没有经过全面的JUnit测试套件测试过的系统是不完整的。 www.ibm.com 6. Leveraging a rather simple, pragmatic, and strict architecture, JUnit has been able to "infect" great number of developers. 利用一个相当简单、实用、严格的架构,JUnit已经能够“传染”大量开发人员。 www-128.ibm.com 7. The JUnit testing framework is commonly used by an increasing number of development teams. JUnit测试框架被越来越多的开发小组所共同使用。 www-128.ibm.com 8. Once you get used to the power of declarative testing, it will be hard to go back to plain JUnit. 一旦你习惯了声明式测试的强大能力,你就很难回到普通的JUnit。 www.infoq.com 9. Service tests can be developed with a simple unit testing framework like JUnit or Cactus. 可以使用简单的单元测试框架(JUnit或Cactus)来开发测试。 www.ibm.com 10. Note that all JUnit test methods must begin with the word "test. " Case is not important. 注意到所有JUnit测试方法必须以单词“test”开头。测试用例不重要。 www-128.ibm.com 1. If you ignore the JUnit-specific code in Listing 2, you can see that the test case is now quite neat and concise. 如果没注意清单2中特定于JUnit的代码,那么您可以看到,测试用例现在变得相当整洁、简练。 www.ibm.com 2. Backwards compatibility is trickier, but it is possible to run JUnit 4 tests in JUnit 3 test runners. 向后兼容要困难一些,但是也可以在JUnit3测试运行程序中运行JUnit4测试。 www.ibm.com 3. In fact, it's almost as if an entire secondary market is forming around JUnit. 事实上,几乎整个二级市场似乎都是用围绕Junit建立的。 www.ibm.com 4. The end result is an implementation of the business logic required and a JUnit test case that can verify the behavior of the implementation. 最终的结果是实现了必要的业务逻辑和JUnit测试用例,可验证实现的行为。 www.ibm.com 5. The JUnit naming convention states that all test method names should begin with the word "test. " JUnit命名约定规定所有测试方法名称都应以单词“test”开头。 www.ibm.com 6. You can prime JUnit to expect this failure by setting the expected value on the @Test annotation of the class type you expect to be thrown. 通过将您希望抛出异常的类类型的@Test注释的值设置为expected,可以使JUit提前预测到这种错误。 www.ibm.com 7. When faced with complexity, my first instinct is to look for help, which in this case comes in the form of JUnit's StrutsTestCase. 在面对复杂性时,我的第一本能是寻求帮助,在这个示例中,是以JUnit的StrutsTestCase的形式。 www.ibm.com 8. Since the release of JUnit 4, however, many developers are asking if there's still any difference between the two frameworks. 然而,自从JUnit4发布后,很多开发者质疑:二者之间还有什么差别吗? www.ibm.com 9. Over the course of the past few years, your company has developed an enormous code base with an equally enormous suite of JUnit tests. 经过过去几年的努力,您的公司已经开发了一个庞大的代码库和一个同样庞大的JUnit测试套件。 www.ibm.com 10. After this addition, my JUnit test results are very different, as shown in Figure 2 -- I now have four JUnit test failures! 添加了这个方法后,JUnit测试的结果就截然不同了,如图2所示——现在发现了4处JUnit测试失败! www.ibm.com 1. Indeed, the JUnit framework would let us create a test suite dynamically at run time, the suite being derived from the available test data. 事实上,JUnit框架在运行时允许我们动态创建测试套件,该套件源自可用的测试数据。 www.ibm.com 2. References section at the end of my article lists some of the many books and papers that describe how to use JUnit in the context of TFP. 参考资料中列出了一些讲述如何在TFP的环境下使用JUnit的书籍和论文。 www.ibm.com 3. TestNG established itself as an annotations-based framework long before the modifications to JUnit were in progress. 在修改JUnit之前很久,TestNG就已建立为一个基于注释的框架。 www.ibm.com 4. JUnit Integration stream, and each sub-team working in the other streams will deliver changes to it at some predetermined interval. Markus创建了JUnitIntegration流,而且其他流中工作的子团队,可以以预定的时间间隔向它交付变更。 www.ibm.com 5. I chose to place my tests in a separate package (org. ananas. hc. test) which goes against the recommendation from JUnit authors. 我选择将测试程序放在一个单独的包(org.ananas.hc.test)中,这不同于JUnit作者所建议的。 www.ibm.com 6. Eclipse's JUnit integration can generate the test class automatically, so I can minimize my work by letting the tools do it for me. 集成在Eclipse上的JUnit可以自动生成测试类,因此我让工具为我生成,从而减小我的工作量。 www.ibm.com 7. It works by automatically generating standard JUnit tests for your Swing or SWT applications. 它的工作方式是自动为Swing或SWT应用生成标准的JUnit测试。 www.infoq.com 8. DbUnit is a JUnit extension that facilitates placing a database into a known state between test runs. DbUnit是个专门方便把数据库放进测试状态中已知状态的JUnit扩展。 www.ibm.com 9. Starting from the tools would be like learning agile software development by learning JUnit and Hudson. 从工具开始讨论敏捷运维,就像是通过学习JUnit和Hudson来学习敏捷软件开发一样。 www.infoq.com 10. JUnit has a bit of this pattern language approach, because it can help you write a test case. JUNIT使用了一点模式语言的方法,因为它能帮你写一个测试用例。 www.bing.com 1. I used JUnit to create the example in the next section of this article. 在本文下个部分,我将用JUnit来创建实例。 www-128.ibm.com 2. While the code is still within the JUnit framework, the data table and code are disassociated and are managed entirely by IRAD. 代码仍然在JUnit框架中,数据表和代码没有关联并且完全被IRAD管理。 www.ibm.com 3. DbUnit: A JUnit extension (usable with Ant) that puts a database into a known state between test runs. DbUnit:一个JUnit扩展(用Ant可以重用),在测试运行中把数据库放在已知状态。 www.ibm.com 4. Listing 7 shows how to invoke all the JUnit test cases in the workspace and assumes that they all end with the word "Test. " 清单7说明了如何在工作区调用所有JUnite测试用例,并假设全部都以单词“Test”作为结尾。 www.ibm.com 5. This step is similar to running pre-deployment unit tests, except for the nature of the JUnit test cases to run. 此步骤与运行部署前单元测试类似,不过JUnit测试用例的本质不同。 www.ibm.com 6. This file is the Java project that contains the completed source code, JUnit test case, and schema used in this article. 这个文件是包含本文中所用的完整源代码、JUnit测试用例和模式的Java项目。 www.ibm.com 7. DbUnit is a JUnit extension that places your database into a known state between test runs. DbUnit是一项JUnit扩展,它在每一次运行测试之前,使数据库处于一种已知状态。 www.ibm.com 8. I was hoping to implement this algorithm completely in this column, but I have had to invest some time in learning JUnit. 我希望在这篇专栏文章中完整地实现该算法,但我必须花一些时间来了解JUnit。 www.ibm.com 9. Download JUnitPerf: A collection of JUnit test decorators used to measure performance and scalability. 下载JUnitPerf:一系列用于测量性能和可伸缩性的JUnit测试装饰器。 www.ibm.com 10. You also created two JUnit tests in a test case, and added the server resources to the test application client project. 您还在一个测试用例中创建了两个JUnit测试,并将这个服务资源添加到这个测试应用客户端项目中。 www.ibm.com 1. However, as developers' confidence with tests has increased, JUnit's simplicity and strictness has divided them into two opposed factions. 但是,随着开发人员对测试的信任增长,JUnit的简单性和严格性把他们分成两个相反的派别。 www.ibm.com 2. When you run this test, you get the same supporting elements as a Java unit test, including the JUnit-like pane in the lower-left corner. 在运行这个测试时,可以获得与Java单元测试相同的支持元素,包括左下角与JUnit相似的面板。 www.ibm.com 3. You can run tests on remote machines or import existing JUnit test cases into the Testing and Performance Tools platform (TPTP) test case. 您可以在远程的机器上运行测试,或者将现有的JUnit测试案例导入到TestingandPerformanceToolsplatform(TPTP)测试案例中。 www.ibm.com 4. I'm not too happy about the elimination of the GUI test runners, but the other changes seem likely to increase JUnit's simplicity. 我对消除了GUI测试运行程序并不感到太高兴,但是其他更改似乎有可能增加JUnit的简单性。 www.ibm.com 5. JUnit, a simple framework for writing and running automated tests, will help you develop robust tests. JUnit是一个用于编写和运行自动化测试的简单框架,它有助于您开发健壮的测试。 www.ibm.com 6. So if you write OpenEJB components, you can run them with your regular JUnit tests with no muss or fuss. 所以如果您编写OpenEJB组件,那么您可以毫不费力地用正常的JUnit测试运行它们。 www.ibm.com 7. We deliberately caused one of the tests to fail to show how JUnit displays a failed test, as illustrated by Figure 3. 我们故意促成一个测试失败,观察JUnit如何来显示一个失败的测试,如图3所描述。 www.ibm.com 8. Test failures are indicated by throwing unchecked exceptions, typically by using JUnit-provided assertion and failure methods. 测试失败通过抛出未经检查的异常来指示,通常使用JUnit提供的断言和故障方法指示。 www.ibm.com 9. HtmlUnit extends the JUnit Java test framework, offering additional choices for Web application testing. HtmlUnit扩展了JUnitJava测试框架,为Web应用程序测试提供了更多的选择。 www.ibm.com 10. On top of JUnit, many Web application and portal application-related frameworks are integrated to test the application. 除JUnit之外,其中还集成了许多Web应用程序和与门户应用程序相关的框架来测试应用程序。 www.ibm.com 1. JUnit and TestNG are both good tools that enable automated unit testing, driven by the everyday developer. JUnit和TestNG都是支持自动单元测试的优秀工具,而且由日常的开发人员所驱动。 www.ibm.com 2. This report gives details about all JUnit tests that were run for this individual project and their results. 此报告给出了关于所有为个别项目运行的JUnit测试及其结果的详细信息。 www.ibm.com 3. This restriction does not apply to the JUnit test discussed previously. 这一限制并不适用于以前讨论过的Junit测试。 www.ibm.com 4. No threshold is set -- these methods are simply run to completion and if any fails to execute, JUnit will accordingly report a failure. 未设定时间限制——这些方法完整运行,如果其中任何的方法执行失败,JUnit会相应地报告失败。 www.ibm.com 5. Using JUnit to test J2EE applications is less than ideal, as these tests cannot run on application servers. 使用JUnit来测试J2EE应用程序仅仅是理想化的,因为应用服务器不能运行这些测试。 www.ibm.com 6. Reports generated by the JUnit task can be transformed to other formats using JUnitReport Ant task. 可以使用JUnitReportAnt任务将JUnit任务生成的报告转换为其他格式。 www.ibm.com 7. To run Jester, you must have both jester. jar and junit. jar on your classpath. 要运行Jester,在路径中必须同时拥有jester.jar和junit.jar(JUnit没有和Jester绑在一起。 www.ibm.com 8. Ability to run Groovy classes, scripts and JUnit test cases written in Groovy. 可以运行Groovy类,脚本和用Groovy写的JUnit测试用例。 www.infoq.com 9. JUnit also provides a way to group tests into a suite by using the junit. framework. TestSuite class. JUnit还通过利用junit.framework.TestSuite类提供了一种将测试归组为测试套件的方法。 www.ibm.com 10. JUnit is an open-source framework for automated testing (see Resources). JUnit是用于自动化测试的开放源码框架(请参阅参考资料)。 www.ibm.com 1. JUnit: The Java testing framework that started the automated testing craze for the Java platform. JUnit:开始了Java平台自动测试热浪的Java测试框架。 www.ibm.com 2. Listing 4 shows the Junit test that generates and prints out an aclActorTable showing configuration information for a list of ACLs. 清单4显示了Junit测试,该测试可以生成并输出显示一组ACL的配置信息的aclActorTable。 www.ibm.com 3. Class to add additional features is a common technique utilized in virtually every JUnit extension. 类,加入附加特性,实际上是每个JUnit扩展通常采用的技术。 www-128.ibm.com 4. Visit the JUnit site for information about the JUnit open source regression testing framework that enables unit testing in Java. 访问JUnit站点,获取关于JUnit开放源代码回归测试(regressiontesting)框架的信息,该框架使得在Java中进行单元测试成为可能。 www.ibm.com 5. If you make changes to the architecture, simply change the rules in your JUnit tests to ensure your team is following project standards. 如果您改变了架构,只要改变您的JUnit测试规则,就可确保您的团队遵守了项目标准。 www.ibm.com 6. The console will switch to the JUnit TestRunner process and the server console output will not be visible. 控制台将切换到JUnitTestRunner进程,而服务器控制台输出将是不可见的。 www.ibm.com 7. JUnit bundles the concern of reporting results with the service of verification and logging. JUnit将结果报告关注点和验证与日志服务捆绑在了一起。 www.ibm.com 8. The typical JUnit programming model creates a test class by extending the TestCase class provided by JUnit. 典型的JUnit编程模型通过扩展JUnit提供的TestCase类创建测试类。 www.ibm.com 9. The real benefits come from the ideas and techniques embodied by JUnit, not the framework itself. 真正的优势来自于JUnit所采用的思想和技术,而不是框架本身。 www.ibm.com 10. What's more, build frameworks like Ant and Maven have added reporting features that summarize a JUnit batch run. 更妙的是,Ant和Maven这样的build框架已经加入了报告特性,可以归纳Junit批处理任务运行的结果。 www.ibm.com 1. JUnit's stasis has not been missed by programmers who are eager to dethrone it. JUnit的停滞不前并没有被那些想要废弃它的程序员所打败。 www.ibm.com 2. JUnit comes packaged with the Cactus distribution, so there is no need to download additional copies. JUnit是Cactus分发包附带的,所以您没必要去另外下载它的副本。 www.ibm.com 3. JUnit is a simple and small framework for writing automated tests. JUnit是一个用于编写自动化测试程序的简单且小型的框架。 www.ibm.com 4. Again, you can execute the test as a normal JUnit and the results are automatically updated in the Package Explorer (Figure 6). 您可以再一次将测试作为一次正常的JUnit执行,而结果将会在PackageExplorer中进行自动更新(图5)。 www.ibm.com 5. Create custom JUnit suite files corresponding to desired categories. 根据所需种类创建定制的JUnit套件文件。 www.ibm.com 6. Besides RubyGems, Raven also can run JUnit tests, build normal JAR files, and clean directories. 除了RubyGems之外,Raven还可以运行JUnit测试,构建一般的JAR文件,并且还可以清理目录。 www.ibm.com 7. JUnit is an open-source framework for running automated tests. JUnit是用于运行自动化测试的开放源码框架。 www.ibm.com 8. In JUnit, if you want to vary the parameter groups to a method under test, you are forced to write a test case for each unique group. 在JUnit中,如果您想改变某个受测方法的参数组,就只能给每个不同的参数组编写一个测试用例。 www.ibm.com 9. HC looked like a good project to test JUnit, so I downloaded it. HC似乎是用来测试JUnit的一个很好的项目,所以我下载了JUnit。 www.ibm.com 10. A test framework for using JUnit to write unit tests for your client application. 一个使用JUnit为客户机应用程序编写单元测试的测试框架。 www.ibm.com 1. In all fairness, I spent more time on automated tests than I could have because I chose to learn JUnit. 公平地讲,我在自动化测试方面花费了比我预计要多很多的时间,这是因为我选择了要了解JUnit。 www.ibm.com 2. The test case will be run in separate thread, effectively blocking JUnit from completing the overall test case. (测试用例以独立线程运行,有效地阻塞JUnit完成整个测试用例)。 www.ibm.com 3. Obviously, I don't have a Person class yet so my test is having some trouble running -- JUnit gives me a red bar. 显然,我还没有Person类,所以运行该测试会出现问题—JUnit给出了一个红条。 www.ibm.com 4. Our code is based on JUnit, the most popular unit testing framework for Java programming, though it is by no means JUnit-specific. 我们的代码基于JUnit―Java编程的最流行的单元测试框架,尽管它决不是JUnit特定的。 www.ibm.com 5. In the JUnit tests, you need to configure the mock portlet container to run the portlets. 在JUnit测试中,您需要配置模拟portlet容器来运行portlet。 www.ibm.com 6. You can use JUnit's TestSuite class (which is of type Test) to define a collection of tests as belonging together. 可以使用JUnit的TestSuite类(属于Test类型)来定义许多互相归属的测试。 www.ibm.com 7. The business. zip contains everything to build the business project, except for Ant and JUnit. zip包含构建业务项目所需的一切,当然Ant和JUnit除外。 www.ibm.com 8. For HtmlUnit packages, add JUnit. jar, which you cab find in the WebSphere Studio plugin directory. 对于HtmlUnit包,添加JUnit.jar,这在WebSphereStudioplugin目录中可以找到。 www.ibm.com 9. You will still want to use JUnit to create unit tests for logic that are called without a Web harness. 您仍然希望利用JUnit为那些没有利用Web而调用的逻辑创建单元测试。 www.ibm.com 10. Listing 2 is a snippet of an Ant script that demonstrates the junit task to execute a batch of unit tests. 清单2是一个Ant脚本片段,介绍了执行一批单元测试的junit任务。 www.ibm.com 1. Jaxen has a JUnit-based test suite, though the suite has less-than-perfect coverage. Jaxen有一个基于JUnit的测试套件,而且这个套件的代码覆盖并不完善。 www.ibm.com 2. JUnit timings reporting how long each test case takes to run will give an idea of where any performance problems lie. JUnit计时结果报告了每个测试用例运行了多长时间,这将将我们对任何性能问题的方位有一个大致判断。 www.infoq.com 3. It also offers dynamic finder methods and auto-generates the JUnit integration tests. 它还提供了动态查找方法并能自动产生JUnit集成测试。 www.infoq.com 4. junit. jar (the JUnit framework binaries; see JUnit's Web site for download information). jar(JUnit框架二进制文件,下载信息请参阅JUnit的Web网站)。 www.ibm.com 5. You can use DbUnit programmatically in JUnit or you can utilize it as part of a build process. 可以在JUnit中可编程地使用DbUnit,或者可以将它作为构建过程的一部分使用。 www.ibm.com 6. The JUnit view then shows the result of running the test (Figure 13). JUnit视图然后显示运行测试的结果(图13)。 www.ibm.com 7. In Figure 2, the JUNIT target is required to run prior to executing the task in compile target. 例如图2所示,在执行compile目标中的任务之前需要先运行JUNIT目标。 www-128.ibm.com 8. With JUnit installed, the build runs a number of JUnit tests, to ensure Tapestry is correctly set up. 安装了JUnit之后,构建会运行许多JUnit测试,以确保Tapestry的设置正确。 www-128.ibm.com 9. You can re-execute the tests selectively from the JUnit view; right-click the class or test, then select Run. 您可以从JUnit视图选择性地重新执行测试;右键单击类或测试,然后选择Run。 www.ibm.com 10. It is easy to ascertain basic low-level performance numbers using JUnit in the early stages of software development. 在软件开发的早期阶段,使用JUnit很容易确定基本的低端性能指数。 www.ibm.com 1. In 1998, he teamed up with Kent Beck to produce JUnit [see Resources], the de facto unit testing tool in the Java community. 在1998年,他与KentBeck组队开发了JUnit,这是目前在Java社区的单元测试工具中的事实标准。 www.bing.com 2. JUnit 4 is a radical new framework, not a an upgraded version of the old framework. JUnit4基本上是一个新框架,而不是旧框架的升级版本。 www.ibm.com 3. Detect intended assertions over your code, by examining your JUnit test suite. 检测有意放置在您代码上的断言。 www-128.ibm.com 4. The above link is provided for those who seek more detailed information about JUnit. 上面的链接是为那些寻找关于JUnit更详细的信息的人而提供的。 www.ibm.com 5. This step invokes JUnit test cases that do not require run-time resources, such as data sources. 此步骤调用JUnit测试用例,这些用例不需要运行时资源(如数据源等)。 www.ibm.com 6. Cactus supports so-called white box testing of server-side code; it extends and uses JUnit, which is a regression testing framework. Cactus支持所谓的服务器端代码白箱(whitebox)测试;它扩展并使用JUnit(一种回归测试框架)。 www.ibm.com 7. As mentioned, JUnit is the de facto standard to test an application developed in Java code. 如前所述,JUnit是测试由Java代码开发的应用程序所需的事实标准。 www.ibm.com 8. It provides a template for writing tests with setup, execution, and teardown. JUnit提供一个用于编写测试的模板,该模板可以安装、执行和卸载。 www.ibm.com 9. Your next question is, how does one implement test categorization with JUnit? 下一个问题是,如何用JUnit实现测试分类? www.ibm.com 10. Instead, they offer JUnit assertions to both signal the failure and unwind the test. 相反,他们提供了JUnit断言来通知失效或者展开测试。 www.ibm.com 1. JUnit: JUnit is a popular unit-testing framework for Java programming. JUnit:JUnit是Java编程流行的单元测试框架。 www.ibm.com 2. If you use JUnit, the all-important question is, Do I have to stop writing JUnit test cases? 如果您使用的是JUnit,则最重要问题是:必须停止编写JUnit测试用例吗? www.ibm.com 3. Statements; they indicate that once JUnit has been downloaded and installed, you simply need to restart the build process. 语句的输出;它们表明JUnit已经下载并安装,只需要重新启动构建过程。 www-128.ibm.com 4. Take a look at the JUnit suite listing in Listing 2. 看一下清单2中的JUnitsuite清单。 www-128.ibm.com 5. Or how about extension of JUnit for distributing tests across a Hadoop cluster? 或者试试通过Hadoop集群使用JUnit的扩展来进行分布式测试。 www.bing.com 6. Nonetheless, development is moving at a rapid pace, and JUnit 4 does look quite promising. 即使如此,开发仍在快速进行,并且JUnit4前景非常看好。 www.ibm.com 7. Consider investing some time in a good unit-testing tool like JUnit. 请考虑在优秀的单元测试工具例如JUnit上花一些时间。 www.ibm.com 8. Click to add the JUnit libraries to the application client project. 点击并添加JUnit函数库到这个应用客户端项目中。 www.ibm.com 9. Notice the haltonfailure attribute of the junit Ant task is set to false (its default value). 注意junitAnt任务的haltonfailure属性被设置为false(它的缺省值)。 www.ibm.com 10. Certainly, there is still value in JUnit even in the portal world. 当然,即使在portal世界里,JUnit仍然有价值。 www-128.ibm.com 1. portletUnit uses JUnit to provide the outline of a testing framework (such as creation of TestCase and TestSuite using assertions). portletUnit使用JUnit提供测试框架轮廓(比如使用断言创建TestCase和TestSuite)。 www.ibm.com 2. You can run good old JUnit tests under TestNG using a "compatibility mode. " 可以在TestNG下用“兼容模式”运行过去运行良好的Junit测试。 www.ibm.com 3. Progress will be shown in the JUnit view (Figure 7). JUnit视图中将显示进度(图7)。 www.ibm.com 4. To execute the sample program, run the TestsRulesEngineTest JUnit test found in the demo. test package. 要执行示例程序,运行demo.test中的TestsRulesEngineTestJUnit测试。 www.ibm.com 5. Here is the setup information needed to run the sample code in JUnit. 这里是需要在Junit中运行样本代码的设置信息。 www.ibm.com 6. This tutorial guides you step-by-step through the fundamental concepts of JUnit 4, with emphasis on the new Java 5 annotations. 本教程将循序渐进地向您讲述JUnit4的基本概念,侧重于新的Java5注释。 www.ibm.com 7. Check out JUnit and catch more errors by making your code "test-infested. " 请查看JUnit,通过使您的代码“test-infested”来捕获更多的错误。 www.ibm.com 8. The results of the JUnit test will appear in the JUnit view as normal. JUnit测试的结果会正常显示在JUnit视图中。 www.ibm.com 9. The easiest way to find out is to write a small set of JUnit tests in Java code rather than in Scala, so let's do that. 最简单的方法是用Java代码而不是Scala编写一组小型的JUnit测试,所以接下来我们就这样做。 www.ibm.com 10. They do more than JUnit could with less effort for the client. 与JUnit相比,可做的工作更多,需要客户机的干预也更少。 www.ibm.com 1. Select JUnit in the list of possible Configurations and click New. 在可能的配置列表中,选择JUnit,并单击New。 www.ibm.com 2. The Hamcrest matchers provide a humane interface syntactic sugar on top of the standard JUnit matchers. Hamcrest匹配器将在标准的JUnit匹配器顶部提供一个人本接口(humaneinterface)语法糖。 www.ibm.com 3. This means the build will not fail even if any JUnit tests fail. 这意味着即使任何JUnit测试是失败的,构建也不会失败。 www.ibm.com 4. The beauty of a framework like JUnit is that it can run an entire suite of tests as part of a build without requiring human intervention. 这个像JUnit一样的框架的美妙之处还在于,它可以把整套测试作为build的一部分运行,不需要人工进行干预。 www.ibm.com 5. One thing the JUnit framework tries to achieve is test isolation. JUnit框架想达到的一个目标就是测试隔离。 www.ibm.com 6. A new JUnit target will be created, and DynamicTestSuite should be pre-filled in the Test Class field. 将会创建一个新的JUnit目标,DynamicTestSuite应当预填入TestClass字段。 www.ibm.com 7. Test cases were created first according to the specification using the JUnit framework, and then the actual source code was developed. 首先根据规范使用JUnit框架创建测试案例,然后开发实际的源代码。 www.ibm.com 8. Work with industry-standard JUnit test scripts. 使用工业标准的测试脚本。 www.ibm.com 9. Figure 6 shows a JUnit HTML report with a failing GUI test. 图6显示了GUI测试失败后的一个JUnitHTML报告。 www.ibm.com 10. This framework extends the standard JUnit so that it can execute unit tests in an application server container. 这个框架延伸了标准的JUnit,从而使它能够在应用服务器容器中执行单元测试。 www.ibm.com 1. The JUnit framework is the current the one-stop solution for Java language unit tests. JUnit框架是Java语言单元测试当前的一站式解决方案。 www-128.ibm.com 2. JUnit testers often turn to a framework like FIT in this case because it lets you drive tests with tabular data. 在这样的情况下,使用JUnit的测试人员往往会转而使用FIT这样的框架,因为这样就可以用表格数据驱动测试。 www.ibm.com 3. In fact, once you ve seen JUnit and Groovy together in action, I ll bet you ll never turn back! 实际上,只要您看过JUnit和Groovy在一起工作,我敢打赌您就永远再也不会回头! www-128.ibm.com 4. DbUnit: A JUnit extension targeted for database-driven projects. DbUnit:瞄准数据库驱动项目的JUnit扩展。 www.ibm.com 5. Now that you have recorded your first test, you can export it for use in JUnit. 现在您已经录制了您的第一个测试,现在可以导出它以便在JUnit中使用。 www.ibm.com 6. The JUnit test should complete with no errors. JUnit测试应无错误地完成。 www.ibm.com 7. Which compiles the any normal Java-JUnit classes. 编译普通的Java-JUnit类。 www-128.ibm.com 8. I have written a JUnit test for the parser as well. 我还编写了用于该解析器的JUnit测试程序。 www.ibm.com 9. These libraries have some features to recommend them, but none have achieved the mind or market share held by JUnit. 这些库有一些可圈可点的特性,但是都没有达到JUnit的知名度和市场占有份额。 www.ibm.com 10. Variations of it support the testing of programs in other languages, such as cppUnit for C . JUnit的变化版本支持对其他语言程序的测试,例如用于C 语言的cppUnit。 www.ibm.com 1. Because FIT tests are automated, just like JUnit s, you can also run them at regular intervals, such as in a continuous integration system. 因为自动进行FIT测试,就像JUnit测试一样,所以也可以定期运行它们,例如在持续集成系统中。 www-128.ibm.com 2. Click Run to run the JUnit tests. 点击Run,从而运行这个JUnittests。 www.ibm.com 3. Sure enough, JUnit displays a red bar: The test failed. 毫无疑问,JUnit显示出红色条:测试失败。 www-128.ibm.com 4. We will first create a JUnit test class, add a single test to the class, and then, finally, execute the test. 我们首先创建JUnit测试类,将单个测试添加到该类,最后执行该测试。 www.ibm.com 5. For the less-popular text-based results, use junit. textui. TestRunner, instead. 其次受欢迎的基于文本的结果,可以利用junit.textui.TestRunner来取代。 www.ibm.com 6. Once the scripts are compiled to normal Java bytecode they can be run by any standard JUnit runner. 一旦将脚本编译成普遍的Java字节码,那么任何标准的JUnit运行器就都能运行它们。 www.ibm.com 7. In this section, we will add JUnit test cases for the sample application. 在这个部分中,我们将为这个样本应用软件添加JUnit测试用例。 www.ibm.com 8. In addition to the log file entries that CruiseControl creates, you also want to log the test results from the JUnit test cases. 除了CruiseControl创建的日志文件条目以外,您还可能希望记录JUnit测试用例产生的测试结果。 www.ibm.com 9. Although the broad outlines of JUnit 4 are clear, the details can still change. 尽管JUnit4的大轮廓很清晰,但是其细节仍然可以改变。 www.ibm.com 10. Test cases are structured in the same manner as jUnit. 测试用例的结构与jUnit采用相同的方式。 www.ibm.com 1. JUnit itself was last updated almost three years ago. JUnit本身的最后一次更新差不多是三年以前了。 www.ibm.com 2. Both are based on the Decorator design pattern and utilize JUnit's suite mechanism. 这两种类型都基于Decorator设计模式并利用JUnit的suite机制。 www.ibm.com 3. Figure 9 shows an example of a configuration at JUnit Plug-in Test. 图9显示了JUnit插件测试中所做配置的一个范例。 www.ibm.com 4. If you had 10 different parameter combinations to test in JUnit, you would be forced to write 10 test cases. 如果有10个不同的参数组合需要在JUnit中测试,您只能写10个测试用例。 www.ibm.com 5. According to Beck, "The theme of JUnit 4 is to encourage more developers to write more tests by further simplifying JUnit. " 用Beck的话来说,“JUnit4的主题是通过进一步简化JUnit,鼓励更多的开发人员编写更多的测试。” www.ibm.com 6. For more information on JUnit, see the Resources section later in this article. 如果想知道更多的关于JUnit的信息,可参阅文章后面的资源部分。 www.ibm.com 7. Luckily most unit test frameworks (such as JUnit) provide facilities to make this type of testing easy. 幸运的是,大多数单元测试框架(如JUnit)提供了轻松进行此类测试的工具。 www.ibm.com 8. JUnit-addons: A useful library for anyone using JUnit. JUnit-addons:对于使用JUnit的开发人员有用的库。 www.ibm.com 9. Note that your competition, such as Eclipse, includes integrated JUnit support in all versions (free). 注意一下你的竞争对手们,例如Eclipse,它在它的所有版本中都集成了Junit支持(而且是免费的)。 www.infoq.com 10. The beauty of using JUnit is that the framework takes care of loading the test class, running the test, and reporting the results. 使用JUnit的美妙之处在于,该框架负责装入测试类、运行测试以及报告结果。 www-128.ibm.com 1. An example of a detailed report is displayed in Figure 7, which is the JUnit view of the detailed report. 图7显示了一个详细信息报告示例,该图是详细信息报告的JUnit视图。 www.ibm.com 2. The JUnit 3. 8 naming convention states that all test method names should begin with word test. JUnit3.8命名约定规定所有测试方法名称应以单词test开头。 www.ibm.com 3. For the Main class field, enter junit. textui. TestRunner (see Figure 3). 对于Mainclass字段,输入junit.textui.TestRunner(参见图3)。 www.ibm.com 4. Listing 15: Simple Wicket unit test using JUnit and WicketTester. 清单15:使用JUnit和WicketTester的简单Wicket单元测试。 www.infoq.com 5. What's more, examples demonstrate how to fail a build process based on rules that you can define using JDepend's API with JUnit. 除此之外,本文的示例还演示了如何基于规则触发构建过程失败,您可以使用JDepend的API和JUnit定义这些规则。 www.ibm.com 6. The Maven build tool, for example, runs JUnit unit tests as part of its normal build process (see Resources). 例如,Maven这个构建工具就把运行JUnit单元测试作为正常构建过程的一部分(请参阅参考资料)。 www.ibm.com 7. Our example exploits the JUnit and Cactus frameworks, and so we need to make these framework libraries available to our test module. 我们的示例将使用JUnit和Cactus框架,所以需要使这些框架库可用于我们的测试模块。 www.ibm.com 8. The problem is, JUnit isn't a panacea; it's a tool, no more and no less. 问题是,JUnit不是万能药,它是一种名副其实的工具。 www.ibm.com 9. JUnit 3. 8 support, specifically in the interactive test runner. 支持JUnit3.8,特别是在交互式测试运行器中。 www.infoq.com 10. JUnit 4. 0 was released early this year, following a long hiatus from active development. 经过长时间积极的开发之后,JUnit4.0于今年年初发布了。 www.ibm.com 1. In order to make your test case runnable from WebSphere Studio, you need to follow the basic JUnit test case programming API. 为了让你的测试案例能在WebSphereStudio上运行,您需要遵循基本的JUnit测试案例编程API。 www.ibm.com 2. JUnit 4 doesn't solve this problem completely, but it does help. JUnit4没有完全解决这个问题,但是它对这个问题有所帮助。 www.ibm.com 3. This is the ability to easily test OpenEJB components using JUnit. 这种能力使得用户可以容易地使用JUnit测试OpenEJB组件。 www.ibm.com 4. Plus, because it is a decorator-based JUnit extension framework, you can easily use JUnitPerf to decorate existing JUnit tests. 另外,由于它是一个基于装饰器的JUnit扩展框架,所以可以很容易地用JUnitPerf装饰现有的JUnit测试。 www.ibm.com 5. Download JUnit: Find out what's new with JUnit 4. 下载JUnit:了解JUnit4的新特性。 www.ibm.com 6. Java 5 is required to compile JUnit 4 as it makes heavy use of annotations, generics, and other Java 5 language level features. Java5对于编译JUnit4是必需的,因为JUnit4大量用到注释、泛型以及Java5语言级的其他特性。 www.ibm.com 7. Although the philosophies were sound, the frameworks (including, for example, JUnit) weren. t mature enough for our purposes. 虽然理论是很好的,但是这些框架(包括,比如JUnit)对于我们的项目目的来说来是不够成熟的。 www.ibm.com 8. The tools (JUnit, Eclipse, and so on) are free, it only takes practice. 这些工具(JUnit和Eclipse等)是免费的,只等您去实践它。 www.ibm.com 9. Download JUnit and get the latest news on JUnit 4. 请下载JUnit并了解JUnit4的最新新闻。 www-128.ibm.com 10. For example, in Java, engineers use JUnit - a simple yet powerful framework for writing tests in Java. 比如,在Java界工程师会使用Junit(一个使用Java编写测试的简单但又强大的框架)。 dongxi.net 1. SR3. For the sections on running JUnit 4 in Eclipse, you need a working installation of Eclipse 3. 2 or later. 对于在Eclipse中运行JUnit4这些章节,需要一份Eclipse3.2或更新版本的工作安装版。 www.ibm.com 2. To get the most popular graphical results, use junit. swingui. TestRunner and junit. awtgui. TestRunner. 要获取最受欢迎的图形结果,可以利用junit.swingui.TestRunner和junit. www.ibm.com 3. Last but not least, I have adapted the JUnit tests for these classes. 最后一个(但不是最不重要的),我已经为这些类改写了JUnit测试。 www.ibm.com 4. Just like JUnit, you can run JBehave classes in your favorite IDE and via your preferred build platform, such as Ant. 和JUnit一样,您可以在自己喜欢的IDE中,或者通过偏爱的构建平台(例如Ant)运行JBehave类。 www.ibm.com 5. Unit test their software, using tools such as JUnit. 使用工具如JUnit对软件进行单元测试。 www.ibm.com 6. Individual subproject reports (such as Junit) are important to the developers. 单独的子项目报告(如Junit)主要供开发人员使用。 www.ibm.com 7. Repeat Steps 5 and 6 to rerun the JUnit test. 重复第5步和第5步,重新运行JUnit测试。 www.ibm.com 8. To learn about an open source JUnit test tester. 了解关于开放源代码JUnit测试测试器的知识。 www-128.ibm.com 9. I am a huge advocate of unit testing and have always loved JUnit. 我本人极力主张进行单元测试,并一直非常喜欢JUnit。 www.ibm.com 10. JUnit does what it does very well, and the design makes tradeoffs that many developers have learned to accept as normal. JUnit把自己的工作做得很好,设计中的取舍被很多开发人员所了解,并认为是很正常的做法。 www.ibm.com 1. Change environments all together, going from JUnit test to Portlet for example, without having to change your flow definitions. 和环境一起改变而不需要修改你的流转定义,比如从JUnit测试到Portlet。 www.infoq.com 2. For example, Listing 1 defines a unit test that uses JUnit to verify a stubbed out data class called BeerDaoStub. 例如,清单1定义了一个单元测试,该测试使用JUnit来验证一个叫做BeerDaoStub的存根数据类。 www.ibm.com 3. This is important so that tools with integrated JUnit support such as Eclipse can handle JUnit 4 without an update. 这一点很重要,所以诸如Eclipse之类具有集成JUnit支持的工具可以处理JUnit4,而不需要更新。 www.ibm.com 4. For example, there's a JUnit ruleset that finds common problems (such as using assert(x==null) vs assertNull(x)) in JUnit test suites. 例如,JUnit规则集用来在JUnit测试套件中寻找常见的问题(如使用了assert(x==null)而不是assertNull(x))等。 www.infoq.com 5. With JUnit 4, I can give it a more natural name and annotate it with @After 对于JUnit4,我可以给它取一个更自然的名称,并用@After注释它 www.ibm.com 6. Listing 4 is an updated JUnit test case that adds a handful of additional test cases in an attempt to fully exercise 清单4是一个更新过的JUnit测试案例,增加了一些附加测试案例,以试图完全执行 www-128.ibm.com 7. In Listing 3, I define a simple, sunny-day scenario JUnit test class with three test cases, which attempt to exercise both the 在清单3中,我定义了一个简单的有三个测试案例的JUnit测试类,它将试图执行 www-128.ibm.com 8. These, fittingly, start with the prefix test (they have to be public and return void). When you run a test, JUnit 这些方法都恰如其分地用前缀test开头(它们必须是public,并且返回void)。 www.ibm.com 9. If you're using JUnit 4, you could simply annotate the tests as @Ignore until you fill them in, like so 如果您使用的是JUnit4,您能够简单地将测试注释为@Ignore,直到您将它们填写完,例如 www.ibm.com 10. Generating JUnit test cases for your application 为应用程序生成JUnit测试用例 www.ibm.com 1. Completely revised test context framework - TestNG and JUnit 4 tests are now supported by the new annotation-based test context framework 测试框架的巨大改变——现在新的基于注解的测试框架已经支持TestNG和JUnit4。 www.infoq.com 2. The first step is to create a JUnit test and appropriately configure JDepend, as shown in Listing 2 第一步是创建一个JUnit测试并且对JDepend做相应配置,如清单2所示 www.ibm.com 3. JUnit, available as open source, eliminates this onerous task by providing a ready-made framework. JUnit is 作为一种开放源代码使用的JUnit通过提供一个现成的框架来减免这个繁重的任务。 www.ibm.com 4. Features a variety of articles and tutorials on JUnit and unit testing in general, including 上有关于JUnit和单元测试的一般信息的各种文章和教程,包括 www-128.ibm.com 5. Execute these steps by launching the JUnit test, instructions for which can be found in Part 1. In summary 通过启动JUnit测试执行这些步骤,该测试的说明可在第1部分中找到。 www.ibm.com 6. Tested the project source using JUnit framework using both unit and component test cases 既使用单元测试案例又使用组件测试案例的JUnit框架对工程源代码进行测试 www.ibm.com 7. See Resources for a link to this and other JUnit resources 有关它和其他JUnit资源的链接请参阅 www-128.ibm.com 8. Embeddedable server implementation for junit testing 用于Junit测试的可嵌入式服务器实现。 www.infoq.com 9. Good JUnit practice encourages developers to extend the base 好的JUnit实践鼓励开发人员扩展基类 www-128.ibm.com 10. Listing 2 gives a simple JUnit test case for this class, and Figure 1 shows the results when I run this test in Eclipse 清单2给出了针对这个类的一个简单的JUnit测试用例,图1展示了我在Eclipse中运行这个测试时的结果 www.ibm.com 1. You can now launch JUnit Plug-in tests in a non-UI thread 你现可以在非UI线程中启动JunitPlug-in测试 www.infoq.com 2. Try this testing framework for its advances over JUnit 试用这个测试框架,了解它对JUnit的超越 www-128.ibm.com 3. Design and implementation of model repository testing based on metamodel and JUnit 基于JUnit和元模型的模型存储测试设计与实现 www.ilib.cn 4. When a test is invoked, JUnit will call 调用测试时,JUnit会调用 www-128.ibm.com 5. JUnit test: running the sample code using JUnit JUnit测试:利用Junit运行样本代码 www.ibm.com 6. Developed the test code according to the project specification using the Suggested steps and the JUnit framework 根据工程规范,使用建议步骤和JUnit框架开发测试代码 www.ibm.com 7. JUnit creates a test case with N test methods N times JUnit创建有N个测试方法的测试用例,需要N次 www.infoq.com 8. Erik Hatcher shows you how he modified the popular Ant 1. 3 And the JUnit test framework for complete, customized ErikHatcher向您介绍了他如何修改流行的Ant1.3和JUnit测试框架,以提供完整、可定制的 www-128.ibm.com 9. Download JUnit from The JUnit home page JUnit的下载地址是 www-128.ibm.com 10. In a JUnit test suite, an, 在一个JUnit测试套件中, www-128.ibm.com 1. The above JUnit test has one test case, 上面的JUnit测试中有一个测试用例, www-128.ibm.com 2. Figure 3: JUnit view after modifying the code 图3:修改代码之后的JUnit视图 www.ibm.com 3. All previous versions of JUnit use naming conventions and reflection to locate tests. For example, this code tests that 1 1 equals 2 以前所有版本的JUnit都使用命名约定和反射来定位测试。 www.ibm.com |
||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。