@Test public void testSetValue() { System.out.println("setValue"); long value = 0L; PerfMonSampleResult instance = new PerfMonSampleResult(); instance.setValue(value); }
/** Test of getValue method, of class PerfMonSampleResult. */ @Test public void testGetValue_0args() { System.out.println("getValue"); PerfMonSampleResult instance = new PerfMonSampleResult(); instance.setValue(123.0); double expResult = 123.0; double result = instance.getValue(); assertEquals(expResult, result, 0.0); }
/** Test of getValue method, of class PerfMonSampleResult. */ @Test public void testGetValue_SampleResult() { System.out.println("getValue"); SampleResult res = new SampleResult(1000000, 123 * 1000); double expResult = 123; double result = PerfMonSampleResult.getValue(res); assertEquals(expResult, result, 0.0); }