"Tests with Parameters" allows you to simply add parameters to your JUnit test methods. TwiP calls such methods with all possible combinations of their parameters... or at least some reasonable subset of commonly failing values in the case of Integers, etc. You can further reduce these values with an assume expression in an annotation, e.g. ">= 0". Alternatively you can specify a static method or field to provide the values for your test method(s), if you want to test with other than the default values. By using TwiP you change the semantics of your tests from existence to for-all quantifiers, i.e. you specify "all ravens are black" instead of "Abraxas is black", "Toni is black", etc. This moves your tests closer to an executable specification, so TwiP is a very nice addition to BDD.
Project metadata download: twip-3.3.pom
Binary download: twip-3.3.jar
Source download: twip-3.3-sources.jar
Release date: 31 March 2011
License: Apache 2.0
Files: 60,
Classes: 73,
Lines of code: 2201
Google AppEngine: Partial support
Depends on:(View as diagram)
  • Maven-Central / jmock / jmock
  • Maven-Central / junit / junit
  • Maven-Central / org.easymock / easymock
  • Maven-Central / org.hamcrest / hamcrest-core
  • Maven-Central / org.hamcrest / hamcrest-library
  • Maven-Central / org.jboss.weld / weld-se
  • Maven-Central / org.mockito / mockito-core
  • Maven-Central / org.objenesis / objenesis
  • Maven-Central / org.slf4j / slf4j-api
  • Maven-Central / org.slf4j / slf4j-simple
  • JDK / jdk / openjdk
Used by:
MD5 Signatures:
  • 0b159e2aa6691fb3413b8a9d3a2147a2
  • dd4b79b846c83129b87cf0b1d2543e45
New to GrepCode? Check out our FAQ X