~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.systemtap.ui.graphingapi.nonui.tests/src/org/eclipse/linuxtools/systemtap/ui/graphingapi/nonui/tests/aggregates/MaxAggregateTest.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-13 21:43:22 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130513214322-6frgd9du1n0w2uo7
Tags: 1.2.1-1
* Team upload.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
package org.eclipse.linuxtools.systemtap.ui.graphingapi.nonui.tests.aggregates;
13
13
 
 
14
import static org.junit.Assert.assertEquals;
 
15
import static org.junit.Assert.assertNull;
 
16
import static org.junit.Assert.assertTrue;
 
17
 
14
18
import org.eclipse.linuxtools.systemtap.ui.graphingapi.nonui.aggregates.MaxAggregate;
15
19
import org.eclipse.linuxtools.systemtap.ui.graphingapi.nonui.tests.MockDataSet;
16
 
 
17
 
import junit.framework.TestCase;
18
 
 
19
 
public class MaxAggregateTest extends TestCase {
20
 
        public MaxAggregateTest(String name) {
21
 
                super(name);
22
 
        }
23
 
 
24
 
        protected void setUp() throws Exception {
25
 
                super.setUp();
26
 
        }
27
 
 
 
20
import org.junit.Test;
 
21
 
 
22
public class MaxAggregateTest  {
 
23
 
 
24
        @Test
28
25
        public void testAggregate() {
29
26
                MaxAggregate aa = new MaxAggregate();
30
27
                Number num;
54
51
                assertEquals(2.0, num.doubleValue(), 0.0);
55
52
        }
56
53
 
 
54
        @Test
57
55
        public void testGetID() {
58
56
                MaxAggregate aa = new MaxAggregate();
59
57
                assertTrue(MaxAggregate.ID.equals(aa.getID()));
60
58
        }
61
59
        
62
 
        protected void tearDown() throws Exception {
63
 
                super.tearDown();
64
 
        }
65
60
}