Class ByteArrayUtilsTest
java.lang.Object
ubic.gemma.persistence.util.ByteArrayUtilsTest
Round-trip + edge-case unit tests for
ByteArrayUtils, the static facade used
across the persistence layer to encode/decode primitive arrays into the BLOB columns
that store expression-data vectors. The class is a thin delegating wrapper around
ByteArrayConverter; these tests pin the round-trip invariants so a future
change to either side surfaces immediately.- Author:
- claude
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
ByteArrayUtilsTest
public ByteArrayUtilsTest()
-
-
Method Details
-
doubleArrayRoundTrip_preservesValuesInOrder
@Test public void doubleArrayRoundTrip_preservesValuesInOrder() -
floatArrayRoundTrip_preservesValuesAndSize
@Test public void floatArrayRoundTrip_preservesValuesAndSize() -
intArrayRoundTrip_preservesValuesAndSize
@Test public void intArrayRoundTrip_preservesValuesAndSize() -
longArrayRoundTrip_preservesValuesAndSize
@Test public void longArrayRoundTrip_preservesValuesAndSize() -
charArrayRoundTrip_preservesValues
@Test public void charArrayRoundTrip_preservesValues() -
booleanArrayRoundTrip_preservesValues
@Test public void booleanArrayRoundTrip_preservesValues() -
emptyDoubleArray_roundTrips
@Test public void emptyDoubleArray_roundTrips() -
stringArrayRoundTrip_utf8_default
@Test public void stringArrayRoundTrip_utf8_default() -
stringArrayRoundTrip_explicitCharset_preservesNonAscii
@Test public void stringArrayRoundTrip_explicitCharset_preservesNonAscii() -
tabbedStringRoundTrip_preservesTokens
@Test public void tabbedStringRoundTrip_preservesTokens() -
doubleMatrixRoundTrip_preservesShape
@Test public void doubleMatrixRoundTrip_preservesShape()
-