Ignore:
Timestamp:
09/05/12 15:32:38 (12 years ago)
Author:
sherbold
Message:
  • updated test cases for Event class
File:
1 edited

Legend:

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

    r766 r771  
    215215 
    216216    @Test 
    217     public void testToString_1() throws Exception { 
     217    public void testGetId_1() throws Exception { 
    218218        IEventType type = mock(IEventType.class); 
    219219        when(type.toString()).thenReturn("typeString"); 
    220220        IEventTarget target = mock(IEventTarget.class); 
    221         when(target.toString()).thenReturn("targetString"); 
     221        when(target.getStringIdentifier()).thenReturn("targetString"); 
    222222         
    223223        Event fixture = new Event(type, target); 
     
    229229     
    230230    @Test 
    231     public void testToString_2() throws Exception { 
     231    public void testGetId_2() throws Exception { 
    232232        IEventType type = mock(IEventType.class); 
    233233        when(type.toString()).thenReturn("typeString"); 
Note: See TracChangeset for help on using the changeset viewer.