diff options
author | mikaelpeltier <mikaelpeltier@google.com> | 2015-06-24 14:31:11 +0200 |
---|---|---|
committer | Mikael Peltier <mikaelpeltier@google.com> | 2015-06-24 14:59:36 +0000 |
commit | 04563874ddaac702d6c715eaa89c29b253f4c54e (patch) | |
tree | c305fa98670c3e80be494cc054a8e31b51bfe7f2 /simple/simple-common/src/test/java/org/simpleframework/common/lease/TimeTestCase.java | |
parent | f1828481ebcfee3bddc323fca178a4502a60ceef (diff) | |
download | toolchain_jack-04563874ddaac702d6c715eaa89c29b253f4c54e.zip toolchain_jack-04563874ddaac702d6c715eaa89c29b253f4c54e.tar.gz toolchain_jack-04563874ddaac702d6c715eaa89c29b253f4c54e.tar.bz2 |
Add simpleframework source files
Change-Id: I18d01df16de2868ca5458f79a88e6070b75db2c3
(cherry picked from commit 3e9f84cf7b22f6970eb8041ca38d12d75c6bb270)
Diffstat (limited to 'simple/simple-common/src/test/java/org/simpleframework/common/lease/TimeTestCase.java')
-rw-r--r-- | simple/simple-common/src/test/java/org/simpleframework/common/lease/TimeTestCase.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/simple/simple-common/src/test/java/org/simpleframework/common/lease/TimeTestCase.java b/simple/simple-common/src/test/java/org/simpleframework/common/lease/TimeTestCase.java new file mode 100644 index 0000000..294cc9b --- /dev/null +++ b/simple/simple-common/src/test/java/org/simpleframework/common/lease/TimeTestCase.java @@ -0,0 +1,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); + } +} |