@@ -32,8 +32,8 @@ public void testEncryptedInitializedAsTrue() {
3232 }
3333
3434 @ Test
35- public void testForceTLSInitializedAsTrue () {
36- assert pusherOptions .isForceTLS ();
35+ public void testUseTLSInitializedAsTrue () {
36+ assert pusherOptions .isUseTLS ();
3737 }
3838
3939 @ Test
@@ -54,9 +54,9 @@ public void testEncryptedCanBeSetToTrue() {
5454 }
5555
5656 @ Test
57- public void testForceTLSCanBeSetToTrue () {
58- pusherOptions .setForceTLS (true );
59- assertSame (true , pusherOptions .isForceTLS ());
57+ public void testUseTLSCanBeSetToTrue () {
58+ pusherOptions .setUseTLS (true );
59+ assertSame (true , pusherOptions .isUseTLS ());
6060 }
6161
6262 @ Test
@@ -70,8 +70,8 @@ public void testSetEncryptedReturnsSelf() {
7070 }
7171
7272 @ Test
73- public void testSetForceTLSReturnsSelf () {
74- assertSame (pusherOptions , pusherOptions .setForceTLS (true ));
73+ public void testSetUseTLSReturnsSelf () {
74+ assertSame (pusherOptions , pusherOptions .setUseTLS (true ));
7575 }
7676
7777 @ Test
@@ -82,7 +82,7 @@ public void testDefaultURL() {
8282
8383 @ Test
8484 public void testNonSSLURLIsCorrect () {
85- pusherOptions .setForceTLS (false );
85+ pusherOptions .setUseTLS (false );
8686 assertEquals (pusherOptions .buildUrl (API_KEY ), "ws://ws.pusherapp.com:80/app/" + API_KEY
8787 + "?client=java-client&protocol=5&version=" + PusherOptions .LIB_VERSION );
8888 }
@@ -96,7 +96,7 @@ public void testClusterSetURLIsCorrect() {
9696
9797 @ Test
9898 public void testClusterSetNonSSLURLIsCorrect () {
99- pusherOptions .setCluster ("eu" ).setForceTLS (false );
99+ pusherOptions .setCluster ("eu" ).setUseTLS (false );
100100 assertEquals (pusherOptions .buildUrl (API_KEY ), "ws://ws-eu.pusher.com:80/app/" + API_KEY
101101 + "?client=java-client&protocol=5&version=" + PusherOptions .LIB_VERSION );
102102 }
@@ -110,7 +110,7 @@ public void testCustomHostAndPortURLIsCorrect() {
110110
111111 @ Test
112112 public void testCustomHostAndPortNonSSLURLIsCorrect () {
113- pusherOptions .setHost ("subdomain.example.com" ).setWsPort (8080 ).setWssPort (8181 ).setForceTLS (false );
113+ pusherOptions .setHost ("subdomain.example.com" ).setWsPort (8080 ).setWssPort (8181 ).setUseTLS (false );
114114 assertEquals (pusherOptions .buildUrl (API_KEY ), "ws://subdomain.example.com:8080/app/" + API_KEY
115115 + "?client=java-client&protocol=5&version=" + PusherOptions .LIB_VERSION );
116116 }
0 commit comments