Skip to content

Commit 3f79ef5

Browse files
fixing the testcase
1 parent 71bbd2a commit 3f79ef5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/checkmarx/intellij/unit/devassist/problems/ProblemBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void testBuild_functionality() throws Exception {
5050
ProblemHighlightType.GENERIC_ERROR :
5151
level == SeverityLevel.MEDIUM ? ProblemHighlightType.WARNING :
5252
ProblemHighlightType.WEAK_WARNING;
53-
when(manager.createProblemDescriptor(eq(psiFile), any(TextRange.class), anyString(), eq(expectedType), eq(isOnTheFly), any(CxOneAssistFix.class), any(ViewDetailsFix.class), any(IgnoreVulnerabilityFix.class), any(IgnoreAllThisTypeFix.class))).thenReturn(mock(ProblemDescriptor.class));
53+
when(manager.createProblemDescriptor(eq(psiFile), any(TextRange.class), anyString(), eq(expectedType), eq(isOnTheFly), any(CxOneAssistFix.class), any(ViewDetailsFix.class))).thenReturn(mock(ProblemDescriptor.class));
5454
ProblemDescriptor descriptor = (ProblemDescriptor) buildMethod.invoke(
5555
null, psiFile, manager, scanIssue, document, lineNumber, isOnTheFly);
5656
assertNotNull(descriptor);
@@ -62,7 +62,7 @@ void testBuild_functionality() throws Exception {
6262
when(unknownIssue.getTitle()).thenReturn("title");
6363
when(unknownIssue.getFilePath()).thenReturn("file.java");
6464
when(unknownIssue.getScanEngine()).thenReturn(ScanEngine.OSS);
65-
when(manager.createProblemDescriptor(eq(psiFile), any(TextRange.class), anyString(), eq(ProblemHighlightType.WEAK_WARNING), eq(isOnTheFly), any(CxOneAssistFix.class), any(ViewDetailsFix.class), any(IgnoreVulnerabilityFix.class), any(IgnoreAllThisTypeFix.class))).thenReturn(mock(ProblemDescriptor.class));
65+
when(manager.createProblemDescriptor(eq(psiFile), any(TextRange.class), anyString(), eq(ProblemHighlightType.WEAK_WARNING), eq(isOnTheFly), any(CxOneAssistFix.class), any(ViewDetailsFix.class))).thenReturn(mock(ProblemDescriptor.class));
6666
ProblemDescriptor unknownDescriptor = (ProblemDescriptor) buildMethod.invoke(
6767
null, psiFile, manager, unknownIssue, document, lineNumber, isOnTheFly);
6868
assertNotNull(unknownDescriptor);

0 commit comments

Comments
 (0)