Ignore:
Timestamp:
01/28/20 10:19:54 (5 years ago)
Author:
bart
Message:

Update 28 jan 2020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • profileconnection/src/test/java/geniusweb/profileconnection/WebsocketProfileConnectorTest.java

    r1 r10  
    33import static org.junit.Assert.assertEquals;
    44import static org.junit.Assert.assertNotNull;
    5 import static org.junit.Assert.assertNull;
    65import static org.mockito.Matchers.any;
    76import static org.mockito.Mockito.mock;
     
    2221
    2322import geniusweb.profile.Profile;
    24 import geniusweb.profileconnection.WebsocketProfileConnector;
    2523import tudelft.utilities.logging.Reporter;
    2624
     
    4240
    4341        @Test
    44         public void testOnOpen()
     42        public void onOpenSmokeTest()
    4543                        throws IOException, DeploymentException, URISyntaxException {
    4644                WebsocketProfileConnector connector = new WebsocketProfileConnector(
    4745                                new URI("ws://someprofile"), reporter, wscontainer);
    4846                connector.onOpen(session);
    49                 assertNull(connector.getProfile());
    5047        }
    5148
     
    9390        }
    9491
    95         @Test
     92        @Test(expected = IOException.class)
    9693        public void testGetProfileTimeout()
    9794                        throws DeploymentException, IOException, URISyntaxException {
     
    116113                        }
    117114                }).start();
    118                 Profile profile = connector.getProfile();
    119                 assertNull(profile);
     115                connector.getProfile();
    120116        }
    121117
Note: See TracChangeset for help on using the changeset viewer.