This commit is contained in:
Dmitry Batrak
2015-11-09 20:23:58 +03:00
parent 0f8afb29a6
commit 63fcb1d3b8
@@ -47,7 +47,7 @@ public class IterationStateTest extends LightPlatformCodeInsightFixtureTestCase
DEFAULT_BACKGROUND = colorsScheme.getDefaultBackground();
CARET_ROW_BACKGROUND = colorsScheme.getColor(EditorColors.CARET_ROW_COLOR);
SELECTION_BACKGROUND = colorsScheme.getColor(EditorColors.SELECTION_BACKGROUND_COLOR);
assertEquals(3, new HashSet<Color>(Arrays.asList(DEFAULT_BACKGROUND, CARET_ROW_BACKGROUND, SELECTION_BACKGROUND)).size());
assertEquals(3, new HashSet<>(Arrays.asList(DEFAULT_BACKGROUND, CARET_ROW_BACKGROUND, SELECTION_BACKGROUND)).size());
}
public void testBlockSelection() {
@@ -171,7 +171,7 @@ public class IterationStateTest extends LightPlatformCodeInsightFixtureTestCase
private void verifySplitting(boolean checkForegroundColor, @NotNull Segment... expectedSegments) {
EditorEx editor = (EditorEx)myFixture.getEditor();
IterationState iterationState = new IterationState(editor, 0, editor.getDocument().getTextLength(), true);
List<Segment> actualSegments = new ArrayList<Segment>();
List<Segment> actualSegments = new ArrayList<>();
do {
Segment segment = new Segment(iterationState.getStartOffset(),
iterationState.getEndOffset(),
@@ -216,8 +216,8 @@ public class IterationStateTest extends LightPlatformCodeInsightFixtureTestCase
private final int start;
private final int end;
private final Color color;
private final List<Integer> pastLineEndSegmentWidths = new ArrayList<Integer>();
private final List<Color> pastLineEndSegmentColors = new ArrayList<Color>();
private final List<Integer> pastLineEndSegmentWidths = new ArrayList<>();
private final List<Color> pastLineEndSegmentColors = new ArrayList<>();
private Segment(int start, int end, Color color) {
this.start = start;