Skip to content

Commit

Permalink
enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Costa authored and Jorge Costa committed Dec 12, 2015
1 parent c567c2d commit 5f09764
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void setUp() {
context = mock(SensorContext.class);
}

//@Test
@Test
public void shouldReportCorrectViolations() {
Settings settings = new Settings();
settings.setProperty(CxxPCLintSensor.REPORT_PATH_KEY, "pclint-reports/pclint-result-SAMPLE.xml");
Expand All @@ -71,7 +71,7 @@ public void shouldReportCorrectViolations() {
verify(issuable, times(14)).addIssue(any(Issue.class));
}

//@Test
@Test
public void shouldReportCorrectMisra2004Violations() {
Settings settings = new Settings();
settings.setProperty(CxxPCLintSensor.REPORT_PATH_KEY, "pclint-reports/pclint-result-MISRA2004-SAMPLE1.xml");
Expand All @@ -81,7 +81,7 @@ public void shouldReportCorrectMisra2004Violations() {
verify(issuable, times(29)).addIssue(any(Issue.class));
}

//@Test
@Test
public void shouldReportCorrectMisra2004PcLint9Violations() {
Settings settings = new Settings();
settings.setProperty(CxxPCLintSensor.REPORT_PATH_KEY, "pclint-reports/pclint-result-MISRA2004-SAMPLE2.xml");
Expand Down Expand Up @@ -109,7 +109,7 @@ public void shouldThrowExceptionWhenMisra2004RuleDoNotExist() {
sensor.analyse(project, context);
}

//@Test
@Test
public void shouldNotRemapMisra1998Rules() {
Settings settings = new Settings();
settings.setProperty(CxxPCLintSensor.REPORT_PATH_KEY, "pclint-reports/pclint-result-MISRA1998-SAMPLE.xml");
Expand All @@ -119,7 +119,7 @@ public void shouldNotRemapMisra1998Rules() {
verify(issuable, times(1)).addIssue(any(Issue.class));
}

//@Test
@Test
public void shouldReportProjectLevelViolations() {
Settings settings = new Settings();
settings.setProperty(CxxPCLintSensor.REPORT_PATH_KEY, "pclint-reports/pclint-result-projectlevelviolation.xml");
Expand All @@ -128,7 +128,7 @@ public void shouldReportProjectLevelViolations() {
verify(issuable, times(1)).addIssue(any(Issue.class));
}

//@Test
@Test
public void shouldThrowExceptionInvalidChar() {
Settings settings = new Settings();
settings.setProperty(CxxPCLintSensor.REPORT_PATH_KEY, "pclint-reports/pclint-result-invalid-char.xml");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void setUp() {
context = mock(SensorContext.class);
}

//@Test
@Test
public void shouldReportCorrectViolations() {
TestUtils.addInputFile(fs, perspectives, issuable, "sources/utils/code_chunks.cpp");
TestUtils.addInputFile(fs, perspectives, issuable, "report.c");
Expand Down

0 comments on commit 5f09764

Please sign in to comment.