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

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

package com.github.grzesiek_galezowski.test_environment;

import com.github.grzesiek_galezowski.test_environment.implementation_details.conditions.EqualityImplementedCondition;
import com.github.grzesiek_galezowski.test_environment.implementation_details.conditions.ImmutableCondition;
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 XAssertJConditions {

  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());
  }

  public static Condition> corectlyImplementedEquality() {
    return new EqualityImplementedCondition();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy