1 package org
.eclipse
.linuxtools
.tmf
.core
.tests
.ctfadaptor
;
3 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfLocation
;
4 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfTimestamp
;
5 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfTimestamp
;
7 import static org
.junit
.Assert
.*;
10 * The class <code>CtfLocationTest</code> contains tests for the class <code>{@link CtfLocation}</code>.
12 * @generatedBy CodePro at 03/05/12 2:29 PM
14 * @version $Revision: 1.0 $
16 public class CtfLocationTest
{
18 * Run the CtfLocation(Long) constructor test.
22 * @generatedBy CodePro at 03/05/12 2:29 PM
25 public void testCtfLocation_1()
27 Long location
= new Long(1L);
29 CtfLocation result
= new CtfLocation(location
);
31 // add additional test code here
32 assertNotNull(result
);
33 assertEquals(new Long(1L), result
.getLocation());
37 * Run the CtfLocation(ITmfTimestamp) constructor test.
41 * @generatedBy CodePro at 03/05/12 2:29 PM
44 public void testCtfLocation_2()
46 ITmfTimestamp timestamp
= new TmfTimestamp();
48 CtfLocation result
= new CtfLocation(timestamp
);
50 // add additional test code here
51 assertNotNull(result
);
52 assertEquals(new Long(0L), result
.getLocation());
56 * Run the CtfLocation clone() method test.
60 * @generatedBy CodePro at 03/05/12 2:29 PM
63 public void testClone_1()
65 CtfLocation fixture
= new CtfLocation(new Long(1L));
66 fixture
.setLocation(new Long(1L));
68 CtfLocation result
= fixture
.clone();
70 // add additional test code here
71 assertNotNull(result
);
72 assertEquals(new Long(1L), result
.getLocation());
76 * Run the Long getLocation() method test.
80 * @generatedBy CodePro at 03/05/12 2:29 PM
83 public void testGetLocation_1()
85 CtfLocation fixture
= new CtfLocation(new Long(1L));
86 fixture
.setLocation(new Long(1L));
88 Long result
= fixture
.getLocation();
90 // add additional test code here
91 assertNotNull(result
);
92 assertEquals("1", result
.toString());
93 assertEquals((byte) 1, result
.byteValue());
94 assertEquals((short) 1, result
.shortValue());
95 assertEquals(1, result
.intValue());
96 assertEquals(1L, result
.longValue());
97 assertEquals(1.0f
, result
.floatValue(), 1.0f
);
98 assertEquals(1.0, result
.doubleValue(), 1.0);
102 * Run the void setLocation(Long) method test.
106 * @generatedBy CodePro at 03/05/12 2:29 PM
109 public void testSetLocation_1()
111 CtfLocation fixture
= new CtfLocation(new Long(1L));
112 fixture
.setLocation(new Long(1L));
113 Long location
= new Long(1L);
115 fixture
.setLocation(location
);
117 // add additional test code here
121 * Perform pre-test initialization.
124 * if the initialization fails for some reason
126 * @generatedBy CodePro at 03/05/12 2:29 PM
131 // add additional set up code here
135 * Perform post-test clean-up.
138 * if the clean-up fails for some reason
140 * @generatedBy CodePro at 03/05/12 2:29 PM
143 public void tearDown()
145 // Add additional tear down code here
151 * @param args the command line arguments
153 * @generatedBy CodePro at 03/05/12 2:29 PM
155 public static void main(String
[] args
) {
156 new org
.junit
.runner
.JUnitCore().run(CtfLocationTest
.class);
This page took 0.063922 seconds and 5 git commands to generate.