void () { String fontName1 = FontPreferencesTest.getExistingNonDefaultFontName(); String fontName2 = FontPreferencesTest.getAnotherExistingNonDefaultFontName(); myScheme.setEditorFontName(fontName1); myScheme.setConsoleFontName(fontName2); float scaledSize = UISettings.restoreFontSize((float)FontPreferences.DEFAULT_FONT_SIZE, 1.0f); FontPreferencesTest.checkState(myScheme.getFontPreferences(), Collections.singletonList(fontName1), Collections.singletonList(fontName1), fontName1, fontName1, scaledSize); assertEquals(fontName1, myScheme.getEditorFontName()); assertEquals(scaledSize, myScheme.getEditorFontSize2D()); FontPreferencesTest.checkState(myScheme.getConsoleFontPreferences(), Collections.singletonList(fontName2), Collections.singletonList(fontName2), fontName2, fontName2, scaledSize); assertEquals(fontName2, myScheme.getConsoleFontName()); assertEquals(scaledSize, myScheme.getConsoleFontSize2D()); }