Class BasicEUnitOperationContributor
java.lang.Object
org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
org.eclipse.epsilon.eol.execute.operations.contributors.BasicEUnitOperationContributor
- All Implemented Interfaces:
AutoCloseable
Operation contributor for the simplest EUnit assertions. More advanced
assertions (or assertions which require additional dependencies) should
be placed in the ExtraEUnitOperationContributor in the eunit.engine
project.
-
Field Summary
Fields inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
cachedMethodNames
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertEquals
(Number expected, Number obtained, Number ulps) void
assertEquals
(Object expected, Object obtained) void
assertEquals
(String message, Number expected, Number obtained, Number ulps) void
assertEquals
(String message, Object expected, Object obtained) void
assertFalse
(boolean condition) void
assertFalse
(String message, boolean condition) void
assertNotEquals
(Number expected, Number obtained, Number ulps) void
assertNotEquals
(Object expected, Object obtained) void
assertNotEquals
(String message, Number expected, Number obtained, Number ulps) void
assertNotEquals
(String message, Object expected, Object obtained) void
assertTrue
(boolean condition) void
assertTrue
(String message, boolean condition) boolean
contributesTo
(Object target) void
Methods inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
close, findContributedMethodForEvaluatedParameters, findContributedMethodForEvaluatedParameters, findContributedMethodForUnevaluatedParameters, getContext, getReflectionTarget, getTarget, includeInheritedMethods, setContext, setTarget
-
Constructor Details
-
BasicEUnitOperationContributor
public BasicEUnitOperationContributor()
-
-
Method Details
-
contributesTo
- Specified by:
contributesTo
in classOperationContributor
-
assertTrue
- Throws:
EolAssertionException
-
assertTrue
- Throws:
EolAssertionException
-
assertFalse
- Throws:
EolAssertionException
-
assertFalse
- Throws:
EolAssertionException
-
assertEquals
- Throws:
EolAssertionException
-
assertEquals
public void assertEquals(String message, Object expected, Object obtained) throws EolAssertionException - Throws:
EolAssertionException
-
assertEquals
public void assertEquals(Number expected, Number obtained, Number ulps) throws EolAssertionException - Throws:
EolAssertionException
-
assertEquals
public void assertEquals(String message, Number expected, Number obtained, Number ulps) throws EolAssertionException - Throws:
EolAssertionException
-
assertNotEquals
- Throws:
EolAssertionException
-
assertNotEquals
public void assertNotEquals(String message, Object expected, Object obtained) throws EolAssertionException - Throws:
EolAssertionException
-
assertNotEquals
public void assertNotEquals(Number expected, Number obtained, Number ulps) throws EolAssertionException - Throws:
EolAssertionException
-
assertNotEquals
public void assertNotEquals(String message, Number expected, Number obtained, Number ulps) throws EolAssertionException - Throws:
EolAssertionException
-
fail
- Throws:
EolAssertionException
-