Changeset 568


Ignore:
Timestamp:
08/17/12 11:16:50 (12 years ago)
Author:
sherbold
Message:
  • updated test cases for new event core
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events-test/src/test/java/de/ugoe/cs/quest/eventcore/EventTest.java

    r548 r568  
    226226        String result = fixture.toString(); 
    227227 
    228         assertEquals("(typeString;targetString)", result); 
     228        assertEquals("typeString.targetString", result); 
     229    } 
     230     
     231    @Test 
     232    public void testToString_2() throws Exception { 
     233        IEventType type = mock(IEventType.class); 
     234        when(type.toString()).thenReturn("typeString"); 
     235         
     236        Event fixture = new Event(type); 
     237         
     238        String result = fixture.toString(); 
     239         
     240        assertEquals("typeString", result); 
    229241    } 
    230242     
Note: See TracChangeset for help on using the changeset viewer.