Examples of ignoreWhitespace()


Examples of ch.entwine.weblounge.common.impl.testing.IntegrationTestCase.EqualityAssertion.ignoreWhitespace()

  public void testAssertEquals() {
    List<IntegrationTestCaseAssertion> assertions = testCases.get(0).getAssertions();
    assertTrue(assertions.get(3) instanceof EqualityAssertion);
    EqualityAssertion assertion = (EqualityAssertion) assertions.get(3);
    assertTrue(assertion.isPositive());
    assertTrue(assertion.ignoreWhitespace());
    assertTrue(assertion.ignoreCase());
    assertFalse(assertion.regularExpression());
    assertEquals("//div[@id='main']/h1", assertion.getXPath());
    assertEquals("hello world i am happy today", assertion.getExpectedValue());
  }
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.testing.IntegrationTestCase.EqualityAssertion.ignoreWhitespace()

  public void testAssertNotEquals() {
    List<IntegrationTestCaseAssertion> assertions = testCases.get(0).getAssertions();
    assertTrue(assertions.get(5) instanceof EqualityAssertion);
    EqualityAssertion assertion = (EqualityAssertion) assertions.get(5);
    assertFalse(assertion.isPositive());
    assertTrue(assertion.ignoreWhitespace());
    assertFalse(assertion.ignoreCase());
    assertFalse(assertion.regularExpression());
    assertEquals("//div[@id='main']/h2", assertion.getXPath());
    assertEquals("hello world i am happy now", assertion.getExpectedValue());
  }
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.testing.IntegrationTestCase.EqualityAssertion.ignoreWhitespace()

  public void testAssertEqualsUsingRegularExpression() {
    List<IntegrationTestCaseAssertion> assertions = testCases.get(0).getAssertions();
    assertTrue(assertions.get(4) instanceof EqualityAssertion);
    EqualityAssertion assertion = (EqualityAssertion) assertions.get(4);
    assertTrue(assertion.isPositive());
    assertFalse(assertion.ignoreWhitespace());
    assertFalse(assertion.ignoreCase());
    assertTrue(assertion.regularExpression());
    assertEquals("//div[@id='main']/h2", assertion.getXPath());
    assertEquals("^hello world i am [\\w]* now$", assertion.getExpectedValue());
  }
View Full Code Here
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.