Package org.jtester.hamcrest.matcher.property

Examples of org.jtester.hamcrest.matcher.property.ReflectionEqualMatcher


  public E eqByReflect(Object expected, EqMode... modes) {
    if (expected instanceof Matcher) {
      throw new AssertionError("please use method[propertyMatch(String, Matcher)]");
    } else {
      ReflectionEqualMatcher matcher = new ReflectionEqualMatcher(expected, modes);
      return this.assertThat(matcher);
    }
  }
View Full Code Here


  public E eqIgnoreDefault(Object expected) {
    if (expected instanceof Matcher) {
      throw new AssertionError("please use method[propertyMatch(String, Matcher)]");
    }
    ReflectionEqualMatcher matcher = new ReflectionEqualMatcher(expected, new EqMode[] { EqMode.IGNORE_DEFAULTS });
    return this.assertThat(matcher);
  }
View Full Code Here

  public E eqIgnoreOrder(Object expected) {
    if (expected instanceof Matcher) {
      throw new AssertionError("please use method[propertyMatch(String, Matcher)]");
    }
    ReflectionEqualMatcher matcher = new ReflectionEqualMatcher(expected, new EqMode[] { EqMode.IGNORE_ORDER });
    return this.assertThat(matcher);
  }
View Full Code Here

  public E eqIgnoreAll(Object expected) {
    if (expected instanceof Matcher) {
      throw new AssertionError("please use method[propertyMatch(String, Matcher)]");
    }
    ReflectionEqualMatcher matcher = new ReflectionEqualMatcher(expected, new EqMode[] { EqMode.IGNORE_ORDER,
        EqMode.IGNORE_DEFAULTS, EqMode.IGNORE_DATES });
    return this.assertThat(matcher);
  }
View Full Code Here

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

  public E isEqualTo(Object expected, EqMode... modes) {
    ReflectionEqualMatcher matcher = new ReflectionEqualMatcher(expected, modes);
    return this.assertThat(matcher);
  }
View Full Code Here

    ReflectionEqualMatcher matcher = new ReflectionEqualMatcher(expected, modes);
    return this.assertThat(matcher);
  }

  public E eqIgnoreOrder(Object expected) {
    ReflectionEqualMatcher matcher = new ReflectionEqualMatcher(expected, new EqMode[] { EqMode.IGNORE_ORDER });
    return this.assertThat(matcher);
  }
View Full Code Here

TOP

Related Classes of org.jtester.hamcrest.matcher.property.ReflectionEqualMatcher

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.