equal
deleted
inserted
replaced
114 |
114 |
115 static final int ITERATION_COUNT = 3; // checks upgrade and re-use |
115 static final int ITERATION_COUNT = 3; // checks upgrade and re-use |
116 |
116 |
117 @Test(dataProvider = "variants") |
117 @Test(dataProvider = "variants") |
118 void test(String uriString, boolean sameClient) throws Exception { |
118 void test(String uriString, boolean sameClient) throws Exception { |
|
119 System.out.println("\n--- Starting "); |
|
120 |
119 // The single-argument factory requires any illegal characters in its |
121 // The single-argument factory requires any illegal characters in its |
120 // argument to be quoted and preserves any escaped octets and other |
122 // argument to be quoted and preserves any escaped octets and other |
121 // characters that are present. |
123 // characters that are present. |
122 URI uri = URI.create(uriString); |
124 URI uri = URI.create(uriString); |
123 |
125 |
144 } |
146 } |
145 } |
147 } |
146 |
148 |
147 @Test(dataProvider = "variants") |
149 @Test(dataProvider = "variants") |
148 void testAsync(String uriString, boolean sameClient) { |
150 void testAsync(String uriString, boolean sameClient) { |
|
151 System.out.println("\n--- Starting "); |
149 URI uri = URI.create(uriString); |
152 URI uri = URI.create(uriString); |
150 |
153 |
151 HttpClient client = null; |
154 HttpClient client = null; |
152 for (int i=0; i< ITERATION_COUNT; i++) { |
155 for (int i=0; i< ITERATION_COUNT; i++) { |
153 if (!sameClient || client == null) |
156 if (!sameClient || client == null) |