Package ch.entwine.weblounge.common.impl.testing.IntegrationTestCase

Examples of ch.entwine.weblounge.common.impl.testing.IntegrationTestCase.StatusCodeAssertion


   */
  @Test
  public void testStatusAssertion() {
    List<IntegrationTestCaseAssertion> assertions = testCases.get(0).getAssertions();
    assertTrue(assertions.get(0) instanceof StatusCodeAssertion);
    StatusCodeAssertion assertion = (StatusCodeAssertion) assertions.get(0);
    List<Integer> expectedCodes = assertion.getExpectedCodes();
    assertEquals(2, expectedCodes.size());
    assertEquals(Integer.valueOf(200), expectedCodes.get(0));
    assertEquals(Integer.valueOf(304), expectedCodes.get(1));
  }
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.impl.testing.IntegrationTestCase.StatusCodeAssertion

Copyright © 2018 www.massapicom. 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.