Skip to content

Commit

Permalink
[tests] Remove unthrown exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed May 29, 2024
1 parent 8b0e1e7 commit 29fdaf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/test/java/LiveDemoTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
Expand All @@ -20,7 +19,7 @@ class LiveDemoTest {
// what is needed to publish generated report via github.com
// http://damianszczepanik.github.io/cucumber-html-reports/overview-features.html
@Test
void generateDemoReport() throws IOException {
void generateDemoReport() {
File reportOutputDirectory = new File("target/demo");
List<String> jsonFiles = new ArrayList<>();
jsonFiles.add("src/test/resources/json/sample.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private Element buildScenario() {
}

@Test
void updateElementsOfGivenFeature_NoCoincidencesById() throws IllegalAccessException {
void updateElementsOfGivenFeature_NoCoincidencesById() {
// given
Feature feature = new Feature();
Whitebox.setInternalState(feature, "elements", new Element[] {buildBackground(), buildScenario(), buildScenario()});
Expand All @@ -53,7 +53,7 @@ void updateElementsOfGivenFeature_NoCoincidencesById() throws IllegalAccessExcep
}

@Test
void updateElementsOfGivenFeature_WithCoincidenceById() throws IllegalAccessException {
void updateElementsOfGivenFeature_WithCoincidenceById() {
// given
Feature feature = new Feature();
Element[] elements = {buildScenario(), buildBackground(), buildScenario()};
Expand Down

0 comments on commit 29fdaf6

Please sign in to comment.