001: /*
002: * @(#)IClassChannelLogReaderUTestI.java
003: *
004: * Copyright (C) 2002-2003 Matt Albrecht
005: * groboclown@users.sourceforge.net
006: * http://groboutils.sourceforge.net
007: *
008: * This program is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU Lesser General Public License
010: * as published by the Free Software Foundation; either version 2
011: * of the License, or (at your option) any later version.
012: *
013: * This program is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016: * GNU Lesser General Public License for more details.
017: *
018: * You should have received a copy of the GNU Lesser General Public License
019: * along with this program; if not, write to the Free Software
020: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
021: */
022:
023: package net.sourceforge.groboutils.codecoverage.v2;
024:
025: import net.sourceforge.groboutils.autodoc.v1.AutoDoc;
026: import net.sourceforge.groboutils.junit.v1.iftc.ImplFactory;
027: import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestCase;
028: import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestSuite;
029:
030: /**
031: * Tests the IClassChannelLogReader interface.
032: *
033: * @author Matt Albrecht <a href="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
034: * @version $Date: 2004/04/15 05:48:27 $
035: * @since December 28, 2002
036: */
037: public class IClassChannelLogReaderUTestI extends InterfaceTestCase {
038: //-------------------------------------------------------------------------
039: // Standard JUnit Class-specific declarations
040:
041: private static final Class THIS_CLASS = IClassChannelLogReaderUTestI.class;
042: private static final AutoDoc DOC = new AutoDoc(THIS_CLASS);
043:
044: public IClassChannelLogReaderUTestI(String name, ImplFactory f) {
045: super (name, IClassChannelLogReader.class, f);
046: }
047:
048: public IClassChannelLogReader createIClassChannelLogReader() {
049: return (IClassChannelLogReader) createImplObject();
050: }
051:
052: //-------------------------------------------------------------------------
053: // Tests
054:
055: public void testNextRecord1() throws Exception {
056: IClassChannelLogReader cclr = createIClassChannelLogReader();
057: IChannelLogRecord clr;
058: do {
059: clr = cclr.nextRecord();
060: } while (clr != null);
061: }
062:
063: //-------------------------------------------------------------------------
064: // Standard JUnit declarations
065:
066: public static InterfaceTestSuite suite() {
067: InterfaceTestSuite suite = new InterfaceTestSuite(THIS_CLASS);
068:
069: return suite;
070: }
071:
072: public static void main(String[] args) {
073: String[] name = { THIS_CLASS.getName() };
074:
075: // junit.textui.TestRunner.main( name );
076: // junit.swingui.TestRunner.main( name );
077:
078: junit.textui.TestRunner.main(name);
079: }
080:
081: /**
082: *
083: * @exception Exception thrown under any exceptional condition.
084: */
085: protected void setUp() throws Exception {
086: super .setUp();
087:
088: // set ourself up
089: }
090:
091: /**
092: *
093: * @exception Exception thrown under any exceptional condition.
094: */
095: protected void tearDown() throws Exception {
096: // tear ourself down
097:
098: super.tearDown();
099: }
100: }
|