01: package org.hanseltest;
02:
03: /**
04: * Contains code using assertions.
05: * @author Niklas Mehner
06: */
07: public class CoverAssertion {
08:
09: /**
10: * Returns i and asserts i > 0.
11: * @param i some int.
12: * @return i
13: */
14: public int coverAssertion(int i) {
15: assert i > 0;
16:
17: return i;
18: }
19:
20: }
|