Package ext.jtester.hamcrest

Examples of ext.jtester.hamcrest.Matcher


    Matcher _matcher = IsSame.sameInstance(value);
    return this.assertThat(_matcher);
  }

  public E any() {
    Matcher _matcher = IsAnything.anything();
    return this.assertThat(_matcher);
  }
View Full Code Here


    Matcher _matcher = IsAnything.anything();
    return this.assertThat(_matcher);
  }

  public E isNull() {
    Matcher _matcher = IsNull.nullValue();
    return this.assertThat(_matcher);
  }
View Full Code Here

    Matcher _matcher = IsNull.nullValue();
    return this.assertThat(_matcher);
  }

  public E isNull(String message) {
    Matcher _matcher = IsNull.nullValue();
    return this.assertThat(message, _matcher);
  }
View Full Code Here

    Matcher _matcher = IsNull.nullValue();
    return this.assertThat(message, _matcher);
  }

  public E notNull() {
    Matcher _matcher = IsNull.notNullValue();
    return this.assertThat(_matcher);
  }
View Full Code Here

    Matcher _matcher = IsNull.notNullValue();
    return this.assertThat(_matcher);
  }

  public E notNull(String message) {
    Matcher _matcher = IsNull.notNullValue();
    return this.assertThat(message, _matcher);
  }
View Full Code Here

    List<Matcher> ms = new ArrayList<Matcher>();
    ms.add(matcher);
    for (Matcher m : matchers) {
      ms.add(m);
    }
    Matcher _matcher = AnyOf.notAny(ms);
    return this.assertThat(_matcher);
  }
View Full Code Here

    List<Matcher> ms = new ArrayList<Matcher>();
    ms.add(matcher);
    for (Matcher m : matchers) {
      ms.add(m);
    }
    Matcher _matcher = AllOf.notAll(ms);
    return this.assertThat(_matcher);
  }
View Full Code Here

  }

  public E sizeBetween(int min, int max) {
    SizeOrLengthMatcher geMatcher = new SizeOrLengthMatcher(min, SizeOrLengthMatcherType.GE);
    SizeOrLengthMatcher leMatcher = new SizeOrLengthMatcher(max, SizeOrLengthMatcherType.LE);
    Matcher matcher = AllOf.allOf(geMatcher, leMatcher);
    return this.assertThat(matcher);
  }
View Full Code Here

    }
  }

  public E hasAllItems(Object item, Object... items) {
    List<Matcher> list = this.getHasItemMatchers(item, items);
    Matcher matcher = AllOf.allOf(list);
    return this.assertThat(matcher);
  }
View Full Code Here

    return this.assertThat(matcher);
  }

  public E hasAnyItems(Object item, Object... items) {
    List<Matcher> list = this.getHasItemMatchers(item, items);
    Matcher matcher = AnyOf.anyOf(list);
    return this.assertThat(matcher);
  }
View Full Code Here

TOP

Related Classes of ext.jtester.hamcrest.Matcher

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.