Package ghidra.graph.viewer
Class GraphComponentTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- docking.test.AbstractDockingTest
-
- ghidra.graph.viewer.AbstractVisualGraphTest
-
- ghidra.graph.viewer.GraphComponentTest
-
public class GraphComponentTest extends AbstractVisualGraphTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.atomic.AtomicBoolean
satelliteDockedSpy
protected java.util.concurrent.atomic.AtomicBoolean
satelliteVisibleSpy
-
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 GraphComponentTest()
-
Method Summary
-
Methods inherited from class ghidra.graph.viewer.AbstractVisualGraphTest
assertPointsAreAboutEqual, buildAndLayoutGraph, clickVertex, clickVertex, clickViewer, createLayoutProvider, drag, dragMouse, ensureVertexVisible, focusVertex, getAnyVertex, getEdge, getVertex, getViewLocation, getZoom, hideSatellite, hoverVertex, installMouseDebugger, isolateVertex, isSatelliteUndocked, isSatelliteVisible, moveMouse, moveVertex, scaleGraphPastInteractionThreshold, setZoom, swing, swing, tearDown, waitForAnimation
-
Methods inherited from class docking.test.AbstractDockingTest
assertEnabled, assertToggleButtonSelected, 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
-
createGraphComponent
protected GraphComponent<AbstractTestVertex,TestEdge,TestVisualGraph> createGraphComponent(TestLayoutProvider layoutProvider)
- Overrides:
createGraphComponent
in classAbstractVisualGraphTest
-
setUp
public void setUp() throws java.lang.Exception
- Overrides:
setUp
in classAbstractVisualGraphTest
- Throws:
java.lang.Exception
-
showUndockedSatelliteViewer
protected void showUndockedSatelliteViewer()
-
initialize
protected void initialize()
- Overrides:
initialize
in classAbstractVisualGraphTest
-
testSetDockedSatelliteVisible
public void testSetDockedSatelliteVisible() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testShowDockedSatelliteViewer
public void testShowDockedSatelliteViewer() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testShowUndockedSatelliteViewer
public void testShowUndockedSatelliteViewer() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetGraphViewStale
public void testSetGraphViewStale() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetStatusMessage
public void testSetStatusMessage() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testTwinkleVertex
public void testTwinkleVertex() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetVertexFocused
public void testSetVertexFocused() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testVertexLocationsGetInitialized
public void testVertexLocationsGetInitialized()
-
testEdgeSizesGetInitialized
public void testEdgeSizesGetInitialized()
-
testSetGraphPerspective
public void testSetGraphPerspective() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyEventDelivery
public void testKeyEventDelivery()
-
testMouseEvent_HeaderDragEditableVertex
public void testMouseEvent_HeaderDragEditableVertex() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testMouseEvent_InternalDragEditableVertex
public void testMouseEvent_InternalDragEditableVertex() throws java.lang.Exception
- Throws:
java.lang.Exception
-
capture
public void capture(javax.swing.JComponent c, java.lang.String name) throws java.lang.Exception
Description copied from class:AbstractDockingTest
Creates and writes to file an image of the given component. The file will be written to the reports directory (this differs depending upon how the test was run), nested inside a directory structure of the form {test class name}/{test name}. A console statement will be written indicating the location of the written file.- Overrides:
capture
in classAbstractDockingTest
- Parameters:
c
- the component to capturename
- the file name suffix- Throws:
java.lang.Exception
- if there is any issue capturing the component
-
testDragNonEditableVertex
public void testDragNonEditableVertex() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRefreshButton
public void testRefreshButton()
-
testShowSatelliteButton
public void testShowSatelliteButton()
-
-