Clover coverage report -
Coverage timestamp: Sun Feb 29 2004 21:42:04 CET
file stats: LOC: 69   Methods: 5
NCLOC: 30   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
AlternatorTestCase.java - 50% 20% 28.6%
coverage coverage
 1   
 /* ====================================================================
 2   
  The Jicarilla Software License
 3   
 
 4   
  Copyright (c) 2003 Leo Simons.
 5   
  All rights reserved.
 6   
 
 7   
  Permission is hereby granted, free of charge, to any person obtaining
 8   
  a copy of this software and associated documentation files (the
 9   
  "Software"), to deal in the Software without restriction, including
 10   
  without limitation the rights to use, copy, modify, merge, publish,
 11   
  distribute, sublicense, and/or sell copies of the Software, and to
 12   
  permit persons to whom the Software is furnished to do so, subject to
 13   
  the following conditions:
 14   
 
 15   
  The above copyright notice and this permission notice shall be
 16   
  included in all copies or substantial portions of the Software.
 17   
 
 18   
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 19   
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 20   
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 21   
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 22   
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 23   
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 24   
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 25   
 ==================================================================== */
 26   
 package org.jicarilla.framework.test.plumbing;
 27   
 
 28   
 import org.jicarilla.framework.Alternator;
 29   
 import org.jicarilla.framework.plumbing.Sink;
 30   
 import org.jicarilla.framework.plumbing.Sink;
 31   
 import junit.framework.TestCase;
 32   
 
 33   
 /**
 34   
  * <a href="http://www.junit.org/">JUnit</a> {@link junit.framework.TestCase
 35   
  * testcase} for Alternator.
 36   
  * 
 37   
  * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 38   
  * @version $Id: AlternatorTestCase.java,v 1.1 2003/11/10 22:51:01 lsimons Exp
 39   
  *          $
 40   
  */
 41   
 public class AlternatorTestCase extends TestCase
 42   
 {
 43  1
     public void testImplementationPossible()
 44   
     {
 45  1
         assertNotNull(
 46   
                 new Alternator()
 47   
                 {
 48  0
                     public void addSink( Sink sink )
 49   
                     {
 50   
                     }
 51   
 
 52  0
                     public void addSink( Sink sink, int priority )
 53   
                     {
 54   
                     }
 55   
 
 56  0
                     public void put( Object o ) throws InterruptedException
 57   
                     {
 58   
                     }
 59   
 
 60  0
                     public boolean offer( Object o, long l )
 61   
                             throws InterruptedException
 62   
                     {
 63  0
                         return false;
 64   
                     }
 65   
                 }
 66   
         );
 67   
     }
 68   
 }
 69