|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.eigenbase.util.UtilTest
public class UtilTest
Unit test for Util
and other classes in this package.
Nested Class Summary | |
---|---|
private static class |
UtilTest.SerializableEnum
Enumeration which serializes correctly. |
private static class |
UtilTest.UnserializableEnum
Enumeration which extends BasicValue does NOT serialize correctly. |
Constructor Summary | |
---|---|
UtilTest(String name)
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UtilTest(String name)
Method Detail |
---|
public static Test suite() throws Exception
Exception
public void testPrintEquals()
public void testPrintEquals2()
public void testPrintEquals3()
public void testPrintEquals4()
public void testPrintEquals5()
public void testScientificNotation()
public void testToJavaId() throws UnsupportedEncodingException
UnsupportedEncodingException
private void assertPrintEquals(String expect, String in, boolean nullMeansNull)
public void testSerializeEnumeratedValues() throws IOException, ClassNotFoundException
EnumeratedValues
serialize correctly.
IOException
ClassNotFoundException
private static Object serializeAndDeserialize(Object e1) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void testBitString()
BitString
.
private static void assertReversible(String s)
private void assertByteArray(String expected, String bits, int bitCount)
private String toString(byte[] bytes)
public void testCastingList()
CastingList
and Util.cast(java.util.List super E>, java.lang.Class)
.
public void testIterableProperties()
public void testDiffLines()
DiffTestCase.diff(java.io.File, java.io.File)
.
public void testPosixTimeZone()
Util.toPosix(TimeZone, boolean)
method.
public void testEnumConstants()
Util.enumConstants(Class)
and Util.enumVal(Class, String)
.
public static void main(String[] args) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |