01: /*
02: * @(#) $Header: /cvs/jai-operators/src/tests/ca/forklabs/media/jai/SimpleCollectionImageTest.java,v 1.1 2007/06/07 23:13:56 forklabs Exp $
03: *
04: * Copyright (C) 2007 Forklabs Daniel Léonard
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19: */
20:
21: package ca.forklabs.media.jai;
22:
23: import junit.framework.TestCase;
24:
25: /**
26: * Class {@code SimpleCollectionImageTest} tests class
27: * {@link SimpleCollectionImage}.
28: *
29: * @author <a href="mailto:forklabs at dev.java.net?subject=ca.forklabs.media.jai.SimpleCollectionImageTest">Daniel Léonard</a>
30: * @version $Revision: 1.1 $
31: */
32: @SuppressWarnings("nls")
33: public class SimpleCollectionImageTest extends TestCase {
34:
35: //---------------------------
36: // Constructors
37: //---------------------------
38:
39: /**
40: * Constructor.
41: * @param name the name of this test.
42: */
43: public SimpleCollectionImageTest(String name) {
44: super (name);
45: }
46:
47: //---------------------------
48: // Test methods
49: //---------------------------
50:
51: /**
52: * Tests the two basic creation methods.
53: */
54: public void testUnderlyingCollectionPresent() {
55: SimpleCollectionImage image = new SimpleCollectionImage();
56: assertEquals(0, image.size());
57: }
58:
59: //---------------------------
60: // Class methods
61: //---------------------------
62:
63: /**
64: * Runs only this test.
65: * @param args ignored.
66: */
67: public static void main(String... args) {
68: junit.swingui.TestRunner.run(SimpleCollectionImageTest.class);
69: }
70:
71: }
72:
73: /*
74: * $Log: SimpleCollectionImageTest.java,v $
75: * Revision 1.1 2007/06/07 23:13:56 forklabs
76: * Fixed a bug, the default constructor initializes the underlying collection.
77: *
78: */
|