Package org.jtester.hamcrest.matcher.string

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


    matcher.setStringModes(modes);
    return (IStringAssert) this.assertThat(matcher);
  }

  public IStringAssert contains(String expected, StringMode... modes) {
    StringContainMatcher matcher = new StringContainMatcher(new String[] { expected }, modes);
    return (IStringAssert) this.assertThat(matcher);
  }
View Full Code Here


    StringContainMatcher matcher = new StringContainMatcher(new String[] { expected }, modes);
    return (IStringAssert) this.assertThat(matcher);
  }

  public IStringAssert contains(String[] expecteds, StringMode... modes) {
    StringContainMatcher matcher = new StringContainMatcher(expecteds, modes);
    return (IStringAssert) this.assertThat(matcher);
  }
View Full Code Here

    matcher.setStringModes(modes);
    return (IStringAssert) this.assertThat(matcher);
  }

  public IStringAssert notContain(String sub, StringMode... modes) {
    StringContainMatcher matcher = new StringContainMatcher(new String[] { sub }, modes);
    Matcher _matcher = IsNot.not(matcher);
    return this.assertThat(_matcher);
  }
View Full Code Here

  }

  public IStringAssert notContain(String[] subs, StringMode... modes) {
    List<Matcher> matchers = new ArrayList<Matcher>();
    for (String sub : subs) {
      StringContainMatcher matcher = new StringContainMatcher(new String[] { sub }, modes);
      matchers.add(matcher);
    }

    Matcher _matcher = AnyOf.notAny(matchers);
    return this.assertThat(_matcher);
View Full Code Here

TOP

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

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.