frysk.testbed
Class TestRegs
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
frysk.junit.TestCase
frysk.testbed.TestLib
frysk.testbed.TestRegs
- All Implemented Interfaces:
- Test
public class TestRegs
- extends TestLib
Sanity check of the RegsCase - that everything needed is present.
Methods inherited from class frysk.testbed.TestLib |
addToTearDown, addToTearDown, assertRunToFindProc, assertRunUntilStop, assertRunUntilStop, getExecPath, isChildOf, isChildOfMine, isDescendantOf, isDescendantOfMine, runPending |
Methods inherited from class frysk.junit.TestCase |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, getTimeoutMilliseconds, getTimeoutSeconds, missing32or64, unresolved, unresolvedOffUtrace, unresolvedOn32On64, unresolvedOnIA32, unresolvedOnPPC, unresolvedOnUtrace, unresolvedOnx8664, unsupported |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
regsCase
private RegsCase regsCase
TestRegs
public TestRegs()
setUp
public void setUp()
- Description copied from class:
TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
- Overrides:
setUp
in class TestLib
tearDown
public void tearDown()
- Description copied from class:
TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
- Overrides:
tearDown
in class TestLib
testValuesAvailable
public void testValuesAvailable()
- Check that there is a value to test.
nonzeroBytes
private byte[] nonzeroBytes(Random random,
int size)
- Create a byte array with all elements filled in with random
non-zero values.
testValues
public void testValues()
testGeneralRegistersPresent
public void testGeneralRegistersPresent()
- Called by TestRegsCase; to verify that all registers are
present; if some are missing it dumps out suggested test
values.
testFloatRegistersPresent
public void testFloatRegistersPresent()
testVectorRegistersPresent
public void testVectorRegistersPresent()
checkRegisterGroupPresent
private void checkRegisterGroupPresent(String what)
checkRegisterGroupPresent
private void checkRegisterGroupPresent(RegisterGroup group)