
com.github.grzesiek_galezowski.test_environment.XJAssertConditions Maven / Gradle / Ivy
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 super Class>> immutable(final Matcher... matchers) {
return new ImmutableCondition(matchers, areImmutable());
}
public static Condition super Class>> effectivelyImmutable(final Matcher... matchers) {
return new ImmutableCondition(matchers, areEffectivelyImmutable());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy