Skip to content

Commit 3db2bb2

Browse files
committed
Changing the name and merging with the changes.
1 parent 422a726 commit 3db2bb2

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

websocket/binary/src/test/java/org/javaee7/websocket/binary/test/WebsocketBinaryEndpointTest.java renamed to websocket/binary/src/test/java/org/javaee7/websocket/binary/test/WebsocketByteBufferEndpointTest.java

+11-7
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
import javax.websocket.DeploymentException;
1313
import 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;
1617
import org.javaee7.websocket.binary.MyEndpointClient;
18+
import org.javaee7.websocket.binary.MyEndpointInputStream;
1719
import org.jboss.arquillian.container.test.api.Deployment;
1820
import org.jboss.arquillian.container.test.api.TargetsContainer;
1921
import org.jboss.arquillian.junit.Arquillian;
@@ -27,7 +29,7 @@
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

Comments
 (0)