Skip to content

Commit

Permalink
fix(test_commented): commented test for verification
Browse files Browse the repository at this point in the history
  • Loading branch information
alirana01 committed Oct 4, 2024
1 parent 6e5c615 commit c45c2c0
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ public void givenNewProjectCreatedThenInstallNewComponent() throws Exception
Fixture.checkIfNewComponentIsInstalledUsingContextMenu();
}

Check warning on line 146 in tests/com.espressif.idf.ui.test/src/com/espressif/idf/ui/test/executable/cases/project/NewEspressifIDFProjectTest.java

View workflow job for this annotation

GitHub Actions / spotbugs

THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION

Method lists Exception in its throws clause.
Raw output
Method lists Exception in its throws clause.
When declaring a method, the types of exceptions in the throws clause should be the most specific. Therefore, using Exception in the throws clause would force the caller to either use it in its own throws clause, or use it in a try-catch block (when it does not necessarily contain any meaningful information about the thrown exception).

For more information, see the SEI CERT ERR07-J rule [https://wiki.sei.cmu.edu/confluence/display/java/ERR07-J.+Do+not+throw+RuntimeException%2C+Exception%2C+or+Throwable].

@Test
public void givenNewProjectCreatedBuiltAndThenProjectCleanUsingContextMenu() throws Exception
{
Fixture.givenNewEspressifIDFProjectIsSelected("EspressIf", "Espressif IDF Project");
Fixture.givenProjectNameIs("NewProjectCleanTest");
Fixture.whenNewProjectIsSelected();
Fixture.whenProjectIsBuiltUsingContextMenu();
Fixture.whenProjectCleanUsingContextMenu();
Fixture.whenRefreshProject();
Fixture.checkIfProjectCleanedFilesInBuildFolder();
}
// @Test
// public void givenNewProjectCreatedBuiltAndThenProjectCleanUsingContextMenu() throws Exception
// {
// Fixture.givenNewEspressifIDFProjectIsSelected("EspressIf", "Espressif IDF Project");
// Fixture.givenProjectNameIs("NewProjectCleanTest");
// Fixture.whenNewProjectIsSelected();
// Fixture.whenProjectIsBuiltUsingContextMenu();
// Fixture.whenProjectCleanUsingContextMenu();
// Fixture.whenRefreshProject();
// Fixture.checkIfProjectCleanedFilesInBuildFolder();
// }

@Test
public void givenNewProjectCreatedBuiltAndThenProjectFullCleanUsingContextMenu() throws Exception
Expand Down

0 comments on commit c45c2c0

Please sign in to comment.