projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
POJO tests
[lgpl/argeo-commons.git]
/
org.argeo.util
/
ext
/
test
/
org
/
argeo
/
util
/
ThroughputTest.java
diff --git
a/org.argeo.util/ext/test/org/argeo/util/ThroughputTest.java
b/org.argeo.util/ext/test/org/argeo/util/ThroughputTest.java
index fc8007efdd2d47cf20000cb406b69de33affa5f5..65d0a58e76803def223f70960d6087e756698c70 100644
(file)
--- a/
org.argeo.util/ext/test/org/argeo/util/ThroughputTest.java
+++ b/
org.argeo.util/ext/test/org/argeo/util/ThroughputTest.java
@@
-15,18
+15,18
@@
*/
package org.argeo.util;
*/
package org.argeo.util;
-import junit.framework.TestCase;
+public class ThroughputTest {
+ public void testParse() throws Exception {
+// assert 0 == 1;
-public class ThroughputTest extends TestCase {
- public void testParse() {
Throughput t;
t = new Throughput("3.54/s");
Throughput t;
t = new Throughput("3.54/s");
- assert
Equals(3.54d, t.getValue()
);
- assert
Equals(Throughput.Unit.s,
t.getUnit());
- assert
Equals(282l, (long) t.asMsPeriod()
);
+ assert
3.54d == t.getValue(
);
+ assert
Throughput.Unit.s.equals(
t.getUnit());
+ assert
282l == (long) t.asMsPeriod(
);
t = new Throughput("35698.2569/h");
t = new Throughput("35698.2569/h");
- assert
Equals(Throughput.Unit.h,
t.getUnit());
- assert
Equals(101l, (long) t.asMsPeriod()
);
+ assert
Throughput.Unit.h.equals(
t.getUnit());
+ assert
101l == (long) t.asMsPeriod(
);
}
}
}
}