"Tests with Properties" 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-2.0.pom
Binary download: twip-2.0.jar
Source download: twip-2.0-sources.jar
Release date: 4 July 2009
License: Apache 2.0
Files: 33,
Classes: 33,
Lines of code: 1266
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.jmock / jmock
  • Maven-Central / org.jmock / jmock-junit4
  • Maven-Central / org.mockito / mockito-core
  • Maven-Central / org.objenesis / objenesis
  • JDK / jdk / openjdk
MD5 Signatures:
  • 47c8a4213236482f219f15d0776c17a4
  • a661067dd58f1dbe9a7e842375aea3a7
New to GrepCode? Check out our FAQ X