Skip to content

Commit 003804d

Browse files
vrubezhnyvparfonov
authored andcommitted
Fix for DefaultOutputCustomizerTest.java - wrong API is used in place of org.junit.Assert (eclipse-che#5509)
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
1 parent 832509c commit 003804d

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/console/DefaultOutputCustomizerTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
import org.eclipse.che.ide.api.app.AppContext;
1414
import org.eclipse.che.ide.api.editor.EditorAgent;
15+
import org.junit.Assert;
1516
import org.junit.Before;
1617
import org.junit.Test;
1718
import org.junit.runner.RunWith;
1819
import org.mockito.Mock;
19-
import org.testng.Assert;
2020

2121
import com.google.gwtmockito.GwtMockitoTestRunner;
2222

@@ -40,13 +40,15 @@ public void setUp() throws Exception {
4040
}
4141

4242
private void testStackTraceLine(boolean shouldBeCustomizable, String line, String expectedCustomization) throws Exception {
43-
Assert.assertEquals(outputCustomizer.canCustomize(line), shouldBeCustomizable,
43+
Assert.assertEquals(
4444
"Line [" + line + "] is " + (shouldBeCustomizable ? "" : "not ") +
4545
"customizable while it should" +
46-
(shouldBeCustomizable ? "n\'t " : " ") + "be: ");
46+
(shouldBeCustomizable ? "n\'t " : " ") + "be: ",
47+
Boolean.valueOf(outputCustomizer.canCustomize(line)),
48+
Boolean.valueOf(shouldBeCustomizable));
4749
if (shouldBeCustomizable) {
48-
Assert.assertEquals(outputCustomizer.customize(line), expectedCustomization,
49-
"Wrong customization result:");
50+
Assert.assertEquals("Wrong customization result:",
51+
outputCustomizer.customize(line), expectedCustomization);
5052
}
5153
}
5254

0 commit comments

Comments
 (0)