Ignore:
Timestamp:
11/28/19 14:41:10 (5 years ago)
Author:
bart
Message:

Release 1.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/test/java/geniusweb/partiesserver/repository/RunningPartyTest.java

    r1 r8  
    1616import com.fasterxml.jackson.databind.ObjectMapper;
    1717
    18 import geniusweb.actions.Action;
    1918import geniusweb.actions.PartyId;
    20 import geniusweb.connection.DefaultConnection;
    21 import geniusweb.partiesserver.repository.AvailableParty;
    22 import geniusweb.partiesserver.repository.RunningParty;
     19import geniusweb.partiesserver.websocket.PartySocket;
    2320import geniusweb.party.Capabilities;
    2421import geniusweb.party.DefaultParty;
     
    9087                RunningParty rparty = new RunningParty(party1, id1, "name1", now, end,
    9188                                null);
    92                 DefaultConnection<Inform, Action> connection = mock(
    93                                 DefaultConnection.class);
     89                PartySocket connection = mock(PartySocket.class);
    9490                rparty = rparty.withConnection(connection);
    9591        }
     
    9995                RunningParty rparty = new RunningParty(party1, id1, "name1", now, end,
    10096                                null);
    101                 DefaultConnection<Inform, Action> connection = mock(
    102                                 DefaultConnection.class);
     97                PartySocket connection = mock(PartySocket.class);
    10398                rparty = rparty.withConnection(connection);
    10499                rparty = rparty.withConnection(connection);
     
    112107                RunningParty rparty = new RunningParty(party1, id1, "name1", now, end,
    113108                                null);
    114                 DefaultConnection<Inform, Action> connection = mock(
    115                                 DefaultConnection.class);
     109                PartySocket connection = mock(PartySocket.class);
    116110                rparty = rparty.withConnection(connection);
    117111
     
    120114
    121115                ArgumentCaptor<Inform> argument = ArgumentCaptor.forClass(Inform.class);
    122                 verify(connection, times(1)).notifyChange(argument.capture());
     116                verify(connection, times(1)).notifyListeners(argument.capture());
    123117                assertEquals(info, argument.getValue());
    124118        }
Note: See TracChangeset for help on using the changeset viewer.