KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hanseltest > CoverAssertion


1 package org.hanseltest;
2
3 /**
4  * Contains code using assertions.
5  * @author Niklas Mehner
6  */

7 public class CoverAssertion {
8      
9     /**
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 }
21
Popular Tags