@@ -0,0 +1,3442 @@
+/*%0A * DownloadClient Geodateninfrastruktur Bayern%0A *%0A * (c) 2016 GSt. GDI-BY (gdi.bayern.de)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage de.bayern.gdi.model;%0A%0Aimport junit.framework.TestCase;%0Aimport org.junit.Test;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * Tests for Processing the configuration.%0A */%0Apublic class ProcessingConfigurationTest extends TestCase %7B%0A%0A    /** Test the findProcessingStepConfiguration. */%0A    @Test%0A    public void testFindProcessingStepConfiguration() %7B%0A        ProcessingStepConfiguration psc = new ProcessingStepConfiguration();%0A        ProcessingConfiguration procConf = new ProcessingConfiguration();%0A        String name = null;%0A%0A        assertEquals(name, procConf.findProcessingStepConfiguration(name));%0A%0A        name = %22name%22;%0A        assertEquals(psc.getName()%0A            , procConf.findProcessingStepConfiguration(name));%0A    %7D%0A%0A    /** Test the FilterStepsByType. */%0A    @Test%0A    public void testFilterStepsByType() %7B%0A        ProcessingConfiguration procConf = new ProcessingConfiguration();%0A        ArrayList%3CProcessingStepConfiguration%3E emptyList = new ArrayList%3C%3E();%0A        ArrayList%3CProcessingStepConfiguration%3E steps = new ArrayList%3C%3E();%0A%0A        procConf.setProcessingSteps(steps);%0A        String type = %22unknown%22;%0A        assertEquals(emptyList, procConf.filterStepsByType(type));%0A    %7D%0A%0A    /** Test the inputElements getter/setter. */%0A    @Test%0A    public void testInputElements() %7B%0A        InputElement inputElemt1 = new InputElement();%0A        InputElement inputElemt2 = new InputElement();%0A        ArrayList%3CInputElement%3E listOfInputelements = new ArrayList%3C%3E();%0A        listOfInputelements.add(inputElemt1);%0A        listOfInputelements.add(inputElemt2);%0A%0A        ProcessingConfiguration procConf = new ProcessingConfiguration();%0A        procConf.setInputElements(listOfInputelements);%0A%0A        assertEquals(listOfInputelements, procConf.getInputElements());%0A    %7D%0A%0A    /** Test the ProcessingSteps getter/setter. */%0A    @Test%0A    public void testProcessingSteps() %7B%0A        ProcessingStepConfiguration psc1 = new ProcessingStepConfiguration();%0A        ProcessingStepConfiguration psc2 = new ProcessingStepConfiguration();%0A        ArrayList%3CProcessingStepConfiguration%3E listOfPSC = new ArrayList%3C%3E();%0A        listOfPSC.add(psc1);%0A        listOfPSC.add(psc2);%0A%0A        ProcessingConfiguration procConf = new ProcessingConfiguration();%0A        procConf.setProcessingSteps(listOfPSC);%0A%0A        assertEquals(listOfPSC, procConf.getProcessingSteps());%0A%0A    %7D%0A%0A//    /** TODO: Test the read with InputStream and File */%0A//    @Test%0A//    public void read() %7B%0A//    %7D%0A%0A    /** Test the loadDefault. */%0A    @Test%0A    public void testLoadDefault() %7B%0A        assertNotNull(ProcessingConfiguration.loadDefault());%0A    %7D%0A%0A    /** Test the name getter. */%0A    @Test%0A    public void testName() %7B%0A        assertEquals(%22ProcessingConfig%22, ProcessingConfiguration.getName());%0A    %7D%0A%0A%7D%0A

add more Unit Tests