Changeset 1085 for trunk/autoquest-core-events-test/src/test/java
- Timestamp:
- 02/18/13 09:30:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events-test/src/test/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIElementTreeTest.java
r1053 r1085 13 13 14 14 @Test 15 public void testAdd() {16 GUIElementTree tree = new GUIElementTree();15 public void testAdd() throws Exception { 16 GUIElementTree<Long> tree = new GUIElementTree<Long>(); 17 17 IGUIElementSpec spec = new MockGUIElementSpec(); 18 18 tree.add(10l, null, spec); … … 22 22 23 23 @Test 24 public void testAddWithParent() {25 GUIElementTree tree = new GUIElementTree();24 public void testAddWithParent() throws Exception { 25 GUIElementTree<Long> tree = new GUIElementTree<Long>(); 26 26 IGUIElementSpec parentspec = new MockGUIElementSpec(); 27 27 IGUIElementSpec spec = new MockGUIElementSpec(); … … 36 36 37 37 @Test 38 public void testFindExisting() {39 GUIElementTree tree = new GUIElementTree();38 public void testFindExisting() throws Exception { 39 GUIElementTree<Long> tree = new GUIElementTree<Long>(); 40 40 IGUIElementSpec spec = new MockGUIElementSpec(); 41 41 tree.add(10l, 0l, spec); … … 46 46 47 47 @Test 48 public void testFindNonExisting() {49 GUIElementTree tree = new GUIElementTree();48 public void testFindNonExisting() throws Exception { 49 GUIElementTree<Long> tree = new GUIElementTree<Long>(); 50 50 assertEquals(tree.find(10l), null); 51 51 } 52 52 53 53 @Test 54 public void testRemoveSingleElement() {55 GUIElementTree tree = new GUIElementTree();54 public void testRemoveSingleElement() throws Exception { 55 GUIElementTree<Long> tree = new GUIElementTree<Long>(); 56 56 IGUIElementSpec spec = new MockGUIElementSpec(); 57 57 tree.add(10l, null, spec); … … 62 62 63 63 @Test 64 public void testRemoveWithChildElement() {65 GUIElementTree tree = new GUIElementTree();64 public void testRemoveWithChildElement() throws Exception { 65 GUIElementTree<Long> tree = new GUIElementTree<Long>(); 66 66 IGUIElementSpec parentspec = new MockGUIElementSpec(); 67 67 IGUIElementSpec spec = new MockGUIElementSpec(); … … 75 75 @Test 76 76 public void testRemoveNonExisting(){ 77 GUIElementTree tree = new GUIElementTree();77 GUIElementTree<Long> tree = new GUIElementTree<Long>(); 78 78 assertEquals(0, tree.remove(10l)); 79 79 } … … 81 81 @Test 82 82 public void testGetGUIModel() { 83 GUIElementTree tree = new GUIElementTree();83 GUIElementTree<Long> tree = new GUIElementTree<Long>(); 84 84 assertNotNull(tree.getGUIModel()); 85 85 }
Note: See TracChangeset
for help on using the changeset viewer.