[17 total ]
Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles.
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
... [More]
configuration.
* Support for data-driven testing
* Support for parameters.
* distribution of tests on slave machines.
* Powerful execution model
* Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).
* Embeds BeanShell for further flexibility.
* no dependencies
* Dependent methods for application server testing.
TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc... [Less]
DbUnit is a JUnit extension (also usable with Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when
... [More]
one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage.
DbUnit has the ability to export and import your database data to and from XML datasets. Since version 2.0, DbUnit can works with very large dataset when use in streaming mode. DbUnit can also helps you to verify that your database data match expected set of values. [Less]
FEST is a collection of libraries that aims at simplifying creation and maintenance of automated tests.
Its main module, the Swing module, provides the following benefits:
* Simulation of user-generated events and reliable GUI component
... [More]
lookup
* Easy-to-use and powerful API that simplifies creation and maintenance of Swing GUI functional tests
* Supports both JUnit and TestNG
* Ability to take screenshots of failed GUI tests and embed them in a HTML report (JUnit and TestNG)
* Experimental Groovy Builder support for creating GUI tests [Less]
HttpUnit emulates the relevant portions of browser behavior, including form submission, Javascript, basic HTTP authentication, cookies, and automatic page redirection, and allows Java test code to examine returned pages either as text, an XML DOM, or
... [More]
containers of forms, tables, and links. When combined with a framework such as JUnit, it is fairly easy to write tests that very quickly verify the functioning of a Web site. [Less]
Concordion is an open source framework for Java that lets you turn a plain English description of a requirement into an automated test.
SmartFrog is a distributed deployment system. It allows developers, architects and operations teams to describe the deployment of different parts ("components") of a server-side configuration, then take this description and deploy it across multiple
... [More]
servers. Every host runs a small SmartFrog daemon which can deploy and manage part of the overall distributed system.
Deployed components (and systems built from them) can be started, stopped and "pinged" for health...some components can apply failure handling and workflow to deployments, enabling the "deployment descriptor" to even include failure handling logic"
SmartFrog was developed at HP Labs in Bristol, in the UK. [Less]
JsTester allows validation of javaScript code inside java. It provides a group of assert methods like JUnit's Assert, it also supports the validations described in http://javascript.crockford.com/remedial.html, and the ability to use your own
... [More]
validations (unary & binary predicates).
The project provides two ways of creating your tests: by inheritance (JsTestCase), and by composition (JsTester). Use JsTestCase as you would normally use any extension of TestCase. Use JsTester with TestNG or JUnit4 and annotations, or inside another TestCase hierarchy. Includes Groovy support. [Less]
The example code to accompany "Ant in Action", the second edition of "Java Development with Ant".
The actual code shows how to use Ant and Ivy for a build and release of a diary web application that serves the data up as an Atom feed, and uses EJB to persist the diary data to a database.
Mockrunner is a lightweight framework for unit testing applications in the J2EE environment. It supports servlets, filters, tag classes and Struts actions and forms. Furthermore it includes a JDBC, a JMS and a JCA test framework and can be used in
... [More]
conjunction with MockEJB to test EJB based applications.
Mockrunner extends JUnit and simulates the necessary behaviour without calling the real infrastructure. It does not need a running application server or a database. Furthermore it does not call the webcontainer or the Struts ActionServlet. It is very fast and enables the user to manipulate all involved classes and mock objects in all steps of the test. It can be used to write very sophisticated unit-tests for J2EE based applications without any overhead. Mockrunner does not support any [Less]
DbAssert is a set of assertion methods for jUnit tests to verify your database data. It uses non-intrusive way for writing unit tests, you don't have to extend any specific class to be able to query and test your database. Initialize DbAssert and start making assertions against your database right away.
Allow JUnit tests to run in parallel for better CPU utilization.
The Umangite framework simplifies the task of writing web tests with Selenium. It's built on TestNG, Spring and Cargo.
Here is an example of a simple test:
public class HelloWorldTest extends AbstractSeleniumTest {
@Override
protected
... [More]
String[] getConfigLocations() {
return new String[] { ... };
}
@Test
public void test() {
open('/testwebapp/index.html');
assertTextPresent('Hello There');
}
}AbstractSeleniumTest has an @BeforeClass method that starts the web container and Selenium and @AfterClass method that shuts them down. It also injects itself with Spring beans (from an application context defined by the getConfigLocations()). The Spring beans are responsible for launching Selenium and the web container. There are currently two launchers: one that runs an embedded Jetty and the other uses Cargo to launch Tomcat (To be generalized to support other containers).
Here are some example bean definitions:
Once of the nice things around this framework is that the same test class can be run with multiple containers - e.g. both Jetty for nimble developer testing and Tomcat for other tests. [Less]
Mocquer is a unit testing tool to mock interface/class. It extends the functions of EasyMock -- A mock tool that can create mock object for the given interface. Based on Dunamis project, Mocquer can generate mock object for both interface and class.
Enhancement to ANT / Maven - JUnit Reports:
Adds an not-fully-implemented state ('yellow' or 'blue') to Junit test cases:
This gives an overview over how much not-fully-implemented tests exist.
What is it good for? It helps combined with
... [More]
automatic testcase generation: the generated methods can contain this assertion and will be reported in JunitReports. [Less]
a tool that allows to easily write and execute JUnit-style tests in the context of a J2EE application server
Abbot is a simple framework for unit and functional testing of Java GUIs. Facilitates generating user actions and examining component state. Supports recording and playback on any Java application.