|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IsFalseConstraint.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | package com.agical.rmock.core.match.constraint; | |
| 2 | ||
| 3 | import com.agical.rmock.core.match.Constraint; | |
| 4 | ||
| 5 | /** | |
| 6 | * <em>(c) Agical AB 2005</em> | |
| 7 | * @author brolund | |
| 8 | * | |
| 9 | ||
| 10 | */ | |
| 11 | public class IsFalseConstraint extends AbstractConstraint implements Constraint { | |
| 12 | ||
| 13 | 1226 | public IsFalseConstraint() { |
| 14 | 1226 | super("isFalse", null); |
| 15 | } | |
| 16 | ||
| 17 | 63 | public boolean passes(Object object) { |
| 18 | 63 | return object != null && (object instanceof Boolean) && !((Boolean)object).booleanValue(); |
| 19 | } | |
| 20 | ||
| 21 | } |
|
||||||||||