1 |
alfonx |
1212 |
package skrueger.geotools; |
2 |
|
|
|
3 |
alfonx |
1215 |
import static org.junit.Assert.assertNotNull; |
4 |
|
|
import static org.junit.Assert.assertTrue; |
5 |
alfonx |
1212 |
|
6 |
alfonx |
1215 |
import java.awt.image.ColorModel; |
7 |
|
|
import java.io.IOException; |
8 |
|
|
|
9 |
alfonx |
1212 |
import org.junit.After; |
10 |
|
|
import org.junit.Before; |
11 |
|
|
import org.junit.Test; |
12 |
|
|
|
13 |
alfonx |
1215 |
import schmitzm.swing.TestingUtil; |
14 |
|
|
|
15 |
alfonx |
1212 |
public class StyledLayerUtilTest { |
16 |
|
|
|
17 |
|
|
@Before |
18 |
|
|
public void setUp() throws Exception { |
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
@After |
22 |
|
|
public void tearDown() throws Exception { |
23 |
|
|
} |
24 |
|
|
|
25 |
|
|
@Test |
26 |
alfonx |
1215 |
public void testGetColorModel() throws IOException { |
27 |
|
|
StyledGridCoverageReader styled = TestingUtil.TestDatasetsRaster.geotiffWithSld |
28 |
|
|
.getStyled(); |
29 |
|
|
ColorModel colorModel = StyledLayerUtil.getColorModel(styled); |
30 |
|
|
assertNotNull(colorModel); |
31 |
alfonx |
1212 |
} |
32 |
|
|
|
33 |
|
|
@Test |
34 |
alfonx |
1215 |
public void testIsStyleable() throws IOException { |
35 |
|
|
StyledGridCoverageReader styled = TestingUtil.TestDatasetsRaster.geotiffWithSld |
36 |
|
|
.getStyled(); |
37 |
|
|
assertTrue(StyledLayerUtil.isStyleable(styled)); |
38 |
alfonx |
1212 |
} |
39 |
|
|
|
40 |
|
|
} |