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 voidassertEquals(java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps)voidassertEquals(java.lang.Object expected, java.lang.Object obtained)voidassertEquals(java.lang.String message, java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps)voidassertEquals(java.lang.String message, java.lang.Object expected, java.lang.Object obtained)voidassertFalse(boolean condition)voidassertFalse(java.lang.String message, boolean condition)voidassertNotEquals(java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps)voidassertNotEquals(java.lang.Object expected, java.lang.Object obtained)voidassertNotEquals(java.lang.String message, java.lang.Number expected, java.lang.Number obtained, java.lang.Number ulps)voidassertNotEquals(java.lang.String message, java.lang.Object expected, java.lang.Object obtained)voidassertTrue(boolean condition)voidassertTrue(java.lang.String message, boolean condition)booleancontributesTo(java.lang.Object target)voidfail(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:
contributesToin 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
-
-