Package org.jtester.hamcrest.matcher.string

Examples of org.jtester.hamcrest.matcher.string.StringMatcher


    super(str, IStringAssert.class);
    this.valueClaz = String.class;
  }

  public IStringAssert isEqualTo(String expected, StringMode... modes) {
    StringMatcher matcher = new StringEqualMatcher(expected);
    matcher.setStringModes(modes);
    return (IStringAssert) this.assertThat(matcher);
  }
View Full Code Here


    Matcher _matcher = AnyOf.notAny(matchers);
    return this.assertThat(_matcher);
  }

  public IStringAssert eqIgnoreCase(String string) {
    StringMatcher matcher = new StringEqualMatcher(string);
    matcher.setStringModes(StringMode.IgnoreCase);
    return (IStringAssert) this.assertThat(matcher);
  }
View Full Code Here

    matcher.setStringModes(StringMode.IgnoreCase);
    return (IStringAssert) this.assertThat(matcher);
  }

  public IStringAssert eqWithStripSpace(String string) {
    StringMatcher matcher = new StringEqualMatcher(string);
    matcher.setStringModes(StringMode.SameAsSpace);
    return (IStringAssert) this.assertThat(matcher);
  }
View Full Code Here

    matcher.setStringModes(StringMode.SameAsSpace);
    return (IStringAssert) this.assertThat(matcher);
  }

  public IStringAssert eqIgnoreSpace(String string) {
    StringMatcher matcher = new StringEqualMatcher(string);
    matcher.setStringModes(StringMode.IgnoreSpace);
    return this.assertThat("expect equal when ignore all space.", matcher);
  }
View Full Code Here

TOP

Related Classes of org.jtester.hamcrest.matcher.string.StringMatcher

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.