@@ -0,0 +1,2214 @@
+/*%0A * The MIT License (MIT)%0A *%0A * Copyright (c) 2015 jhendess, nwolber%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this software and associated documentation files (the %22Software%22), to deal%0A * in the Software without restriction, including without limitation the rights%0A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A * copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be included in%0A * all copies or substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN%0A * THE SOFTWARE.%0A */%0A%0Apackage de.dhbw.vetaraus;%0A%0Aimport java.util.Hashtable;%0Aimport java.util.Map;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class SanitizeUtilsTest %7B%0A%0A    @org.junit.Test%0A    public void testSanitizeCases() throws Exception %7B%0A        Hashtable%3CString, String%3E tests = new Hashtable%3CString, String%3E() %7B%7B%0A            put(%22%22,%22%22);%0A            put(%221%22,%22_1%22);%0A            put(%2236-49%22,%22_36_49%22);%0A            put(%223000-3999%22,%22_3000_3999%22);%0A            put(%22 %22,%22_%22);%0A            put(%22-%22,%22_%22);%0A            put(%22%C3%A4%22,%22ae%22);%0A            put(%22%C3%B6%22,%22oe%22);%0A            put(%22%C3%BC%22,%22ue%22);%0A            put(%22%C3%9F%22,%22ss%22);%0A            put(%22%C3%84%22,%22AE%22);%0A            put(%22%C3%96%22,%22OE%22);%0A            put(%22%C3%9C%22,%22UE%22);%0A            put(%22%3C%22,%22LESS%22);%0A            put(%22%3E%22,%22GREATER%22);%0A            put(%22%3C18%22,%22LESS18%22);%0A            put(%22%3C1000%22,%22LESS1000%22);%0A            put(%225000 und mehr%22,%22_5000_und_mehr%22);%0A        %7D%7D;%0A%0A        for(Map.Entry%3CString, String%3E kv : tests.entrySet()) %7B%0A            String got = SanitizeUtils.sanitizeRecordValue(kv.getKey());%0A            assertEquals(got, kv.getValue());%0A        %7D%0A    %7D%0A%7D

Add unit test for SanitizeUtils