|
1 | 1 | /**
|
2 |
| - * |
| 2 | + * |
3 | 3 | */
|
4 | 4 | package org.javaee7.websocket.binary.test;
|
5 | 5 |
|
|
30 | 30 | */
|
31 | 31 | @RunWith(Arquillian.class)
|
32 | 32 | 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 | + } |
61 | 66 | }
|
0 commit comments