Changeset 9 for simplerunner/src/test/java/geniusweb
- Timestamp:
- 11/28/19 14:40:48 (5 years ago)
- Location:
- simplerunner/src/test/java/geniusweb/simplerunner
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
simplerunner/src/test/java/geniusweb/simplerunner/ClassPathConnectionFactoryTest.java
r1 r9 10 10 11 11 import geniusweb.actions.Action; 12 import geniusweb.connection.Connection ;12 import geniusweb.connection.ConnectionEnd; 13 13 import geniusweb.party.inform.Inform; 14 14 import geniusweb.references.PartyRef; … … 42 42 @Test 43 43 public void testRandomParty() throws IOException, URISyntaxException { 44 Connection <Action, Inform> party = factory.connect(new PartyRef(44 ConnectionEnd<Action, Inform> party = factory.connect(new PartyRef( 45 45 "classpath:geniusweb.exampleparties.randomparty.RandomParty")); 46 46 assertNotNull(party); -
simplerunner/src/test/java/geniusweb/simplerunner/SessionRunnerTest.java
r1 r9 18 18 import geniusweb.protocol.CurrentNegoState; 19 19 import geniusweb.protocol.ProtocolException; 20 import geniusweb.protocol.partyconnection. ConnectionWithPartyFactory;20 import geniusweb.protocol.partyconnection.ProtocolToPartyConnFactory; 21 21 import geniusweb.protocol.session.SessionProtocol; 22 22 import geniusweb.protocol.session.SessionSettings; … … 47 47 public void smokeTest() { 48 48 new NegoRunner(mock(SessionSettings.class), 49 mock( ConnectionWithPartyFactory.class), logger);49 mock(ProtocolToPartyConnFactory.class), logger); 50 50 } 51 51 … … 56 56 when(settings.getProtocol(logger)).thenReturn(protocol); 57 57 @SuppressWarnings("unchecked") 58 ConnectionWithPartyFactory factory = mock(59 ConnectionWithPartyFactory.class);58 ProtocolToPartyConnFactory factory = mock( 59 ProtocolToPartyConnFactory.class); 60 60 61 61 NegoRunner runner = spy( … … 80 80 Reporter logger = mock(Reporter.class); 81 81 @SuppressWarnings("unchecked") 82 ConnectionWithPartyFactory factory = mock(83 ConnectionWithPartyFactory.class);82 ProtocolToPartyConnFactory factory = mock( 83 ProtocolToPartyConnFactory.class); 84 84 NegoRunner runner = spy( 85 85 new NegoRunner(settings, factory, logger)); … … 107 107 when(protocol.getState()).thenReturn(state); 108 108 @SuppressWarnings("unchecked") 109 ConnectionWithPartyFactory factory = mock(110 ConnectionWithPartyFactory.class);109 ProtocolToPartyConnFactory factory = mock( 110 ProtocolToPartyConnFactory.class); 111 111 NegoRunner runner = spy( 112 112 new NegoRunner(settings, factory, logger));
Note:
See TracChangeset
for help on using the changeset viewer.