|Description:||Welcome to JUnit.org. This site is dedicated to software developers using JUnit or one of the other XUnit testing frameworks. We'll be adding more content and web-based services over time. Initially we'll be providing links to give you a one-stop destination to learn the latest information on unit testing.|
|License:||Apache Software License|
|Description:|| Cactus is a simple test framework for unit testing server-side java code (Servlets, EJBs, Tag Libs, Filters, ...).
The intent of Cactus is to lower the cost of writing tests for server-side code. It uses JUnit and extends it.
Cactus implements an in-container strategy, meaning that tests are executed inside the container. |
|Description:||Exacum is an interactive unit test tool for functional and regression test. It supports automatic tests for Java units like EJBs and Java object sets or tests of Web applications and Web services. You can combine such tests accross the software layers. A complex set of rules can be set up to control the test and a full qualified report can be made for evidence.|
|4. AppPerfect Unit Tester|
|Description:||AppPerfect Unit Tester is a unit test management system. It automates the generation and execution of your unit tests. Unit testing form the basis of software testing at the developer level. Unit testing generally refers to testing software based on the smallest logical unit of that software. In Java, this typically is a class file.|
|Description:||DDTUnit - A Data Driven Approach to Unit Testing
For setting up module/component tests during development cycle we found it extremely useful and productive to take a data centric approach to cover multiple testcases on coded testmethods.
The basic idea of DDTUnit is to provide a XML description (XML Schema based) of testdata and combine it with the simplicity of JUnit. All program flow is coded in plain old Java. A wide range of object types can be expressed through the definition in xml resource (not just the simple String constructor based objects.|
|Description:|| In the same way that JUnit allows us to write unit tests for Java classes, TagUnit allows us to unit test JSP custom tags, inside the container. In essence, TagUnit is a tag library for testing custom tags within JSP pages.
Even with tools like Cactus, JUnitEE and HttpUnit, testing Java Servlets and JSP pages is hard, particularly if they contain specific business or presentation logic that needs to be tested. Best practices around J2EE development suggest that logic should be encapsulated in JavaBeans or JSP custom tags for better separation of concerns, maintainability, reusability and to facilitate easier testing. Although JUnit can be used to test JavaBeans, testing custom tags by simply invoking their methods doesn't make sense. Custom tags are components and therefore need to be tested at that level, in the way that they would normally be used from within a JSP page.
TagUnit provides a way to perform assertions on the content that custom tags generate and the side-effects that they have on the environment such as the introduction of scoped (request/page/session/application) attributes, cookies and so on. In addition to this, assertions can be made on the constraints specified within the tag library descriptor file that give us a way to verify the contract that a tag provides. In just a four line JSP page, TagUnit can automatically perform tests such as asserting whether the tag handler class is loadable and that it has setter methods for all declared attributes. To supplement this, user defined tests provide a way to perform assertions on the description of a tag, such as its body content and the details of any attributes. |
|Description:|| Surrogate is a complimentary unit testing framework, especially suitable for unit testing of large, complex Java systems. The framework integrates seamlessly with JUnit,MockEJB and various mock object implementations and is based on the AspectJ technology.|
|License:||Apache Software License|
|Description:||TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as:
* JDK 5 Annotations (JDK 1.4 is also supported with JavaDoc annotations).
* Flexible test configuration.
* Support for data-driven testing (with @DataProvider).
* Support for parameters.
* Allows distribution of tests on slave machines.
* Powerful execution model (no more TestSuite).
* Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).
* Embeds BeanShell for further flexibility.
* Default JDK functions for runtime and logging (no dependencies).
* Dependent methods for application server testing.
|Description:||For those of you who've got into it you'll know that test driven development is great. It gives you the confidence to change code safe in the knowledge that if something breaks you'll know about it. Except for those bits you don't know how to test. |
|Description:|| Jice is an (excellent) lightweight dependency injection framework now embedded into JTestCase.
Using Jice it is possible to seamlessly inject into JTestCase arbitrary graphs of Java objects such as :
* Collections Objects (Vector,HashMap,ArrayList,...)
* Arbitrary Graph of Java Objects (see here)