/** * Invokes a boolean method and uses return value in comparison. * * @param booleanMethod name of boolean method as specified in Java Beans specification. Example: if method name * is <code>isValid()</code>, then the string "valid" needs to be passed. This results in readable code * such as: * <pre> * a(bean).shouldBe("valid"); * </pre> */ public void shouldBe(String booleanMethod) { invokeBoolean(booleanMethod, Boolean.TRUE); }
/** * Invokes a boolean method and uses return value in comparison. * * @param booleanMethod name of boolean method as specified in Java Beans specification. Example: if method name * is <code>isValid()</code>, then the string "valid" needs to be passed. This results in readable code * such as: * <pre> * a(bean).shouldNotBe("valid"); * </pre> */ public void shouldNotBe(String booleanMethod) { invokeBoolean(booleanMethod, Boolean.FALSE); }
/** * Invokes a boolean method and uses return value in comparison. * * @param booleanMethod name of boolean method as specified in Java Beans specification. Example: if method name * is <code>isValid()</code>, then the string "valid" needs to be passed. This results in readable code * such as: * <pre> * a(bean).shouldBe("valid"); * </pre> */ public void shouldBe(String booleanMethod) { invokeBoolean(booleanMethod, Boolean.TRUE); }
/** * Invokes a boolean method and uses return value in comparison. * * @param booleanMethod name of boolean method as specified in Java Beans specification. Example: if method name * is <code>isValid()</code>, then the string "valid" needs to be passed. This results in readable code * such as: * <pre> * a(bean).shouldNotBe("valid"); * </pre> */ public void shouldNotBe(String booleanMethod) { invokeBoolean(booleanMethod, Boolean.FALSE); }
/** * Invokes a boolean method and uses return value in comparison. * * @param booleanMethod name of boolean method as specified in Java Beans specification. Example: if method name * is <code>isValid()</code>, then the string "valid" needs to be passed. This results in readable code * such as: * <pre> * a(bean).shouldBe("valid"); * </pre> */ public void shouldBe(String booleanMethod) { invokeBoolean(booleanMethod, Boolean.TRUE); }
/** * Invokes a boolean method and uses return value in comparison. * * @param booleanMethod name of boolean method as specified in Java Beans specification. Example: if method name * is <code>isValid()</code>, then the string "valid" needs to be passed. This results in readable code * such as: * <pre> * a(bean).shouldNotBe("valid"); * </pre> */ public void shouldNotBe(String booleanMethod) { invokeBoolean(booleanMethod, Boolean.FALSE); }