mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+17
-16
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user