From bcae4d6272cbe41095d3cbf0f7949e5099688b7e Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Fri, 10 Apr 2015 14:07:20 +0300 Subject: [PATCH] cleanup --- .../impl/EditorColorsSchemeImplTest.java | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/impl/EditorColorsSchemeImplTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/impl/EditorColorsSchemeImplTest.java index 5f57ffe2675c..b97096bd5467 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/impl/EditorColorsSchemeImplTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/impl/EditorColorsSchemeImplTest.java @@ -30,6 +30,7 @@ import java.util.Arrays; import java.util.Collections; import static com.intellij.openapi.editor.colors.FontPreferencesTest.*; +import static java.util.Collections.singletonList; public class EditorColorsSchemeImplTest extends LightPlatformCodeInsightTestCase { EditorColorsSchemeImpl myScheme = new EditorColorsSchemeImpl(null); @@ -88,15 +89,15 @@ public class EditorColorsSchemeImplTest extends LightPlatformCodeInsightTestCase myScheme.setConsoleFontName(fontName2); checkState(myScheme.getFontPreferences(), - Arrays.asList(fontName1), - Arrays.asList(fontName1), + singletonList(fontName1), + singletonList(fontName1), fontName1, fontName1, FontPreferences.DEFAULT_FONT_SIZE); assertEquals(fontName1, myScheme.getEditorFontName()); assertEquals(FontPreferences.DEFAULT_FONT_SIZE, myScheme.getEditorFontSize()); checkState(myScheme.getConsoleFontPreferences(), - Arrays.asList(fontName2), - Arrays.asList(fontName2), + singletonList(fontName2), + singletonList(fontName2), fontName2, fontName2, FontPreferences.DEFAULT_FONT_SIZE); assertEquals(fontName2, myScheme.getConsoleFontName()); @@ -108,15 +109,15 @@ public class EditorColorsSchemeImplTest extends LightPlatformCodeInsightTestCase myScheme.setConsoleFontSize(21); checkState(myScheme.getFontPreferences(), - Arrays.asList(FontPreferences.DEFAULT_FONT_NAME), - Arrays.asList(FontPreferences.DEFAULT_FONT_NAME), + singletonList(FontPreferences.DEFAULT_FONT_NAME), + singletonList(FontPreferences.DEFAULT_FONT_NAME), FontPreferences.DEFAULT_FONT_NAME, FontPreferences.DEFAULT_FONT_NAME, 25); assertEquals(FontPreferences.DEFAULT_FONT_NAME, myScheme.getEditorFontName()); assertEquals(25, myScheme.getEditorFontSize()); checkState(myScheme.getConsoleFontPreferences(), - Arrays.asList(FontPreferences.DEFAULT_FONT_NAME), - Arrays.asList(FontPreferences.DEFAULT_FONT_NAME), + singletonList(FontPreferences.DEFAULT_FONT_NAME), + singletonList(FontPreferences.DEFAULT_FONT_NAME), FontPreferences.DEFAULT_FONT_NAME, FontPreferences.DEFAULT_FONT_NAME, 21); assertEquals(FontPreferences.DEFAULT_FONT_NAME, myScheme.getConsoleFontName()); @@ -132,15 +133,15 @@ public class EditorColorsSchemeImplTest extends LightPlatformCodeInsightTestCase myScheme.setConsoleFontSize(21); checkState(myScheme.getFontPreferences(), - Arrays.asList(fontName1), - Arrays.asList(fontName1), + singletonList(fontName1), + singletonList(fontName1), fontName1, fontName1, 25); assertEquals(fontName1, myScheme.getEditorFontName()); assertEquals(25, myScheme.getEditorFontSize()); checkState(myScheme.getConsoleFontPreferences(), - Arrays.asList(fontName2), - Arrays.asList(fontName2), + singletonList(fontName2), + singletonList(fontName2), fontName2, fontName2, 21); assertEquals(fontName2, myScheme.getConsoleFontName()); @@ -156,15 +157,15 @@ public class EditorColorsSchemeImplTest extends LightPlatformCodeInsightTestCase myScheme.setConsoleFontName(fontName2); checkState(myScheme.getFontPreferences(), - Arrays.asList(fontName1), - Arrays.asList(fontName1), + singletonList(fontName1), + singletonList(fontName1), fontName1, fontName1, 25); assertEquals(fontName1, myScheme.getEditorFontName()); assertEquals(25, myScheme.getEditorFontSize()); checkState(myScheme.getConsoleFontPreferences(), - Arrays.asList(fontName2), - Arrays.asList(fontName2), + singletonList(fontName2), + singletonList(fontName2), fontName2, fontName2, 21); assertEquals(fontName2, myScheme.getConsoleFontName());