KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > groboutils > codecoverage > v2 > IClassChannelLogReaderUTestI


1 /*
2  * @(#)IClassChannelLogReaderUTestI.java
3  *
4  * Copyright (C) 2002-2003 Matt Albrecht
5  * groboclown@users.sourceforge.net
6  * http://groboutils.sourceforge.net
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22
23 package net.sourceforge.groboutils.codecoverage.v2;
24
25 import net.sourceforge.groboutils.autodoc.v1.AutoDoc;
26 import net.sourceforge.groboutils.junit.v1.iftc.ImplFactory;
27 import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestCase;
28 import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestSuite;
29
30
31 /**
32  * Tests the IClassChannelLogReader interface.
33  *
34  * @author Matt Albrecht <a HREF="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
35  * @version $Date: 2004/04/15 05:48:27 $
36  * @since December 28, 2002
37  */

38 public class IClassChannelLogReaderUTestI extends InterfaceTestCase
39 {
40     //-------------------------------------------------------------------------
41
// Standard JUnit Class-specific declarations
42

43     private static final Class JavaDoc THIS_CLASS = IClassChannelLogReaderUTestI.class;
44     private static final AutoDoc DOC = new AutoDoc( THIS_CLASS );
45     
46     public IClassChannelLogReaderUTestI( String JavaDoc name, ImplFactory f )
47     {
48         super( name, IClassChannelLogReader.class, f );
49     }
50
51     
52     public IClassChannelLogReader createIClassChannelLogReader()
53     {
54         return (IClassChannelLogReader)createImplObject();
55     }
56
57
58     //-------------------------------------------------------------------------
59
// Tests
60

61     
62     public void testNextRecord1() throws Exception JavaDoc
63     {
64         IClassChannelLogReader cclr = createIClassChannelLogReader();
65         IChannelLogRecord clr;
66         do {
67             clr = cclr.nextRecord();
68         } while (clr != null);
69     }
70     
71     
72     //-------------------------------------------------------------------------
73
// Standard JUnit declarations
74

75     
76     public static InterfaceTestSuite suite()
77     {
78         InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS );
79         
80         return suite;
81     }
82     
83     public static void main( String JavaDoc[] args )
84     {
85         String JavaDoc[] name = { THIS_CLASS.getName() };
86         
87         // junit.textui.TestRunner.main( name );
88
// junit.swingui.TestRunner.main( name );
89

90         junit.textui.TestRunner.main( name );
91     }
92     
93     
94     /**
95      *
96      * @exception Exception thrown under any exceptional condition.
97      */

98     protected void setUp() throws Exception JavaDoc
99     {
100         super.setUp();
101         
102         // set ourself up
103
}
104     
105     
106     /**
107      *
108      * @exception Exception thrown under any exceptional condition.
109      */

110     protected void tearDown() throws Exception JavaDoc
111     {
112         // tear ourself down
113

114         
115         super.tearDown();
116     }
117 }
118
119
Popular Tags