\r
protected static final Unit<javax.measure.quantity.Volume> cubeMM = SI.MILLIMETER.pow(3).asType(javax.measure.quantity.Volume.class);\r
\r
- @SuppressWarnings("unchecked")\r
+ @SuppressWarnings({ "unchecked", "rawtypes" })\r
protected void assertApproximate(Amount a, Amount b){\r
Assert.assertTrue("" + a.to(b.getUnit()) + " !~ " + b , a.approximates(b));\r
}\r
\r
- @SuppressWarnings("unchecked")\r
+ @SuppressWarnings({ "unchecked", "rawtypes" })\r
protected void assertApproximate(Amount a, Amount b, Amount diff){\r
Assert.assertTrue("" + a.to(b.getUnit()) + " !~~ " + b , a.minus(b).abs().isLessThan(diff));\r
}\r