org.apache.tapestry.record
Class PersistentPropertyDataEncoderTest

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.record.PersistentPropertyDataEncoderTest

public class PersistentPropertyDataEncoderTest
extends BaseComponentTestCase

Tests for PersistentPropertyDataEncoderImpl.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
PersistentPropertyDataEncoderTest()
           
 
Method Summary
 void testDecodeInvalid()
           
 void testDecodeUnknownPrefix()
           
 void testEmptyEncoding()
           
 void testEncodeDecodeCustomClass()
          Test encoding and decoding a class that's only visible through a non-default class loader.
 void testEncodeNonSerializable()
           
 void testRoundTripLong()
          Test pushing a lot of data, which should trigger the GZip encoding option.
 void testRoundTripShort()
          Test pushing minimal amounts of data, which should favor the non-GZipped version of the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentPropertyDataEncoderTest

public PersistentPropertyDataEncoderTest()
Method Detail

testRoundTripShort

public void testRoundTripShort()
                        throws Exception
Test pushing minimal amounts of data, which should favor the non-GZipped version of the output stream.

Throws:
Exception

testRoundTripLong

public void testRoundTripLong()
                       throws Exception
Test pushing a lot of data, which should trigger the GZip encoding option.

Throws:
Exception

testEmptyEncoding

public void testEmptyEncoding()

testEncodeNonSerializable

public void testEncodeNonSerializable()

testDecodeInvalid

public void testDecodeInvalid()

testDecodeUnknownPrefix

public void testDecodeUnknownPrefix()

testEncodeDecodeCustomClass

public void testEncodeDecodeCustomClass()
                                 throws Exception
Test encoding and decoding a class that's only visible through a non-default class loader. We have to use a lot of reflection on this one.

Throws:
Exception
See Also:
TestDataSqueezer.testClassLoader()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.