Package ghidra.graph.viewer.edge
Class VisualGraphPathHighlighterTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- docking.test.AbstractDockingTest
-
- ghidra.graph.viewer.AbstractVisualGraphTest
-
- ghidra.graph.viewer.edge.VisualGraphPathHighlighterTest
-
public class VisualGraphPathHighlighterTest extends AbstractVisualGraphTest
A test meant to exercise most of the code paths inside ofVisualGraphPathHighlighter
. These tests are not validating the actual correctness of the path calculation, as that work is being done by the various graph algorithm tests.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
-
Fields inherited from class ghidra.graph.viewer.AbstractVisualGraphTest
frame, graph, graphComponent
-
Fields inherited from class generic.test.AbstractGenericTest
concurrentTestExceptionRule, DEFAULT_TEST_TOOL_NAME, ruleChain, TESTDATA_DIRECTORY_NAME, watchman
-
Fields inherited from class generic.test.AbstractGTest
BATCH_MODE, DEFAULT_WAIT_DELAY, DEFAULT_WAIT_TIMEOUT, DEFAULT_WINDOW_TIMEOUT, PARALLEL_MODE, PRIVATE_LONG_WAIT_TIMEOUT, testName
-
-
Constructor Summary
Constructors Constructor Description VisualGraphPathHighlighterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TestVisualGraph
buildGraph()
protected void
focusVertex(AbstractTestVertex v)
Focuses the given vertex, which means to trigger it to be picked/selected in the UI, causing it to be the focused vertex of the graph.protected void
hoverVertex(AbstractTestVertex v)
protected void
initialize()
void
testClearEdgeCache()
void
testEdgeFocusMode_ALLCYCLE()
void
testEdgeFocusMode_CYCLE()
void
testEdgeFocusMode_IN()
void
testEdgeFocusMode_INOUT()
void
testEdgeFocusMode_OUT()
void
testEdgeFocusMode_SCOPED_FORWARD()
void
testEdgeFocusMode_SCOPED_REVERSE()
void
testEdgeHoverMode_CYCLE()
void
testEdgeHoverMode_IN()
void
testEdgeHoverMode_INOUT()
void
testEdgeHoverMode_OUT()
void
testEdgeHoverMode_PATH()
void
testEdgeHoverMode_SCOPED_FORWARD()
void
testEdgeHoverMode_SCOPED_REVERSE()
-
Methods inherited from class ghidra.graph.viewer.AbstractVisualGraphTest
assertPointsAreAboutEqual, buildAndLayoutGraph, clickVertex, clickVertex, clickViewer, createGraphComponent, createLayoutProvider, drag, dragMouse, ensureVertexVisible, getAnyVertex, getEdge, getVertex, getViewLocation, getZoom, hideSatellite, installMouseDebugger, isolateVertex, isSatelliteUndocked, isSatelliteVisible, moveMouse, moveVertex, scaleGraphPastInteractionThreshold, setUp, setZoom, swing, swing, tearDown, waitForAnimation
-
Methods inherited from class docking.test.AbstractDockingTest
assertEnabled, assertToggleButtonSelected, capture, checkMessageDisplay, clickComponentProvider, clickComponentProvider, close, close, closeAllWindows, closeAllWindows, closeAllWindowsAndFrames, closeProvider, closeSaveChangesDialog, createApplicationConfiguration, createApplicationLayout, createRenderedImage, createScreenImage, disposeErrorGUI, dockingSetUp, dockingTearDown, expandPath, expandTree, findButtonByActionName, findButtonByIcon, findButtonByText, findComponent, findComponentByName, getAction, getAction, getActions, getClipboardText, getComponentProvider, getDialogComponent, getDialogComponentProvider, getDockableComponent, getNode, getOpenWindowsAsString, getStatusText, getTitleForWindow, getWindow, getWindowByTitle, getWindowByTitleContaining, getWindows, isEnabled, isEnabled, isSelected, isUseErrorGUI, performAction, performAction, performAction, performAction, performDialogAction, pressButtonByText, pressButtonByText, printOpenWindows, selectPath, selectTabIfAvailable, setErrorGUIEnabled, setErrorsExpected, setToggleActionSelected, setToggleActionSelected, setToggleButtonSelected, setToggleButtonSelected, showProvider, triggerActionKey, triggerActionKey, triggerBackspaceKey, triggerEnter, triggerEscapeKey, triggerKey, triggerKey, triggerText, triggerText, waitForComponentProvider, waitForComponentProvider, waitForDialogComponent, waitForDialogComponent, waitForDialogComponent, waitForJDialog, waitForJDialog, waitForTableModel, waitForTree, waitForUpdateOnChooser, waitForWindow, waitForWindow, waitForWindow, waitForWindow, waitForWindowByName, waitForWindowByTitleContaining, waitForWindowByTitleContaining, writeImage, writeImage
-
Methods inherited from class generic.test.AbstractGenericTest
clickMouse, clickMouse, clickTableCell, createStackTraceForAllThreads, createTempDirectory, createTempFile, createTempFile, createTempFileForTest, createTempFileForTest, createTempFilePath, createTempFilePath, deleteMatchingTempFiles, deleteSimilarTempFiles, doubleClick, dragMouse, editCell, executeOnSwingWithoutBlocking, findAbstractButtonByName, findAbstractButtonByText, findButtonByIcon, findButtonByText, findComponent, findComponent, findComponentByName, findComponentByName, findComponentsByName, findOwnedWindows, findPathToText, findTestDataFile, findTreePathToText, fixupGUI, getAllWindows, getDebugFileDirectory, getInstanceField, getInstanceFieldByClassType, getLocalResourceFile, getTestDataDir, getTestDataDirectory, getTestDataFile, getText, hasTestFailed, initializeLayout, initializeSystemProperties, invokeConstructor, invokeInstanceMethod, invokeInstanceMethod, leftClick, loadTextResource, loadTextResource, middleClick, moveMouse, postEvent, pressButton, pressButton, pressButtonByName, pressButtonByName, pressButtonByText, pressButtonByText, printMemory, privateWaitForPostedSwingRunnables_SwingSafe, rightClick, runSwing, runSwing, runSwing, setComboBoxSelection, setInstanceField, setText, testFailed, toString, waitForPostedSwingRunnables, waitForSwing, waitForTasks, windowForComponent, yieldToSwing
-
Methods inherited from class generic.test.AbstractGTest
assertArraysEqualOrdered, assertArraysEqualUnordered, assertArraysEqualUnordered, assertContainsExactly, assertContainsExactly, assertListEqualOrdered, assertListEqualOrdered, assertListEqualsArrayOrdered, assertListEqualsArrayUnordered, assertListEqualUnordered, failWithException, getName, getRandomInt, getRandomInt, getRandomString, getRandomString, getTestDirectoryPath, sleep, waitFor, waitFor, waitFor, waitForCondition, waitForCondition, waitForConditionWithoutFailing, waitForValue, waitForValueWithoutFailing
-
-
-
-
Method Detail
-
buildGraph
protected TestVisualGraph buildGraph()
- Specified by:
buildGraph
in classAbstractVisualGraphTest
-
initialize
protected void initialize()
- Overrides:
initialize
in classAbstractVisualGraphTest
-
testEdgeFocusMode_IN
public void testEdgeFocusMode_IN()
-
testEdgeFocusMode_OUT
public void testEdgeFocusMode_OUT()
-
testEdgeFocusMode_INOUT
public void testEdgeFocusMode_INOUT()
-
testEdgeFocusMode_CYCLE
public void testEdgeFocusMode_CYCLE()
-
testEdgeFocusMode_ALLCYCLE
public void testEdgeFocusMode_ALLCYCLE()
-
testEdgeFocusMode_SCOPED_FORWARD
public void testEdgeFocusMode_SCOPED_FORWARD()
-
testEdgeFocusMode_SCOPED_REVERSE
public void testEdgeFocusMode_SCOPED_REVERSE()
-
testEdgeHoverMode_IN
public void testEdgeHoverMode_IN()
-
testEdgeHoverMode_OUT
public void testEdgeHoverMode_OUT()
-
testEdgeHoverMode_INOUT
public void testEdgeHoverMode_INOUT()
-
testEdgeHoverMode_CYCLE
public void testEdgeHoverMode_CYCLE()
-
testEdgeHoverMode_PATH
public void testEdgeHoverMode_PATH()
-
testEdgeHoverMode_SCOPED_FORWARD
public void testEdgeHoverMode_SCOPED_FORWARD()
-
testEdgeHoverMode_SCOPED_REVERSE
public void testEdgeHoverMode_SCOPED_REVERSE()
-
testClearEdgeCache
public void testClearEdgeCache()
-
focusVertex
protected void focusVertex(AbstractTestVertex v)
Description copied from class:AbstractVisualGraphTest
Focuses the given vertex, which means to trigger it to be picked/selected in the UI, causing it to be the focused vertex of the graph.- Overrides:
focusVertex
in classAbstractVisualGraphTest
- Parameters:
v
- the vertex
-
hoverVertex
protected void hoverVertex(AbstractTestVertex v)
- Overrides:
hoverVertex
in classAbstractVisualGraphTest
-
-