This repository was archived by the owner on May 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed
main/java/com/launchdarkly/client
test/java/com/launchdarkly/client Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 11package com .launchdarkly .client ;
22
3- public enum UserAttribute {
3+ enum UserAttribute {
44 key ,
55 secondary ,
66 ip ,
@@ -10,5 +10,5 @@ public enum UserAttribute {
1010 firstName ,
1111 lastName ,
1212 anonymous ,
13- country ;
13+ country
1414}
Original file line number Diff line number Diff line change 1+ package com .launchdarkly .client ;
2+
3+ import org .junit .Ignore ;
4+ import org .junit .Test ;
5+ import org .slf4j .Logger ;
6+ import org .slf4j .LoggerFactory ;
7+
8+ import java .net .URI ;
9+ import java .net .URISyntaxException ;
10+
11+ @ Ignore
12+ public class ManualTest {
13+ private static final Logger logger = LoggerFactory .getLogger (ManualTest .class );
14+
15+ @ Test
16+ public void manualTest () throws URISyntaxException {
17+ LDConfig config = new LDConfig .Builder ()
18+ .startWaitMillis (30000L )
19+ .baseURI (URI .create ("https://ld-stg.global.ssl.fastly.net" ))
20+ // .streamURI(URI.create("https://f6bff885.fanoutcdn.com"))
21+ // .eventsURI(URI.create("https://events-stg.launchdarkly.com"))
22+ .stream (false )
23+ .build ();
24+
25+ //my prod key:
26+ // LDClient ldClient = new LDClient("sdk-fdd9a27d-7939-41a1-bf36-b64798d93372", config);
27+
28+ //staging
29+ LDClient ldClient = new LDClient ("sdk-0b5766c3-50fa-427e-be3b-50fd3c631c5d" , config );
30+
31+ LDUser user = new LDUser .Builder ("user1Key" ).build ();
32+ System .out .println (ldClient .toggle ("abc" , user , false ));
33+
34+
35+ // while (true) {
36+ // }
37+ }
38+ }
You can’t perform that action at this time.
0 commit comments