Package org.mockserver.client.serialization.model

Source Code of org.mockserver.client.serialization.model.HeaderDTOTest

package org.mockserver.client.serialization.model;

import org.junit.Test;
import org.mockserver.model.Header;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsInAnyOrder;

/**
* @author jamesdbloom
*/
public class HeaderDTOTest {

    @Test
    public void shouldReturnValueSetInConstructor() {
        // when
        HeaderDTO header = new HeaderDTO(new Header("first", "first_one", "first_two"));

        // then
        assertThat(header.getValues(), containsInAnyOrder("first_one", "first_two"));
        assertThat(header.buildObject().getValues(), containsInAnyOrder("first_one", "first_two"));
    }
}
TOP

Related Classes of org.mockserver.client.serialization.model.HeaderDTOTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.