Skip to content

Commit

Permalink
#135: adjust exception assertion to also assert for jar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabrina Wullschleger committed Aug 16, 2024
1 parent 140a2be commit 20b649d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void transformationFileSet_Ok() throws Exception {
public void transformation_Fail() throws Exception {
File projectDirectory = new File(System.getProperty("user.dir") + "/src/integrationTest/jobs/Av2chFail");

assertThrows(AssertionError.class, () -> {
assertThrows(Throwable.class, () -> {
IntegrationTestUtil.executeTestRunner(projectDirectory, "transform");
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void validationOk() throws Exception {
public void validationFail() {
File projectDirectory = new File(System.getProperty("user.dir") + "/src/integrationTest/jobs/CsvValidatorFail");

assertThrows(AssertionError.class, () -> {
assertThrows(Throwable.class, () -> {
IntegrationTestUtil.executeTestRunner(projectDirectory, "validate");
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void geodienste_Fail() {
File projectDirectory = new File(System.getProperty("user.dir") + "/src/integrationTest/jobs/CurlGeodienste");
GradleVariable[] variables = { GradleVariable.newGradleProperty("mockWebServerPort", String.valueOf(mockWebServer.getPort())) };

assertThrows(AssertionError.class, () -> {
assertThrows(Throwable.class, () -> {
IntegrationTestUtil.executeTestRunner(projectDirectory, "uploadData", variables);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void validationOk() throws Exception {
public void validationFail() {
File projectDirectory = new File(System.getProperty("user.dir") + "/src/integrationTest/jobs/GpkgValidatorFail");

assertThrows(AssertionError.class, () -> {
assertThrows(Throwable.class, () -> {
IntegrationTestUtil.executeTestRunner(projectDirectory, "validate");
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void validateMultipleDataset_Ok() throws Exception {
public void validateData_Fail() throws Exception {
File projectDirectory = new File(System.getProperty("user.dir") + "/src/integrationTest/jobs/Ili2pgValidateDatasetFail");

assertThrows(AssertionError.class, () -> {
assertThrows(Throwable.class, () -> {
IntegrationTestUtil.executeTestRunner(projectDirectory, "validate", gradleVariables);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void validateData_Ok() throws Exception {
public void validateData_Fail() throws Exception {
File projectDirectory = new File(System.getProperty("user.dir") + "/src/integrationTest/jobs/Ili2pgValidateFail");

assertThrows(AssertionError.class, () -> {
assertThrows(Throwable.class, () -> {
IntegrationTestUtil.executeTestRunner(projectDirectory, "validate", gradleVariables);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void validationFileSetOk() throws Exception {
public void validationFail() {
File projectDirectory = new File(System.getProperty("user.dir") + "/src/integrationTest/jobs/IliValidatorFail");

assertThrows(AssertionError.class, () -> {
assertThrows(Throwable.class, () -> {
IntegrationTestUtil.executeTestRunner(projectDirectory, "validate");
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void validationOk() throws Exception {
public void validationFail() {
File projectDirectory = new File(System.getProperty("user.dir") + "/src/integrationTest/jobs/ShpValidatorFail");

assertThrows(AssertionError.class, () -> {
assertThrows(Throwable.class, () -> {
IntegrationTestUtil.executeTestRunner(projectDirectory, "validate");
});
}
Expand Down

0 comments on commit 20b649d

Please sign in to comment.