AlgoBox { public static String removeDMAndUpperCase(String sInput) { if (sInput == null) { return null; } return upperCase(removeDiacriticalMarks(sInput)); }  static void main(String[] args); static String pick_Char(String sInput, String pattern); static String first_N_Consonants(String sInput, int nb); static String first_N_Vowels(String sInput, int nb); static String subStr(String sInput, String pattern); static String first_N_Char(String sInput, int nb); static String last_N_Char(String sInput, int nb); static String first_N_Char_EW(String sInput, int nb); static String first_Char_EW(String sInput); static String soundex(String sInput); static String doublemetaphone(String sInput); static String metaphone(String sInput); static String add_Left_Char(String sInput, String position); static String add_Right_Char(String sInput, String position); static String removeDiacriticalMarks(String sInput); static String exact(String sInput); static String useDefault(String sInput, String insteadOf); static String lowerCase(String sInput); static String upperCase(String sInput); static String removeDMAndLowerCase(String sInput); static String removeDMAndUpperCase(String sInput); static String fingerPrintKey(String sInput); static String nGramKey(String sInput); static String colognePhonetic(String sInput);  }
@Test public void testRemoveDMAndUpperCase() { assertEquals(null, AlgoBox.removeDMAndUpperCase(null)); assertEquals("TEST", AlgoBox.removeDMAndUpperCase(TEST_STR)); assertEquals(BLANK_STR, AlgoBox.removeDMAndUpperCase(BLANK_STR)); assertEquals("TESTDTESTM1-2;40;0-5", AlgoBox.removeDMAndUpperCase("TestDtestM1-2;40;0-5")); assertEquals("TESTDTESTMTEST TEST", AlgoBox.removeDMAndUpperCase("TestDtestMTest test")); assertEquals(SPACE_STR, AlgoBox.removeDMAndUpperCase(SPACE_STR)); assertEquals(QUO_STR, AlgoBox.removeDMAndUpperCase(QUO_STR)); assertEquals(JAPANESE1_STR, AlgoBox.removeDMAndUpperCase(JAPANESE1_STR)); }