01: /*
02: * Geotools2 - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2005, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library 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 GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.gce.gtopo30;
17:
18: import java.util.Iterator;
19:
20: import junit.framework.TestCase;
21:
22: import org.geotools.coverage.grid.io.GridFormatFactorySpi;
23: import org.geotools.coverage.grid.io.GridFormatFinder;
24:
25: /**
26: * DOCUMENT ME!
27: *
28: * @author Simone Giannecchini
29: */
30: public class GT30ServiceTest extends TestCase {
31: public GT30ServiceTest() {
32: super ();
33:
34: // TODO Auto-generated constructor stub
35: }
36:
37: /**
38: * DOCUMENT ME!
39: *
40: * @param arg0
41: */
42: public GT30ServiceTest(String arg0) {
43: super (arg0);
44:
45: // TODO Auto-generated constructor stub
46: }
47:
48: public void testIsAvailable() {
49: Iterator list = GridFormatFinder.getAvailableFormats()
50: .iterator();
51: boolean found = false;
52: GridFormatFactorySpi fac;
53: while (list.hasNext()) {
54: fac = (GridFormatFactorySpi) list.next();
55:
56: if (fac instanceof GTopo30FormatFactory) {
57: found = true;
58:
59: break;
60: }
61: }
62:
63: assertTrue("GTopo30FormatFactory not registered", found);
64: }
65: }
|