/** * Test of getAverageProductWeightCS method, of class Examples. * * @throws Exception */ @Test public void testGetAverageProductWeightCS() throws Exception { System.out.println("getAverageProductWeightCS"); double expResult = 13.48; double result = examples.getAverageProductWeightCS(); System.out.println("averageWeight: " + result); Assert.assertEquals(expResult, result, .001); }
/** * Test of getAverageProductWeightCS method, of class Examples. * * @throws Exception */ @Test public void testGetAverageProductWeightGreaterThanZero() throws Exception { System.out.println("getAverageProductWeightGreaterThanZero"); double expResult = 0.00; double result = examples.getAverageProductWeightCS(); System.out.println("averageWeight: " + result); Assert.assertTrue(result > expResult); }