Skip to content

Commit

Permalink
Workflow dispatch: Add environment (production/staging) for testing #284
Browse files Browse the repository at this point in the history


Use different url for 404 test
  • Loading branch information
Philip Stadermann committed Aug 18, 2023
1 parent 8dd06bc commit 7ffec01
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public void forUrl_WithUrlNull_ThrowsNullPointerException() throws Exception {
@Test
public void forUrl_WithUrlWithStatusCode4xx_ThrowsVaasClientException() throws Exception {
var vaas = this.getVaasWithCredentials();
var url_1 = new URL("https://gdata.de/nocontenthere");
var url_1 = new URL("https://upload.production.vaas.gdatasecurity.de/nocontenthere");
var e = assertThrows(VaasClientException.class, () -> vaas.forUrl(url_1));
assertEquals("Call failed with status code 404 (Not Found): GET https://www.gdata.de/nocontenthere", e.getMessage());
}
Expand Down Expand Up @@ -443,4 +443,4 @@ private Vaas getVaasWithCredentials()
return client;
}

}
}

0 comments on commit 7ffec01

Please sign in to comment.