Changeset 10 for profileconnection/src/test
- Timestamp:
- 01/28/20 10:19:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
profileconnection/src/test/java/geniusweb/profileconnection/WebsocketProfileConnectorTest.java
r1 r10 3 3 import static org.junit.Assert.assertEquals; 4 4 import static org.junit.Assert.assertNotNull; 5 import static org.junit.Assert.assertNull;6 5 import static org.mockito.Matchers.any; 7 6 import static org.mockito.Mockito.mock; … … 22 21 23 22 import geniusweb.profile.Profile; 24 import geniusweb.profileconnection.WebsocketProfileConnector;25 23 import tudelft.utilities.logging.Reporter; 26 24 … … 42 40 43 41 @Test 44 public void testOnOpen()42 public void onOpenSmokeTest() 45 43 throws IOException, DeploymentException, URISyntaxException { 46 44 WebsocketProfileConnector connector = new WebsocketProfileConnector( 47 45 new URI("ws://someprofile"), reporter, wscontainer); 48 46 connector.onOpen(session); 49 assertNull(connector.getProfile());50 47 } 51 48 … … 93 90 } 94 91 95 @Test 92 @Test(expected = IOException.class) 96 93 public void testGetProfileTimeout() 97 94 throws DeploymentException, IOException, URISyntaxException { … … 116 113 } 117 114 }).start(); 118 Profile profile = connector.getProfile(); 119 assertNull(profile); 115 connector.getProfile(); 120 116 } 121 117
Note:
See TracChangeset
for help on using the changeset viewer.