Clover coverage report -
Coverage timestamp: Sat Jul 7 2007 16:41:13 CEST
file stats: LOC: 48   Methods: 3
NCLOC: 24   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
TestOutcomeCollectorImpl.java 50% 100% 100% 90%
coverage coverage
 1    /**
 2    * JTRunner is free software; you can redistribute it and/or modify it under the
 3    * terms of the GNU General Public License as published by the Free Software
 4    * Foundation; either version 2, or (at your option) any later version.
 5    */
 6   
 7    package jtr.remote.test.impl;
 8   
 9    import java.rmi.RemoteException;
 10    import java.rmi.server.UnicastRemoteObject;
 11    import jtr.remote.test.*;
 12    import jtr.test.ITestCompletionListener;
 13    import jtr.test.SystemProperties;
 14    import jtr.test.TestOutcomeTable;
 15    import org.apache.log4j.Logger;
 16   
 17    /**
 18    * Default implementation of the <i>TestOutcomeCollector</i> JTR-service.
 19    *
 20    * @author frusso
 21    * @version 4.0
 22    * @since 4.0
 23    */
 24    public class TestOutcomeCollectorImpl extends UnicastRemoteObject implements TestOutcomeCollector {
 25   
 26    /**
 27    * Creates a new instance of TestOutcomeCollectorImpl
 28    * @throws java.rmi.RemoteException
 29    */
 30  1 public TestOutcomeCollectorImpl() throws RemoteException {
 31  1 super(new Integer(System.getProperty(SystemProperties.TEST_OUTCOME_COLLECTOR_SERVICE_PORT_PROPERTY,SystemProperties.TEST_OUTCOME_COLLECTOR_SERVICE_PORT.toString())).intValue());
 32  1 logger.debug("Using "+System.getProperty(SystemProperties.TEST_OUTCOME_COLLECTOR_SERVICE_PORT_PROPERTY)+"="
 33    +System.getProperty(SystemProperties.TEST_OUTCOME_COLLECTOR_SERVICE_PORT_PROPERTY,SystemProperties.TEST_OUTCOME_COLLECTOR_SERVICE_PORT.toString()));
 34    }
 35   
 36  1 public void provideTestOutcome(NodeInfo srcJtrNode, TestOutcomeTable outcome) throws RemoteException {
 37  1 lsnr.notifyTestCompletion(srcJtrNode,outcome);
 38    }
 39   
 40  1 public void setRemoteTestCompletionListener(ITestCompletionListener lsnr) {
 41  1 if(this.lsnr==null) {
 42  1 this.lsnr = lsnr;
 43    }
 44    }
 45   
 46    private static ITestCompletionListener lsnr;
 47    private static final Logger logger = Logger.getLogger(TestOutcomeCollectorImpl.class);
 48    }