summaryrefslogtreecommitdiffstats
path: root/simple/simple-common/src/test/java/org/simpleframework/common/lease/TimeTestCase.java
blob: 294cc9b3c52d4157f1564a170ce15889d27107f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package org.simpleframework.common.lease;

import junit.framework.TestCase;

public class TimeTestCase extends TestCase {

   public void testTime() {
   }
   
   public static void assertLessThan(long a, long b) {      
      assertTrue(String.format("Value %s is not less than %s", a, b), a < b);
   }
   
   public static void assertLessThanOrEqual(long a, long b) {      
      assertTrue(String.format("Value %s is not less than or equal to %s", a, b), a <= b);
   }
   
   public static void assertGreaterThan(long a, long b) {
      assertTrue(String.format("Value %s is not greater than %s", a, b), a > b);      
   }
   
   public static void assertGreaterThanOrEqual(long a, long b) {
      assertTrue(String.format("Value %s is not greater than or equal to %s", a, b), a >= b);      
   }
}