GreekAlphabetNumbering { public static String toGreekAlphabetNumber(int number, boolean upperCase) { return toGreekAlphabetNumber(number, upperCase, false); }  static String toGreekAlphabetNumberLowerCase(int number); static String toGreekAlphabetNumberUpperCase(int number); static String toGreekAlphabetNumber(int number, boolean upperCase); static String toGreekAlphabetNumber(int number, boolean upperCase, boolean symbolFont);  }
@Test public void testUpperCase() { StringBuilder builder = new StringBuilder(); for (int i = 1; i <= 25; i++) { builder.append(GreekAlphabetNumbering.toGreekAlphabetNumber(i, true)); } Assert.assertEquals("ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΑΑ", builder.toString()); }
@Test public void testLowerCase() { StringBuilder builder = new StringBuilder(); for (int i = 1; i <= 25; i++) { builder.append(GreekAlphabetNumbering.toGreekAlphabetNumber(i, false)); } Assert.assertEquals("αβγδεζηθικλμνξοπρστυφχψωαα", builder.toString()); }
@Test public void testUpperCaseSymbol() { StringBuilder builder = new StringBuilder(); for (int i = 1; i <= 25; i++) { builder.append(GreekAlphabetNumbering.toGreekAlphabetNumber(i, true, true)); } Assert.assertEquals("ABGDEZHQIKLMNXOPRSTUFCYWAA", builder.toString()); }
@Test public void testLowerCaseSymbol() { StringBuilder builder = new StringBuilder(); for (int i = 1; i <= 25; i++) { builder.append(GreekAlphabetNumbering.toGreekAlphabetNumber(i, false, true)); } Assert.assertEquals("abgdezhqiklmnxoprstufcywaa", builder.toString()); }