Package org.sosy_lab.java_smt.test
Class ProverEnvironmentSubject
java.lang.Object
com.google.common.truth.Subject
org.sosy_lab.java_smt.test.ProverEnvironmentSubject
Subject subclass for testing assertions about ProverEnvironments with Truth (allows using
assert_().about(...).that(stack).isUnsatisfiable() etc.).
For a test use SolverBasedTest0.assertThatEnvironment(BasicProverEnvironment), or
StandardSubjectBuilder.about(com.google.common.truth.Subject.Factory) and proverEnvironments().
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProverEnvironmentSubjectassertThat(BasicProverEnvironment<?> prover) Use this for checking assertions about ProverEnvironments with Truth:assertThat(stack).is...().voidCheck that the subject stack is satisfiable.voidCheck that the subject stack is unsatisfiable.Use this for checking assertions about ProverEnvironments with Truth:assert_().about(proverEnvironments()).that(stack).is...().Methods inherited from class com.google.common.truth.Subject
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
-
Method Details
-
proverEnvironments
public static Subject.Factory<ProverEnvironmentSubject,BasicProverEnvironment<?>> proverEnvironments()Use this for checking assertions about ProverEnvironments with Truth:assert_().about(proverEnvironments()).that(stack).is...(). -
assertThat
Use this for checking assertions about ProverEnvironments with Truth:assertThat(stack).is...(). -
isUnsatisfiable
Check that the subject stack is unsatisfiable. Will show a model (satisfying assignment) on failure.- Throws:
SolverExceptionInterruptedException
-
isSatisfiable
Check that the subject stack is satisfiable. Will show an unsat core on failure.- Throws:
SolverExceptionInterruptedException
-