Skip to content

Commit 6de4d60

Browse files
committed
Fix test failures due to changed parsers in analysis-model 7.0.0.
1 parent f1b7bf4 commit 6de4d60

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/test/java/io/jenkins/plugins/analysis/warnings/ParsersITest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,10 @@ public void shouldFindAllCadenceIssues() {
319319
shouldFindIssuesOfTool(3, new Cadence(), "CadenceIncisive.txt");
320320
}
321321

322-
/** Runs the Mentor parser on an output file that contains 13 issues. */
322+
/** Runs the Mentor parser on an output file that contains 12 issues. */
323323
@Test
324324
public void shouldFindAllMentorGraphicsIssues() {
325-
shouldFindIssuesOfTool(13, new MentorGraphics(), "MentorGraphics.log");
325+
shouldFindIssuesOfTool(12, new MentorGraphics(), "MentorGraphics.log");
326326
}
327327

328328
/** Runs the PMD parser on an output file that contains 262 issues (PMD 6.1.0). */

src/test/java/io/jenkins/plugins/analysis/warnings/StepsITest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public void shouldFindAllJavaIssuesIfConsoleIsAnnotatedWithTimeStamps() {
223223

224224
AnalysisResult result = scheduleSuccessfulBuild(job);
225225

226-
assertThat(result).hasTotalSize(10);
226+
assertThat(result).hasTotalSize(6);
227227
}
228228

229229
/**

src/test/resources/io/jenkins/plugins/analysis/warnings/issue56484-maven.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
[2019-03-09T19:12:23.995Z] [WARNING] /var/data/workspace/pipeline-analysis-model/src/main/java/edu/hm/hafner/analysis/Report.java:[82,44] [ConstructorLeaksThis] Constructors should not pass the 'this' reference out in method invocations, since the object may not be fully constructed.
1616
[2019-03-09T19:12:23.996Z] (see https://errorprone.info/bugpattern/ConstructorLeaksThis)
1717
[2019-03-09T19:12:23.996Z] [WARNING] /var/data/workspace/pipeline-analysis-model/src/main/java/edu/hm/hafner/analysis/Report.java:[100,44] [ConstructorLeaksThis] Constructors should not pass the 'this' reference out in method invocations, since the object may not be fully constructed.
18+
[2019-03-09T19:12:23.996Z] (see https://errorprone.info/bugpattern/ConstructorLeaksThis)

0 commit comments

Comments
 (0)