void () { UISettingsState uiSettings = UISettings.getInstance().getState(); uiSettings.setDisableMnemonics(true); uiSettings.setDisableMnemonicsInControls(true); for (Data testCase : data) { Presentation p = new Presentation(); p.setText(testCase.inputTextsUnderscore); assertEquals(testCase.menuText, p.getText()); assertEquals(KeyEvent.VK_UNDEFINED, p.getMnemonic()); assertEquals(-1, p.getDisplayedMnemonicIndex()); } }