1212import javax .websocket .DeploymentException ;
1313import javax .websocket .WebSocketContainer ;
1414
15- import org .javaee7 .websocket .binary .MyEndpoint ;
15+ import org .javaee7 .websocket .binary .MyEndpointByteArray ;
16+ import org .javaee7 .websocket .binary .MyEndpointByteBuffer ;
1617import org .javaee7 .websocket .binary .MyEndpointClient ;
18+ import org .javaee7 .websocket .binary .MyEndpointInputStream ;
1719import org .jboss .arquillian .container .test .api .Deployment ;
1820import org .jboss .arquillian .container .test .api .TargetsContainer ;
1921import org .jboss .arquillian .junit .Arquillian ;
2729 *
2830 */
2931@ RunWith (Arquillian .class )
30- public class WebsocketBinaryEndpointTest {
32+ public class WebsocketByteBufferEndpointTest {
3133 private static final String WEBAPP_SRC = "src/main/webapp" ;
3234
3335 /**
@@ -37,21 +39,23 @@ public class WebsocketBinaryEndpointTest {
3739 @ Deployment (testable = false ) @ TargetsContainer ("wildfly-arquillian" )
3840 public static WebArchive createDeployment (){
3941 WebArchive war = ShrinkWrap .create (WebArchive .class ).
40- addClass (MyEndpoint .class ).
42+ addClass (MyEndpointByteBuffer .class ).
43+ addClass (MyEndpointByteArray .class ).
44+ addClass (MyEndpointInputStream .class ).
4145 addAsWebResource (new File (WEBAPP_SRC ,"index.jsp" )).
4246 addAsWebResource (new File (WEBAPP_SRC ,"websocket.js" ));
4347 return war ;
4448 }
4549
4650 /**
47- * The basic test method for the class {@link MyEndpoint }
51+ * The basic test method for the class {@link MyEndpointByteBuffer }
4852 * @throws URISyntaxException
4953 * @throws DeploymentException
5054 * @throws IOException
5155 */
5256 @ Test
53- public void testEndPointBinary () throws URISyntaxException , DeploymentException ,IOException {
54- WebSocketContainer socketContainer = ContainerProvider .getWebSocketContainer ();
55- socketContainer .connectToServer (MyEndpointClient .class , new URI ("ws://localhost:8080/binary/websockeet" ));
57+ public void testEndPointByteBuffer () throws URISyntaxException , DeploymentException ,IOException {
58+ WebSocketContainer wSocketContainer = ContainerProvider .getWebSocketContainer ();
59+ wSocketContainer .connectToServer (MyEndpointClient .class , new URI ("ws://localhost:8080/binary/websockeet" ));
5660 }
5761}
0 commit comments