Class BasicEUnitOperationContributor
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
-
- org.eclipse.epsilon.eol.execute.operations.contributors.BasicEUnitOperationContributor
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class BasicEUnitOperationContributor extends OperationContributor
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 Constructor Description BasicEUnitOperationContributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertEquals(java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps)
void
assertEquals(java.lang.Object expected, java.lang.Object obtained)
void
assertEquals(java.lang.String message, java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps)
void
assertEquals(java.lang.String message, java.lang.Object expected, java.lang.Object obtained)
void
assertFalse(boolean condition)
void
assertFalse(java.lang.String message, boolean condition)
void
assertNotEquals(java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps)
void
assertNotEquals(java.lang.Object expected, java.lang.Object obtained)
void
assertNotEquals(java.lang.String message, java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps)
void
assertNotEquals(java.lang.String message, java.lang.Object expected, java.lang.Object obtained)
void
assertTrue(boolean condition)
void
assertTrue(java.lang.String message, boolean condition)
boolean
contributesTo(java.lang.Object target)
void
fail(java.lang.String message)
-
Methods inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
close, findContributedMethodForEvaluatedParameters, findContributedMethodForEvaluatedParameters, findContributedMethodForUnevaluatedParameters, getContext, getReflectionTarget, getTarget, includeInheritedMethods, setContext, setTarget
-
-
-
-
Method Detail
-
contributesTo
public boolean contributesTo(java.lang.Object target)
- Specified by:
contributesTo
in classOperationContributor
-
assertTrue
public void assertTrue(boolean condition) throws EolAssertionException
- Throws:
EolAssertionException
-
assertTrue
public void assertTrue(java.lang.String message, boolean condition) throws EolAssertionException
- Throws:
EolAssertionException
-
assertFalse
public void assertFalse(boolean condition) throws EolAssertionException
- Throws:
EolAssertionException
-
assertFalse
public void assertFalse(java.lang.String message, boolean condition) throws EolAssertionException
- Throws:
EolAssertionException
-
assertEquals
public void assertEquals(java.lang.Object expected, java.lang.Object obtained) throws EolAssertionException
- Throws:
EolAssertionException
-
assertEquals
public void assertEquals(java.lang.String message, java.lang.Object expected, java.lang.Object obtained) throws EolAssertionException
- Throws:
EolAssertionException
-
assertEquals
public void assertEquals(java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps) throws EolAssertionException
- Throws:
EolAssertionException
-
assertEquals
public void assertEquals(java.lang.String message, java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps) throws EolAssertionException
- Throws:
EolAssertionException
-
assertNotEquals
public void assertNotEquals(java.lang.Object expected, java.lang.Object obtained) throws EolAssertionException
- Throws:
EolAssertionException
-
assertNotEquals
public void assertNotEquals(java.lang.String message, java.lang.Object expected, java.lang.Object obtained) throws EolAssertionException
- Throws:
EolAssertionException
-
assertNotEquals
public void assertNotEquals(java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps) throws EolAssertionException
- Throws:
EolAssertionException
-
assertNotEquals
public void assertNotEquals(java.lang.String message, java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps) throws EolAssertionException
- Throws:
EolAssertionException
-
fail
public void fail(java.lang.String message) throws EolAssertionException
- Throws:
EolAssertionException
-
-