Package yalp.test

Source Code of yalp.test.ContentTypeAssertionTest

package yalp.test;

import static org.junit.Assert.*;
import static yalp.test.FunctionalTest.*;

import org.junit.Test;

import yalp.mvc.Http.Response;

public class ContentTypeAssertionTest {

    @Test(expected = AssertionError.class)
    public void givenContentTypeIsMissing_shouldThrowAssertionError() {
        Response responseWithoutContentType = new Response();

        assertContentType("text/html", responseWithoutContentType);
    }

}
TOP

Related Classes of yalp.test.ContentTypeAssertionTest

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.