Skip to content

Commit 95ba84f

Browse files
committed
Changing the indentation to 4 spaces
1 parent a436d24 commit 95ba84f

File tree

1 file changed

+34
-29
lines changed

1 file changed

+34
-29
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
*
2+
*
33
*/
44
package org.javaee7.websocket.binary.test;
55

@@ -30,32 +30,37 @@
3030
*/
3131
@RunWith(Arquillian.class)
3232
public class WebsocketByteBufferEndpointTest {
33-
private static final String WEBAPP_SRC = "src/main/webapp";
34-
35-
/**
36-
* Arquillian specific method for creating a file which can be deployed while executing the test.
37-
* @return a war file
38-
*/
39-
@Deployment(testable = false) @TargetsContainer("wildfly-arquillian")
40-
public static WebArchive createDeployment(){
41-
WebArchive war = ShrinkWrap.create(WebArchive.class).
42-
addClass(MyEndpointByteBuffer.class).
43-
addClass(MyEndpointByteArray.class).
44-
addClass(MyEndpointInputStream.class).
45-
addAsWebResource(new File(WEBAPP_SRC,"index.jsp")).
46-
addAsWebResource(new File(WEBAPP_SRC,"websocket.js"));
47-
return war;
48-
}
49-
50-
/**
51-
* The basic test method for the class {@link MyEndpointByteBuffer}
52-
* @throws URISyntaxException
53-
* @throws DeploymentException
54-
* @throws IOException
55-
*/
56-
@Test
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"));
60-
}
33+
34+
private static final String WEBAPP_SRC = "src/main/webapp";
35+
36+
/**
37+
* Arquillian specific method for creating a file which can be deployed
38+
* while executing the test.
39+
*
40+
* @return a war file
41+
*/
42+
@Deployment(testable = false)
43+
@TargetsContainer("wildfly-arquillian")
44+
public static WebArchive createDeployment() {
45+
WebArchive war = ShrinkWrap.create(WebArchive.class).
46+
addClass(MyEndpointByteBuffer.class).
47+
addClass(MyEndpointByteArray.class).
48+
addClass(MyEndpointInputStream.class).
49+
addAsWebResource(new File(WEBAPP_SRC, "index.jsp")).
50+
addAsWebResource(new File(WEBAPP_SRC, "websocket.js"));
51+
return war;
52+
}
53+
54+
/**
55+
* The basic test method for the class {@link MyEndpointByteBuffer}
56+
*
57+
* @throws URISyntaxException
58+
* @throws DeploymentException
59+
* @throws IOException
60+
*/
61+
@Test
62+
public void testEndPointByteBuffer() throws URISyntaxException, DeploymentException, IOException {
63+
WebSocketContainer wSocketContainer = ContainerProvider.getWebSocketContainer();
64+
wSocketContainer.connectToServer(MyEndpointClient.class, new URI("ws://localhost:8080/binary/websockeet"));
65+
}
6166
}

0 commit comments

Comments
 (0)