Package ext.jtester.hamcrest

Examples of ext.jtester.hamcrest.Matcher


      }
    };
  }

  public static Matcher<File> sized(long size) {
    Matcher matcher = IsEqual.equalTo(size);
    return sized(matcher);
  }
View Full Code Here


  public BaseAssert(T value, Class<? extends IAssert> clazE) {
    super(value, clazE);
  }

  public E isEqualTo(T expected) {
    Matcher matcher = IsEqual.equalTo(expected);
    return this.assertThat(matcher);
  }
View Full Code Here

    Matcher matcher = IsEqual.equalTo(expected);
    return this.assertThat(matcher);
  }

  public E eq(T expected) {
    Matcher matcher = IsEqual.equalTo(expected);
    return this.assertThat(matcher);
  }
View Full Code Here

    Matcher matcher = IsEqual.equalTo(expected);
    return this.assertThat(matcher);
  }

  public E isEqualTo(String message, T expected) {
    Matcher matcher = IsEqual.equalTo(expected);
    return this.assertThat(message, matcher);
  }
View Full Code Here

    Matcher matcher = IsEqual.equalTo(expected);
    return this.assertThat(message, matcher);
  }

  public E notEqualTo(T expected) {
    Matcher matcher = IsNot.not(IsEqual.equalTo(expected));
    return this.assertThat(matcher);
  }
View Full Code Here

    Matcher matcher = IsNot.not(IsEqual.equalTo(expected));
    return this.assertThat(matcher);
  }

  public E clazIs(Class expected) {
    Matcher matcher = Is.isA(expected);
    return this.assertThat(matcher);
  }
View Full Code Here

  }

  public E all(E matcher, E... matchers) {
    List<Matcher> list = ListHelper.toList(matchers);
    list.add(matcher);
    Matcher _matcher = AllOf.allOf(list);
    return this.assertThat(_matcher);
  }
View Full Code Here

  }

  public E any(E matcher, E... matchers) {
    List<Matcher> list = ListHelper.toList(matchers);
    list.add(matcher);
    Matcher _matcher = AnyOf.anyOf(list);
    return this.assertThat(_matcher);
  }
View Full Code Here

    Matcher<T> matcher = IsIn.isOneOf(values);
    return this.assertThat(matcher);
  }

  public E notIn(T... values) {
    Matcher _matcher = IsNot.not(IsIn.isOneOf(values));
    return this.assertThat(_matcher);
  }
View Full Code Here

    Matcher _matcher = IsNot.not(IsIn.isOneOf(values));
    return this.assertThat(_matcher);
  }

  public E same(T value) {
    Matcher _matcher = IsSame.sameInstance(value);
    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.