Skip to content

Commit 3f27a26

Browse files
committed
Sync with underscore-java.
1 parent bfad27c commit 3f27a26

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/test/java/com/github/underscore/lodash/LodashTest.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,16 +490,18 @@ public void fetchGet() {
490490
// result.text());
491491
// assertEquals("Sir. Russell Jones of Alberta",
492492
// (String) U.get((Map<String, Object>) result.json(), "knight.name"));
493-
U.Chain<?> resultChain = U.chain("https://www.dragonsofmugloar.com/api/game/483159").fetch();
493+
U.Chain<?> resultChain = U.chain(
494+
"https://support.oneskyapp.com/hc/en-us/article_attachments/202761627/example_1.json").fetch();
494495
// assertEquals("{\"gameId\":483159,\"knight\":{\"name\":"
495496
// + "\"Sir. Russell Jones of Alberta\",\"attack\":2,\"armor\":7,\"agility\":3,\"endurance\":8}}",
496497
// resultChain.item());
497-
U.chain("http://www.dragonsofmugloar.com/api/game/483159").fetch();
498+
U.chain("https://support.oneskyapp.com/hc/en-us/article_attachments/202761627/example_1.json").fetch();
498499
}
499500

500501
@Test
501502
public void fetchGetWithTimeouts() {
502-
U.FetchResponse result = U.fetch("https://www.dragonsofmugloar.com/api/game/483159", 30000, 30000);
503+
U.FetchResponse result = U.fetch(
504+
"https://support.oneskyapp.com/hc/en-us/article_attachments/202761627/example_1.json", 30000, 30000);
503505
// assertEquals("{\"gameId\":483159,\"knight\":{\"name\":"
504506
// + "\"Sir. Russell Jones of Alberta\",\"attack\":2,\"armor\":7,\"agility\":3,\"endurance\":8}}",
505507
// result.text());
@@ -544,7 +546,8 @@ public void fetchGetHttps() {
544546

545547
@Test
546548
public void fetchPut() {
547-
U.FetchResponse result = U.fetch("https://www.dragonsofmugloar.com/api/game/31906/solution", "PUT", "{"
549+
U.FetchResponse result = U.fetch(
550+
"https://support.oneskyapp.com/hc/en-us/article_attachments/202761627/example_1.json", "PUT", "{"
548551
+ " \"dragon\": {"
549552
+ " \"scaleThickness\": 4,"
550553
+ " \"clawSharpness\": 2,"
@@ -554,7 +557,8 @@ public void fetchPut() {
554557
+ "}");
555558
// assertEquals("{\"status\":\"Victory\",\"message\":\"Dragon was successful in a glorious battle\"}",
556559
// result.text());
557-
U.FetchResponse result2 = U.fetch("https://www.dragonsofmugloar.com/api/game/31906/solution", "PUT", "{"
560+
U.FetchResponse result2 = U.fetch(
561+
"https://support.oneskyapp.com/hc/en-us/article_attachments/202761627/example_1.json", "PUT", "{"
558562
+ " \"dragon\": {"
559563
+ " \"scaleThickness\": 4,"
560564
+ " \"clawSharpness\": 2,"
@@ -564,7 +568,8 @@ public void fetchPut() {
564568
+ "}", null, null, null);
565569
// assertEquals("{\"status\":\"Defeat\",\"message\":"
566570
// + "\"No dragon showed up, knight dealt his deeds as he pleased.\"}", result2.text());
567-
U.Chain resultChain = U.chain("https://www.dragonsofmugloar.com/api/game/31906/solution").fetch("PUT", "{"
571+
U.Chain resultChain = U.chain(
572+
"http://support.oneskyapp.com/hc/en-us/article_attachments/202761627/example_1.json").fetch("PUT", "{"
568573
+ " \"dragon\": {"
569574
+ " \"scaleThickness\": 4,"
570575
+ " \"clawSharpness\": 2,"

0 commit comments

Comments
 (0)