Skip to content

Commit

Permalink
Added starting programs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Topin2001 committed Jun 4, 2024
1 parent 8bfe242 commit afb8e05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/ut/java/fr/cnes/sonar/report/ReportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package fr.cnes.sonar.report;

import fr.cnes.sonar.plugin.tools.ZipFolder;
import fr.cnes.sonar.report.exceptions.SonarQubeException;
import fr.cnes.sonar.report.model.Report;
import org.junit.Before;
import org.junit.Test;
Expand Down Expand Up @@ -76,6 +77,13 @@ public void emptyExecuteTest() throws Exception{
ReportCommandLine.execute(new String[0]);
}

@Test (expected = SonarQubeException.class)
public void executeTest() throws Exception{
String[] args = new String[1];
args[0] = "-p test";
ReportCommandLine.execute(args);
}

@Test
public void zipFolderTest() throws IOException
{
Expand Down

0 comments on commit afb8e05

Please sign in to comment.