File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
client/src/test/java/io/split/client Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,16 @@ public void testFactoryInstantiationWithProxyCredentials() throws Exception {
151151
152152 splitFactory .destroy ();
153153 }
154- /*
154+
155155 @ Test
156156 public void testFactoryInstantiationWithProxyToken () throws Exception {
157+ class MyProxyRuntimeStorage implements ProxyRuntimeStorage {
158+ @ Override
159+ public String getJwtToken () {
160+ return "123456789" ;
161+ }
162+ };
163+
157164 SplitClientConfig splitClientConfig = SplitClientConfig .builder ()
158165 .enableDebug ()
159166 .impressionsMode (ImpressionsManager .Mode .DEBUG )
@@ -163,7 +170,7 @@ public void testFactoryInstantiationWithProxyToken() throws Exception {
163170 .authServiceURL (AUTH_SERVICE )
164171 .setBlockUntilReadyTimeout (1000 )
165172 .proxyPort (6060 )
166- // .proxyToken("123456789" )
173+ .proxyRuntimeStorage ( new MyProxyRuntimeStorage () )
167174 .proxyHost (ENDPOINT )
168175 .build ();
169176 SplitFactoryImpl splitFactory2 = new SplitFactoryImpl (API_KEY , splitClientConfig );
@@ -190,7 +197,7 @@ public void testFactoryInstantiationWithProxyToken() throws Exception {
190197
191198 splitFactory2 .destroy ();
192199 }
193- */
200+
194201 @ Test
195202 public void testFactoryInstantiationWithProxyMtls () throws Exception {
196203 SplitClientConfig splitClientConfig = SplitClientConfig .builder ()
You can’t perform that action at this time.
0 commit comments