Clover coverage report -
Coverage timestamp: Wed Jan 31 2007 15:38:53 EST
file stats: LOC: 39   Methods: 3
NCLOC: 27   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
MethodCallFactoryTest.java - 100% 100% 100%
coverage
 1    package org.jboss.cache.marshall;
 2   
 3    import junit.framework.TestCase;
 4    import org.jboss.cache.GlobalTransaction;
 5   
 6    /**
 7    * @author <a href="mailto:manik@jboss.org">Manik Surtani</a>
 8    */
 9    public class MethodCallFactoryTest extends TestCase
 10    {
 11  1 public void testVarArgsMethod()
 12    {
 13  1 GlobalTransaction gtx = new GlobalTransaction();
 14  1 MethodCall c = MethodCallFactory.create(MethodDeclarations.commitMethod, gtx);
 15   
 16  1 assertEquals(gtx, c.getArgs()[0]);
 17    }
 18   
 19  1 public void testObjectArrayMethod()
 20    {
 21  1 GlobalTransaction gtx = new GlobalTransaction();
 22  1 MethodCall c = MethodCallFactory.create(MethodDeclarations.commitMethod, new Object[]{gtx});
 23   
 24  1 assertEquals(gtx, c.getArgs()[0]);
 25    }
 26   
 27  1 public void testMultipleArrayElems()
 28    {
 29  1 GlobalTransaction gtx = new GlobalTransaction();
 30  1 MethodCall c = MethodCallFactory.create(MethodDeclarations.commitMethod, new Object[]{gtx, gtx, gtx});
 31   
 32  1 assertEquals(gtx, c.getArgs()[0]);
 33  1 assertEquals(gtx, c.getArgs()[1]);
 34  1 assertEquals(gtx, c.getArgs()[2]);
 35   
 36  1 assertEquals(3, c.getArgs().length);
 37    }
 38   
 39    }