01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2005-2006, 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.image;
17:
18: import junit.framework.TestCase;
19:
20: /**
21: * DOCUMENT ME!
22: *
23: * @author rgoulds
24: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/plugin/image/src/test/java/org/geotools/gce/image/WorldImageFormatTest.java $
25: */
26: public class WorldImageFormatTest extends TestCase {
27: private WorldImageFormatTest format;
28:
29: public WorldImageFormatTest(String name) {
30: super (name);
31: }
32:
33: protected void setUp() throws Exception {
34: super .setUp();
35: format = new WorldImageFormatTest("test");
36: assertNotNull(format);
37: }
38:
39: public void testGetWorldExtension() {
40: assertTrue(WorldImageFormat.getWorldExtension("png").contains(
41: ".pgw"));
42: assertTrue(WorldImageFormat.getWorldExtension("gif").contains(
43: ".gfw"));
44: assertTrue(WorldImageFormat.getWorldExtension("jpg").contains(
45: ".jgw"));
46: assertTrue(WorldImageFormat.getWorldExtension("jpeg").contains(
47: ".jgw"));
48: assertTrue(WorldImageFormat.getWorldExtension("tif").contains(
49: ".tfw"));
50: assertTrue(WorldImageFormat.getWorldExtension("tiff").contains(
51: ".tfw"));
52: }
53: }
|