Skip to content

Commit 9b19e4a

Browse files
author
A Samuel Pottinger
committed
Clean up tests prior to addressing #579.
1 parent 1b137e2 commit 9b19e4a

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

java/test/processing/mode/java/ParserTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public void testSizeThis() {
419419

420420
@Test
421421
public void testMixing() {
422-
expectRunnerException("mixing", 1);
422+
expectRunnerException("mixing", 6);
423423
}
424424

425425
@Test

java/test/processing/mode/java/ProblemFactoryTest.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class ProblemFactoryTest {
1515

1616
private PdePreprocessIssue pdePreprocessIssue;
1717
private List<Integer> tabStarts;
18-
private Editor editor;
18+
1919
private List<Integer> starts;
2020

2121
@Before
@@ -25,26 +25,12 @@ public void setUp() {
2525
tabStarts = new ArrayList<>();
2626
tabStarts.add(5);
2727

28-
editor = Mockito.mock(Editor.class);
29-
Mockito.when(editor.getLineStartOffset(3)).thenReturn(10);
30-
Mockito.when(editor.getLineStopOffset(3)).thenReturn(12);
31-
3228
starts = new ArrayList<>();
3329
starts.add(0);
3430
starts.add(5);
3531
starts.add(10);
3632
}
3733

38-
@Test
39-
public void buildWithEditor() {
40-
Problem problem = ProblemFactory.build(pdePreprocessIssue, tabStarts, 15, editor);
41-
42-
Assert.assertEquals(3, problem.getLineNumber());
43-
Assert.assertEquals("test", problem.getMessage());
44-
Assert.assertEquals(10, problem.getStartOffset());
45-
Assert.assertEquals(11, problem.getStopOffset());
46-
}
47-
4834
@Test
4935
public void buildWithoutEditor() {
5036
Problem problem = ProblemFactory.build(pdePreprocessIssue, tabStarts);

0 commit comments

Comments
 (0)