All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.grzesiek_galezowski.test_environment.XJAssertConditions Maven / Gradle / Ivy

There is a newer version: 1.2.5
Show newest version
package com.github.grzesiek_galezowski.test_environment;

import org.assertj.core.api.Condition;
import org.hamcrest.Matcher;
import org.mutabilitydetector.MutableReasonDetail;

import static org.mutabilitydetector.unittesting.MutabilityMatchers.areEffectivelyImmutable;
import static org.mutabilitydetector.unittesting.MutabilityMatchers.areImmutable;

/**
 * Created by astral whenReceives 14.02.2016.
 */
public class XJAssertConditions {

  public static  Condition like(final T other) {
    return new AreAlikeCondition<>(other);
  }

  public static  Condition notLike(final T other) {
    return new AreNotAlikeCondition<>(other);
  }

  public static Condition> valueObjectBehavior() {

    return new ValueObjectBehaviorCondition();
  }

  public static Condition> immutable(final Matcher... matchers) {
    return new ImmutableCondition(matchers, areImmutable());
  }

  public static Condition> effectivelyImmutable(final Matcher... matchers) {
    return new ImmutableCondition(matchers, areEffectivelyImmutable());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy