File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
src/test/java/org/kohsuke/github Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,8 @@ public void testGetDeploymentStatuses() throws IOException {
336
336
assertThat (actualStatus .getLogUrl (), equalTo (ghDeploymentStatus .getLogUrl ()));
337
337
assertThat (ghDeploymentStatus .getDeploymentUrl (), equalTo (deployment .getUrl ()));
338
338
assertThat (ghDeploymentStatus .getRepositoryUrl (), equalTo (repository .getUrl ()));
339
+ assertThat (ghDeploymentStatus .getEnvironmentUrl ().toString (), equalTo ("http://www.github.com/envurl" ));
340
+
339
341
} finally {
340
342
// deployment.delete();
341
343
assert true ;
@@ -1419,7 +1421,6 @@ public void testIssueSearch() {
1419
1421
PagedIterable <GHIssueComment > comments = issue .listComments ();
1420
1422
for (GHIssueComment comment : comments ) {
1421
1423
assertThat (comment , notNullValue ());
1422
-
1423
1424
}
1424
1425
}
1425
1426
}
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ public void testGetDeploymentByIdStringPayload() throws IOException {
43
43
assertThat (deployment .getOriginalEnvironment (), equalTo ("production" ));
44
44
assertThat (deployment .isProductionEnvironment (), equalTo (false ));
45
45
assertThat (deployment .isTransientEnvironment (), equalTo (true ));
46
+ assertThat (deployment .getStatusesUrl ().toString (),
47
+ endsWith ("/repos/hub4j-test-org/github-api/deployments/178653229/statuses" ));
48
+ assertThat (deployment .getRepositoryUrl ().toString (), endsWith ("/repos/hub4j-test-org/github-api" ));
46
49
}
47
50
48
51
/**
Original file line number Diff line number Diff line change @@ -91,9 +91,14 @@ public void testCreateCardFromIssue() throws IOException {
91
91
try {
92
92
GHIssue issue = repo .createIssue ("new-issue" ).body ("With body" ).create ();
93
93
GHProjectCard card = column .createCard (issue );
94
+ assertThat (column .getProjectUrl (), equalTo (card .getProjectUrl ()));
95
+
94
96
assertThat (card .getContentUrl (), equalTo (issue .getUrl ()));
95
97
assertThat (card .getContent ().getUrl (), equalTo (issue .getUrl ()));
96
98
assertThat (card .getContent ().getRepository ().getUrl (), equalTo (repo .getUrl ()));
99
+ assertThat (card .getProjectUrl ().toString (), endsWith ("/projects/13495086" ));
100
+ assertThat (card .getColumnUrl ().toString (), endsWith ("/projects/columns/16361848" ));
101
+
97
102
} finally {
98
103
repo .delete ();
99
104
}
You can’t perform that action at this time.
0 commit comments