Package ai.stapi.test.base
Class AbstractUnitTestCase
java.lang.Object
ai.stapi.test.base.AbstractUnitTestCase
- All Implemented Interfaces:
FixtureFileLoadableTestTrait
- Direct Known Subclasses:
SpringBootTestCase,UnitTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IdLessTextGraphRendererprotected IdLessTextEdgeRendererprotected IdLessTextGraphRendererprotected IdLessTextNodeRendererprotected ai.stapi.objectRenderer.infrastructure.objectToJsonStringRenderer.ObjectToJsonStringRendererprotected TextEdgeRendererprotected TextNodeRenderer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IdLessTextRendererOptionsprotected voidprotected voidthenEdgesApproved(List<TraversableEdge> edges) protected voidthenEdgesAreSame(Edge expectedEdge, TraversableEdge actualEdge) protected voidthenEdgesHaveSameIdAndTypeAndNodeIds(Edge expectedEdge, TraversableEdge actualEdge) protected <T extends Throwable>
TthenExceptionMessageApproved(Class<T> exception, org.junit.jupiter.api.function.Executable throwable) protected <T extends Throwable>
TthenExceptionMessageApprovedWithHiddenUuids(Class<T> exception, org.junit.jupiter.api.function.Executable throwable) protected voidthenGraphApproved(Graph actualGraph) protected voidthenGraphApproved(Graph actualGraph, org.approvaltests.core.Options options) protected voidthenGraphApproved(InMemoryGraphRepository actualGraph) protected voidthenGraphApproved(InMemoryGraphRepository actualGraph, org.approvaltests.core.Options options) protected voidthenGraphElementApproved(TraversableGraphElement graphElement) protected voidthenGraphElementsApproved(List<TraversableGraphElement> graphElements) protected voidthenGraphsAreSame(Graph expectedGraph, Graph actualGraph) protected voidthenGraphsAreSame(InMemoryGraphRepository expectedGraph, InMemoryGraphRepository actualGraph) protected voidthenIdLessGraphsAreEqual(Graph expected, Graph actual) protected voidthenIdLessGraphsAreEqual(InMemoryGraphRepository expected, InMemoryGraphRepository actual) protected voidprotected voidthenNodesApproved(List<TraversableNode> nodes) protected voidthenNodesAreSame(Node expectedNode, TraversableNode actualNode) protected voidthenObjectApproved(Object obj) protected voidthenObjectApproved(Object obj, ai.stapi.objectRenderer.infrastructure.objectToJsonStringRenderer.ObjectToJSonStringOptions options) protected voidthenObjectApproved(Object obj, ai.stapi.objectRenderer.infrastructure.objectToJsonStringRenderer.ObjectToJSonStringOptions.RenderFeature... features) protected voidthenObjectApproved(Object obj, List<ai.stapi.objectRenderer.infrastructure.objectToJsonStringRenderer.ObjectToJSonStringOptions.RenderFeature> features) protected voidprotected voidprotected voidthenObjectsEquals(Object expected, Object actual) protected voidthenObjectsEquals(Object expected, Object actual, ai.stapi.objectRenderer.infrastructure.objectToJsonStringRenderer.ObjectToJSonStringOptions options) protected voidthenStringApproved(String actual) protected voidprotected voidthenUnsortedGraphElementsApproved(List<TraversableGraphElement> graphElements) protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.stapi.test.FixtureFileLoadableTestTrait
getAbsoluteFixturePath, getAllFixtureFiles, getFixtureFilePath, getFixtureFolder, getLocationFilePath, getRelativeTestFolderPath
-
Field Details
-
idLessTextNodeRenderer
-
textNodeRenderer
-
idLessTextEdgeRenderer
-
idLessTextGraphRenderer
-
textEdgeRenderer
-
graphRenderer
-
objectToJsonStringRenderer
protected ai.stapi.objectRenderer.infrastructure.objectToJsonStringRenderer.ObjectToJsonStringRenderer objectToJsonStringRenderer
-
-
Constructor Details
-
AbstractUnitTestCase
public AbstractUnitTestCase()
-
-
Method Details
-
thenGraphApproved
-
thenGraphApproved
-
thenGraphApproved
-
thenGraphApproved
protected void thenGraphApproved(InMemoryGraphRepository actualGraph, org.approvaltests.core.Options options) -
thenNodeApproved
-
thenNodesApproved
-
thenUnsortedNodesApproved
-
thenGraphElementApproved
-
thenGraphElementsApproved
-
thenUnsortedGraphElementsApproved
-
thenEdgeApproved
-
thenEdgesApproved
-
thenUnsortedEdgesApproved
-
thenIdLessGraphsAreEqual
-
thenIdLessGraphsAreEqual
protected void thenIdLessGraphsAreEqual(InMemoryGraphRepository expected, InMemoryGraphRepository actual) -
thenNodesAreSame
-
thenEdgesAreSame
-
thenGraphsAreSame
-
thenGraphsAreSame
protected void thenGraphsAreSame(InMemoryGraphRepository expectedGraph, InMemoryGraphRepository actualGraph) -
thenEdgesHaveSameIdAndTypeAndNodeIds
-
thenObjectApproved
-
thenObjectApproved
protected void thenObjectApproved(Object obj, ai.stapi.objectRenderer.infrastructure.objectToJsonStringRenderer.ObjectToJSonStringOptions.RenderFeature... features) -
thenObjectApproved
-
thenObjectApprovedWithoutSorting
-
thenObjectApprovedWithShownIds
-
thenObjectApproved
protected void thenObjectApproved(Object obj, ai.stapi.objectRenderer.infrastructure.objectToJsonStringRenderer.ObjectToJSonStringOptions options) -
thenStringApproved
-
thenObjectsEquals
-
thenObjectsEquals
-
thenExceptionMessageApprovedWithHiddenUuids
-
thenExceptionMessageApproved
-
getRenderOptions
-