17
17
import javax .websocket .WebSocketContainer ;
18
18
19
19
import org .jboss .arquillian .container .test .api .Deployment ;
20
+ import org .jboss .arquillian .container .test .api .RunAsClient ;
20
21
import org .jboss .arquillian .junit .Arquillian ;
21
22
import org .jboss .arquillian .test .api .ArquillianResource ;
22
23
import org .jboss .shrinkwrap .api .ShrinkWrap ;
@@ -34,7 +35,7 @@ public class MyEndpointTest {
34
35
@ ArquillianResource
35
36
URI base ;
36
37
37
- @ Deployment ( testable = false )
38
+ @ Deployment
38
39
public static WebArchive createDeployment () {
39
40
return ShrinkWrap .create (WebArchive .class )
40
41
.addClasses (MyEndpointText .class ,
@@ -48,6 +49,7 @@ public static WebArchive createDeployment() {
48
49
}
49
50
50
51
@ Test
52
+ @ RunAsClient
51
53
public void testTextEndpoint () throws URISyntaxException , DeploymentException , IOException , InterruptedException {
52
54
MyEndpointTextClient .latch = new CountDownLatch (1 );
53
55
Session session = connectToServer (MyEndpointTextClient .class , "text" );
@@ -57,6 +59,7 @@ public void testTextEndpoint() throws URISyntaxException, DeploymentException, I
57
59
}
58
60
59
61
@ Test
62
+ @ RunAsClient
60
63
public void testEndpointByteBuffer () throws URISyntaxException , DeploymentException , IOException , InterruptedException {
61
64
MyEndpointByteBufferClient .latch = new CountDownLatch (1 );
62
65
Session session = connectToServer (MyEndpointByteBufferClient .class , "bytebuffer" );
@@ -66,6 +69,7 @@ public void testEndpointByteBuffer() throws URISyntaxException, DeploymentExcept
66
69
}
67
70
68
71
@ Test
72
+ @ RunAsClient
69
73
public void testEndpointByteArray () throws DeploymentException , IOException , URISyntaxException , InterruptedException {
70
74
MyEndpointByteArrayClient .latch = new CountDownLatch (1 );
71
75
Session session = connectToServer (MyEndpointByteArrayClient .class , "bytearray" );
@@ -76,6 +80,7 @@ public void testEndpointByteArray() throws DeploymentException, IOException, URI
76
80
}
77
81
78
82
@ Test
83
+ @ RunAsClient
79
84
public void testEndpointInputStream () throws DeploymentException , IOException , URISyntaxException , InterruptedException {
80
85
MyEndpointInputStreamClient .latch = new CountDownLatch (1 );
81
86
Session session = connectToServer (MyEndpointInputStreamClient .class , "inputstream" );
0 commit comments