Package com._1c.g5.v8.dt.md.resource
Class AbstractInferrerTest.InferrerTestScenario<T extends org.eclipse.emf.ecore.EObject>
- java.lang.Object
-
- com._1c.g5.v8.dt.md.resource.AbstractInferrerTest.InferrerTestScenario<T>
-
- Enclosing class:
- AbstractInferrerTest
public static class AbstractInferrerTest.InferrerTestScenario<T extends org.eclipse.emf.ecore.EObject> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description BiConsumer<T,CompatibilityMode>
assertResetFunction
BiConsumer<T,CompatibilityMode>
assertSetFunction
Consumer<T>
beforeTestFunction
org.eclipse.emf.ecore.EClass
eClass
Consumer<T>
resetConditionFunction
Consumer<T>
setConditionFunction
-
Constructor Summary
Constructors Constructor Description InferrerTestScenario(String name, org.eclipse.emf.ecore.EClass eClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractInferrerTest.InferrerTestScenario<T>
assertReset(BiConsumer<T,CompatibilityMode> assertResetFunction)
AbstractInferrerTest.InferrerTestScenario<T>
assertSet(BiConsumer<T,CompatibilityMode> assertSetFunction)
Sets the function that asserts inferrer result in case of 'Set' scenario.AbstractInferrerTest.InferrerTestScenario<T>
beforeTest(Consumer<T> beforeTestFunction)
AbstractInferrerTest.InferrerTestScenario<T>
resetCondition(Consumer<T> resetCondition)
AbstractInferrerTest.InferrerTestScenario<T>
setCondition(Consumer<T> setCondition)
String
toString()
-
-
-
Field Detail
-
assertSetFunction
public BiConsumer<T extends org.eclipse.emf.ecore.EObject,CompatibilityMode> assertSetFunction
-
assertResetFunction
public BiConsumer<T extends org.eclipse.emf.ecore.EObject,CompatibilityMode> assertResetFunction
-
resetConditionFunction
public Consumer<T extends org.eclipse.emf.ecore.EObject> resetConditionFunction
-
eClass
public org.eclipse.emf.ecore.EClass eClass
-
-
Constructor Detail
-
InferrerTestScenario
public InferrerTestScenario(String name, org.eclipse.emf.ecore.EClass eClass)
-
-
Method Detail
-
assertReset
public AbstractInferrerTest.InferrerTestScenario<T> assertReset(BiConsumer<T,CompatibilityMode> assertResetFunction)
-
assertSet
public AbstractInferrerTest.InferrerTestScenario<T> assertSet(BiConsumer<T,CompatibilityMode> assertSetFunction)
Sets the function that asserts inferrer result in case of 'Set' scenario.- Parameters:
assertSetFunction
- The function, cannot benull
- Returns:
- The reference to the scenario for the call chaining. Cannot be
null
-
resetCondition
public AbstractInferrerTest.InferrerTestScenario<T> resetCondition(Consumer<T> resetCondition)
-
setCondition
public AbstractInferrerTest.InferrerTestScenario<T> setCondition(Consumer<T> setCondition)
-
beforeTest
public AbstractInferrerTest.InferrerTestScenario<T> beforeTest(Consumer<T> beforeTestFunction)
-
-