File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3131import org .junit .jupiter .api .BeforeEach ;
3232import org .junit .jupiter .api .Disabled ;
3333import org .junit .jupiter .api .Test ;
34+ import org .junit .jupiter .api .condition .EnabledOnOs ;
35+ import org .junit .jupiter .api .condition .OS ;
3436import org .mockserver .integration .ClientAndProxy ;
3537import org .mockserver .integration .ClientAndServer ;
3638import org .mockserver .model .Header ;
@@ -70,6 +72,7 @@ void testDirect() {
7072 }
7173
7274 @ Test
75+ @ EnabledOnOs ({OS .MAC })
7376 void testDirectHttps () {
7477 final HttpResponse response = HttpRequest .get ("https://localhost:1080/get_books" ).trustAllCerts (true ).send ();
7578 assertEquals (200 , response .statusCode ());
@@ -104,6 +107,7 @@ void testSocks5Proxy() {
104107 }
105108
106109 @ Test
110+ @ EnabledOnOs ({OS .MAC })
107111 void testSocks5ProxyWithHttps () {
108112 final SocketHttpConnectionProvider s = new SocketHttpConnectionProvider ();
109113 s .useProxy (ProxyInfo .socks5Proxy ("localhost" , 1090 , null , null ));
You can’t perform that action at this time.
0 commit comments