Ignore:
Timestamp:
02/18/13 09:30:50 (12 years ago)
Author:
pharms
Message:
  • forwarded problems in GUI element mapping to parser to allow better handling of this exception
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  
    1313 
    1414    @Test 
    15     public void testAdd() { 
    16         GUIElementTree tree = new GUIElementTree(); 
     15    public void testAdd() throws Exception { 
     16        GUIElementTree<Long> tree = new GUIElementTree<Long>(); 
    1717        IGUIElementSpec spec = new MockGUIElementSpec(); 
    1818        tree.add(10l, null, spec); 
     
    2222     
    2323    @Test 
    24     public void testAddWithParent(){ 
    25         GUIElementTree tree = new GUIElementTree(); 
     24    public void testAddWithParent() throws Exception { 
     25        GUIElementTree<Long> tree = new GUIElementTree<Long>(); 
    2626        IGUIElementSpec parentspec = new MockGUIElementSpec(); 
    2727        IGUIElementSpec spec = new MockGUIElementSpec(); 
     
    3636 
    3737    @Test 
    38     public void testFindExisting() { 
    39         GUIElementTree tree = new GUIElementTree(); 
     38    public void testFindExisting() throws Exception { 
     39        GUIElementTree<Long> tree = new GUIElementTree<Long>(); 
    4040        IGUIElementSpec spec = new MockGUIElementSpec(); 
    4141        tree.add(10l, 0l, spec); 
     
    4646     
    4747    @Test 
    48     public void testFindNonExisting(){ 
    49         GUIElementTree tree = new GUIElementTree(); 
     48    public void testFindNonExisting() throws Exception { 
     49        GUIElementTree<Long> tree = new GUIElementTree<Long>(); 
    5050        assertEquals(tree.find(10l), null); 
    5151    } 
    5252 
    5353    @Test 
    54     public void testRemoveSingleElement() { 
    55         GUIElementTree tree = new GUIElementTree(); 
     54    public void testRemoveSingleElement() throws Exception { 
     55        GUIElementTree<Long> tree = new GUIElementTree<Long>(); 
    5656        IGUIElementSpec spec = new MockGUIElementSpec();  
    5757        tree.add(10l, null, spec); 
     
    6262     
    6363    @Test 
    64     public void testRemoveWithChildElement(){ 
    65         GUIElementTree tree = new GUIElementTree(); 
     64    public void testRemoveWithChildElement() throws Exception { 
     65        GUIElementTree<Long> tree = new GUIElementTree<Long>(); 
    6666        IGUIElementSpec parentspec = new MockGUIElementSpec(); 
    6767        IGUIElementSpec spec = new MockGUIElementSpec(); 
     
    7575    @Test 
    7676    public void testRemoveNonExisting(){ 
    77         GUIElementTree tree = new GUIElementTree(); 
     77        GUIElementTree<Long> tree = new GUIElementTree<Long>(); 
    7878        assertEquals(0, tree.remove(10l)); 
    7979    } 
     
    8181    @Test 
    8282    public void testGetGUIModel() { 
    83         GUIElementTree tree = new GUIElementTree(); 
     83        GUIElementTree<Long> tree = new GUIElementTree<Long>(); 
    8484        assertNotNull(tree.getGUIModel()); 
    8585    } 
Note: See TracChangeset for help on using the changeset viewer.