/*
 * DownloadClient Geodateninfrastruktur Bayern
 *
 * (c) 2016 GSt. GDI-BY (gdi.bayern.de)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package de.bayern.gdi.model;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Test for Parameter.
 */
public class ParameterTest {

    /** Test the key getter/setter. */
    @Test
    public void testKey() {
        Parameter parameter = new Parameter();
        parameter.setKey("a key");
        assertEquals("a key", parameter.getKey());
    }

    /** Test the value getter/setter. */
    @Test
    public void testValue() {
        Parameter parameter = new Parameter();
        parameter.setValue("a value");
        assertEquals("a value", parameter.getValue());
    }

    /** Test toString. */
    @Test
    public void testToString() {
        Parameter parameter = new Parameter();
        parameter.setKey("a key");
        parameter.setValue("a value");
        assertEquals("[Parameter: key = \"" + parameter.getKey()
                + "\" value = \""
                + parameter.getValue() + "\"]"
            , parameter.toString());
    }

}

Add complete test for parameter
Add complete test for parameter
