Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit a7d3db2

Browse files
author
Dan Richelson
committed
Address PR comment
1 parent 1f24ce7 commit a7d3db2

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package 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
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
}

0 commit comments

Comments
 (0)