Package play.test

Source Code of play.test.ContentTypeAssertionTest

package play.test;

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

import org.junit.Test;

import play.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 play.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.