Warning: Can't use blame annotator:
svn blame failed on trunk/test/scriptbuilder/structures/TimeSliceTest.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator-scriptbuilder/trunk/test/scriptbuilder/structures/TimeSliceTest.java @ 56

Revision 56, 4.0 KB checked in by bmcguffin, 9 years ago (diff)

Added test files and began filling them out. Added an integration test for XML loading and saving. Added several reference files to test against.

RevLine 
1package scriptbuilder.structures;
2
3import junit.framework.TestCase;
4import scriptbuilder.structures.events.I_ScriptEvent;
5
6/**
7 *
8 * @author Bryan McGuffin
9 */
10public class TimeSliceTest extends TestCase {
11   
12    public TimeSliceTest(String testName) {
13        super(testName);
14    }
15
16    /**
17     * Test of addEvent method, of class TimeSlice.
18     */
19    public void testAddEvent()
20    {
21        System.out.println("addEvent");
22        I_ScriptEvent event = null;
23        TimeSlice instance = null;
24        instance.addEvent(event);
25        // TODO review the generated test code and remove the default call to fail.
26        fail("The test case is a prototype.");
27    }
28
29    /**
30     * Test of getX method, of class TimeSlice.
31     */
32    public void testGetX()
33    {
34        System.out.println("getX");
35        TimeSlice instance = null;
36        int expResult = 0;
37        int result = instance.getX();
38        assertEquals(expResult, result);
39        // TODO review the generated test code and remove the default call to fail.
40        fail("The test case is a prototype.");
41    }
42
43    /**
44     * Test of getTime method, of class TimeSlice.
45     */
46    public void testGetTime()
47    {
48        System.out.println("getTime");
49        TimeSlice instance = null;
50        int expResult = 0;
51        int result = instance.getTime();
52        assertEquals(expResult, result);
53        // TODO review the generated test code and remove the default call to fail.
54        fail("The test case is a prototype.");
55    }
56
57    /**
58     * Test of shift method, of class TimeSlice.
59     */
60    public void testShift()
61    {
62        System.out.println("shift");
63        int amnt = 0;
64        TimeSlice instance = null;
65        instance.shift(amnt);
66        // TODO review the generated test code and remove the default call to fail.
67        fail("The test case is a prototype.");
68    }
69
70    /**
71     * Test of getEffectiveDuration method, of class TimeSlice.
72     */
73    public void testGetEffectiveDuration()
74    {
75        System.out.println("getEffectiveDuration");
76        TimeSlice instance = null;
77        int expResult = 0;
78        int result = instance.getEffectiveDuration();
79        assertEquals(expResult, result);
80        // TODO review the generated test code and remove the default call to fail.
81        fail("The test case is a prototype.");
82    }
83
84    /**
85     * Test of getToolTipText method, of class TimeSlice.
86     */
87    public void testGetToolTipText()
88    {
89        System.out.println("getToolTipText");
90        int y = 0;
91        TimeSlice instance = null;
92        String expResult = "";
93        String result = instance.getToolTipText(y);
94        assertEquals(expResult, result);
95        // TODO review the generated test code and remove the default call to fail.
96        fail("The test case is a prototype.");
97    }
98
99    /**
100     * Test of toString method, of class TimeSlice.
101     */
102    public void testToString()
103    {
104        System.out.println("toString");
105        TimeSlice instance = null;
106        String expResult = "";
107        String result = instance.toString();
108        assertEquals(expResult, result);
109        // TODO review the generated test code and remove the default call to fail.
110        fail("The test case is a prototype.");
111    }
112
113    /**
114     * Test of compareTo method, of class TimeSlice.
115     */
116    public void testCompareTo()
117    {
118        System.out.println("compareTo");
119        Object o = null;
120        TimeSlice instance = null;
121        int expResult = 0;
122        int result = instance.compareTo(o);
123        assertEquals(expResult, result);
124        // TODO review the generated test code and remove the default call to fail.
125        fail("The test case is a prototype.");
126    }
127
128    /**
129     * Test of toXML method, of class TimeSlice.
130     */
131    public void testToXML()
132    {
133        System.out.println("toXML");
134        TimeSlice instance = null;
135        String expResult = "";
136        String result = instance.toXML();
137        assertEquals(expResult, result);
138        // TODO review the generated test code and remove the default call to fail.
139        fail("The test case is a prototype.");
140    }
141
142}
Note: See TracBrowser for help on using the repository browser.