Package ghidra.program.model.data
Class UnionTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- ghidra.program.model.data.UnionTest
-
public class UnionTest extends AbstractGenericTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
-
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 UnionTest()
Constructor for UnionTest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
tearDown()
void
testAdd()
void
testAdd2()
void
testCloneRetainIdentity()
void
testCopyDontRetain()
void
testCyclicDependencyProblem1()
Test that a structure can't be added to itself.void
testCyclicDependencyProblem2()
Test that a structure array can't be added to the same structure.void
testCyclicDependencyProblem3()
Test that a typedef of a union can't be added to the union.void
testCyclicDependencyProblem4()
Test that a union can't contain another union that contains it.void
testCyclicDependencyProblem5()
Test that a union can't contain another union that contains a typedef to it.void
testCyclicDependencyProblem6()
Test that a union can't contain a structure that contains that union.void
testCyclicDependencyProblem7()
Test that a structure can't contain a typedef of a union that contains that structure.void
testCyclingProblem()
void
testDelete()
void
testGetComponent()
void
testGetComponents()
void
testGetName()
void
testInsert()
void
testIsPartOf()
void
testNoCyclicDependencyProblemForArrayPointer()
Test that a union can contain a pointer in it to a typedef of the same union.void
testNoCyclicDependencyProblemForStructurePointer()
Test that a structure can contain a pointer in it to the same structure.void
testNoCyclicDependencyProblemForTypedefPointer()
Test that a union can contain a pointer in it to a typedef of the same union.void
testReplaceWith()
-
Methods inherited from class generic.test.AbstractGenericTest
clickMouse, clickMouse, clickTableCell, createApplicationConfiguration, createApplicationLayout, 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
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAdd
public void testAdd() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAdd2
public void testAdd2()
-
testGetComponent
public void testGetComponent()
-
testGetComponents
public void testGetComponents()
-
testInsert
public void testInsert()
-
testGetName
public void testGetName()
-
testCloneRetainIdentity
public void testCloneRetainIdentity() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCopyDontRetain
public void testCopyDontRetain() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDelete
public void testDelete() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testIsPartOf
public void testIsPartOf()
-
testReplaceWith
public void testReplaceWith()
-
testCyclingProblem
public void testCyclingProblem()
-
testCyclicDependencyProblem1
public void testCyclicDependencyProblem1()
Test that a structure can't be added to itself.
-
testCyclicDependencyProblem2
public void testCyclicDependencyProblem2()
Test that a structure array can't be added to the same structure.
-
testCyclicDependencyProblem3
public void testCyclicDependencyProblem3()
Test that a typedef of a union can't be added to the union.
-
testCyclicDependencyProblem4
public void testCyclicDependencyProblem4()
Test that a union can't contain another union that contains it.
-
testCyclicDependencyProblem5
public void testCyclicDependencyProblem5()
Test that a union can't contain another union that contains a typedef to it.
-
testCyclicDependencyProblem6
public void testCyclicDependencyProblem6()
Test that a union can't contain a structure that contains that union.
-
testCyclicDependencyProblem7
public void testCyclicDependencyProblem7()
Test that a structure can't contain a typedef of a union that contains that structure.
-
testNoCyclicDependencyProblemForStructurePointer
public void testNoCyclicDependencyProblemForStructurePointer()
Test that a structure can contain a pointer in it to the same structure.
-
testNoCyclicDependencyProblemForTypedefPointer
public void testNoCyclicDependencyProblemForTypedefPointer()
Test that a union can contain a pointer in it to a typedef of the same union.
-
testNoCyclicDependencyProblemForArrayPointer
public void testNoCyclicDependencyProblemForArrayPointer()
Test that a union can contain a pointer in it to a typedef of the same union.
-
-