diff --git a/java/test/processing/mode/java/ParserTests.java b/java/test/processing/mode/java/ParserTests.java index f322b8e8b..8142b5443 100644 --- a/java/test/processing/mode/java/ParserTests.java +++ b/java/test/processing/mode/java/ParserTests.java @@ -419,7 +419,7 @@ public class ParserTests { @Test public void testMixing() { - expectRunnerException("mixing", 1); + expectRunnerException("mixing", 6); } @Test diff --git a/java/test/processing/mode/java/ProblemFactoryTest.java b/java/test/processing/mode/java/ProblemFactoryTest.java index 2b43f62c8..6055991a5 100644 --- a/java/test/processing/mode/java/ProblemFactoryTest.java +++ b/java/test/processing/mode/java/ProblemFactoryTest.java @@ -15,7 +15,7 @@ public class ProblemFactoryTest { private PdePreprocessIssue pdePreprocessIssue; private List tabStarts; - private Editor editor; + private List starts; @Before @@ -25,26 +25,12 @@ public class ProblemFactoryTest { tabStarts = new ArrayList<>(); tabStarts.add(5); - editor = Mockito.mock(Editor.class); - Mockito.when(editor.getLineStartOffset(3)).thenReturn(10); - Mockito.when(editor.getLineStopOffset(3)).thenReturn(12); - starts = new ArrayList<>(); starts.add(0); starts.add(5); starts.add(10); } - @Test - public void buildWithEditor() { - Problem problem = ProblemFactory.build(pdePreprocessIssue, tabStarts, 15, editor); - - Assert.assertEquals(3, problem.getLineNumber()); - Assert.assertEquals("test", problem.getMessage()); - Assert.assertEquals(10, problem.getStartOffset()); - Assert.assertEquals(11, problem.getStopOffset()); - } - @Test public void buildWithoutEditor() { Problem problem = ProblemFactory.build(pdePreprocessIssue, tabStarts);