01: /*
02: * @(#)AllFileFilterJDK12UTest.java
03: *
04: * Copyright (C) 2001,,2003 2002 Matt Albrecht
05: * groboclown@users.sourceforge.net
06: * http://groboutils.sourceforge.net
07: *
08: * Permission is hereby granted, free of charge, to any person obtaining a
09: * copy of this software and associated documentation files (the "Software"),
10: * to deal in the Software without restriction, including without limitation
11: * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12: * and/or sell copies of the Software, and to permit persons to whom the
13: * Software is furnished to do so, subject to the following conditions:
14: *
15: * The above copyright notice and this permission notice shall be included in
16: * all copies or substantial portions of the Software.
17: *
18: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21: * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24: * DEALINGS IN THE SOFTWARE.
25: */
26:
27: package net.sourceforge.groboutils.util.io.v1;
28:
29: import java.io.File;
30:
31: import junit.framework.Test;
32: import junit.framework.TestCase;
33: import junit.framework.TestSuite;
34:
35: /**
36: *
37: *
38: * @author Matt Albrecht <a href="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
39: * @since 0.9.1d Alpha (sometime in 2001)
40: * @version $Date: 2003/02/10 22:52:45 $
41: */
42: public class AllFileFilterJDK12UTest extends TestCase {
43: //-------------------------------------------------------------------------
44: // Global constructs that only depend upon the class name
45: private static final Class THIS_CLASS = AllFileFilterJDK12UTest.class;
46:
47: public AllFileFilterJDK12UTest(String name) {
48: super (name);
49: }
50:
51: //-------------------------------------------------------------------------
52: // Test methods
53:
54: public void testInstantiate() {
55: new AllFileFilter();
56: }
57:
58: public void testNullAccept() {
59: AllFileFilter aff = new AllFileFilter();
60:
61: assertTrue("must always return null.", aff.accept(null));
62: assertTrue("must always return null.", aff.accept(null, null));
63: }
64:
65: //-------------------------------------------------------------------------
66: // Global static methods that don't change.
67:
68: public static Test suite() {
69: TestSuite suite = new TestSuite(THIS_CLASS);
70:
71: return suite;
72: }
73:
74: public static void main(String[] args) {
75: String[] name = { THIS_CLASS.getName() };
76:
77: // junit.textui.TestRunner.main( name );
78: // junit.swingui.TestRunner.main( name );
79:
80: junit.textui.TestRunner.main(name);
81: }
82:
83: protected void setUp() throws Exception {
84: super .setUp();
85:
86: // set ourself up
87: }
88:
89: protected void tearDown() throws Exception {
90: // tear ourself down
91:
92: super.tearDown();
93: }
94:
95: }
|