Clover coverage report -
Coverage timestamp: Wed Jan 31 2007 15:38:53 EST
file stats: LOC: 32   Methods: 2
NCLOC: 18   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
CacheMarshaller200Test.java - 100% 100% 100%
coverage
 1    /*
 2    * JBoss, Home of Professional Open Source
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7    package org.jboss.cache.marshall;
 8   
 9    import org.jboss.cache.RegionManager;
 10   
 11    public class CacheMarshaller200Test extends CacheMarshallerTestBase
 12    {
 13  16 public CacheMarshaller200Test()
 14    {
 15  16 currentVersion = "2.0.0.GA";
 16  16 currentVersionShort = 20;
 17  16 expectedMarshallerClass = CacheMarshaller200.class;
 18    }
 19   
 20  1 public void testHandle140Stream() throws Exception
 21    {
 22  1 VersionAwareMarshaller marshallerOld = new VersionAwareMarshaller(new RegionManager(), false, false, "1.4.0.GA");
 23   
 24    // create a '140' stream.
 25   
 26  1 byte[] buf = marshallerOld.objectToByteBuffer("hello");
 27  1 Object unmarshalled = marshaller.objectFromByteBuffer(buf);
 28   
 29  1 assertEquals("hello", unmarshalled);
 30    }
 31   
 32    }