| 1 | |
package net.sf.cotta.test.assertion; |
| 2 | |
|
| 3 | |
import net.sf.cotta.test.matcher.GreaterThanMatecher; |
| 4 | |
import net.sf.cotta.test.matcher.LessThanMatcher; |
| 5 | |
|
| 6 | |
public class IntegerAssert extends BaseAssert<Integer, IntegerAssert> { |
| 7 | |
public IntegerAssert(int value) { |
| 8 | 4 | super(value); |
| 9 | 4 | } |
| 10 | |
|
| 11 | |
public IntegerAssert lt(int expected) { |
| 12 | 2 | matches(new LessThanMatcher<Integer, Integer>(expected)); |
| 13 | 1 | return this; |
| 14 | |
} |
| 15 | |
|
| 16 | |
public IntegerAssert gt(int expected) { |
| 17 | 2 | matches(new GreaterThanMatecher<Integer, Integer>(expected)); |
| 18 | 1 | return this; |
| 19 | |
} |
| 20 | |
|
| 21 | |
} |