Class NotFormatter

java.lang.Object
com.tngtech.jgiven.format.BooleanFormatter
com.tngtech.jgiven.format.NotFormatter
All Implemented Interfaces:
ArgumentFormatter<Boolean>

public class NotFormatter extends BooleanFormatter
Translates false to the word "not" and true to the empty word "".
 true:  ""
 false: "not"
 

Example:

 then().the_coffee_should_$_be_served( coffeeServed )
 

Result:

coffeeServed == false

 then the coffee should not be served
 

coffeeServed == true

 then the coffee should be served
 
  • Constructor Details

    • NotFormatter

      public NotFormatter()
  • Method Details