SeKeyParser { public static ArrayList<String> ParseMe( ArrayList<String> fpLsString2Parse ) { ArrayList<String> lvLsReturn = new ArrayList<String>(); for (String Value : fpLsString2Parse ) { if (Value.equals( "" )) { lvLsReturn.add(""); } else { lvLsReturn.add(ParseMe(Value)); } } return lvLsReturn; }  static ArrayList<String> ParseMe( ArrayList<String> fpLsString2Parse ); static String ParseMe( String fpsString2Parse );  }
@Test public void test() { String actual = SeKeyParser.ParseMe("#{SHIFT+CTRL+COMMAND+a}" ); String expected = Keys.chord(Keys.SHIFT, Keys.CONTROL, Keys.COMMAND, "a"); assertEquals( expected, actual ); }
@Test public void test_mult_value() { String actual = SeKeyParser.ParseMe("#{SHIFT+CTRL+COMMAND+abc}" ); String expected = Keys.chord(Keys.SHIFT, Keys.CONTROL, Keys.COMMAND, "abc"); assertEquals( expected, actual ); }
@Test public void test_1() { String actual = SeKeyParser.ParseMe("#{SHIFT+CTRL+COMMAND+DELETE}" ); String expected = Keys.chord(Keys.SHIFT, Keys.CONTROL, Keys.COMMAND, Keys.DELETE); assertEquals( expected, actual ); }
@Test public void test_2() { String actual = SeKeyParser.ParseMe("#{ALT+DELETE}" ); String expected = Keys.chord(Keys.ALT, Keys.DELETE); assertEquals( expected, actual ); }