frysk.value
Class TestLocation

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by frysk.junit.TestCase
              extended by frysk.value.TestLocation
All Implemented Interfaces:
Test

public class TestLocation
extends TestCase

Test location code. Note, for big-endian the most significant bytes are on the LHS and the least significant are on the RHS. Note, and for little-endian the most significant are on the RHS and the least significant are on the LHS.


Field Summary
private  Location l
           
 
Constructor Summary
TestLocation()
           
 
Method Summary
 void setUp()
          Sets up the fixture, for example, open a network connection.
 void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testGetBig()
           
 void testGetLittle()
           
 void testPutBig()
          Since the write and location size are the same, this checks for a direct write.
 void testPutBigLong()
          Since the most significant big-endian bytes are on the left, this test checks that those excess bytes are discarded during the store.
 void testPutBigShort()
          Since the least significant big-endian bytes are on the right, this test checks that the short value is stored in the RHS of the location with the LHS (most sigificant bytes) padded with FILL.
 void testPutLittle()
          Since the write and location size are the same, this checks for a direct write but with the order reversed.
 void testPutLittleLong()
          Since the most sigificant big-endian bytes are on the left, this test checks that both those excess bytes are discared and that the least significant bytes are reversed (little-endian).
 void testPutLittleShort()
          Since the least significant little-endian bytes are on the left, this test checks that the short value is stored in the LHS of the location (order reversed) with the RHS (most sigificant bytes) padded with FILL.
 void testSlice()
           
 
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.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

l

private Location l
Constructor Detail

TestLocation

public TestLocation()
Method Detail

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 TestCase

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 TestCase

testGetBig

public void testGetBig()

testGetLittle

public void testGetLittle()

testPutBig

public void testPutBig()
Since the write and location size are the same, this checks for a direct write.


testPutLittle

public void testPutLittle()
Since the write and location size are the same, this checks for a direct write but with the order reversed.


testPutBigLong

public void testPutBigLong()
Since the most significant big-endian bytes are on the left, this test checks that those excess bytes are discarded during the store.


testPutLittleLong

public void testPutLittleLong()
Since the most sigificant big-endian bytes are on the left, this test checks that both those excess bytes are discared and that the least significant bytes are reversed (little-endian).


testPutBigShort

public void testPutBigShort()
Since the least significant big-endian bytes are on the right, this test checks that the short value is stored in the RHS of the location with the LHS (most sigificant bytes) padded with FILL.


testPutLittleShort

public void testPutLittleShort()
Since the least significant little-endian bytes are on the left, this test checks that the short value is stored in the LHS of the location (order reversed) with the RHS (most sigificant bytes) padded with FILL.


testSlice

public void testSlice()