29package com.jogamp.opengl.test.junit.jogl.util.texture;
31import com.jogamp.opengl.test.junit.util.UITestCase;
32import com.jogamp.opengl.util.texture.ImageType;
34import java.io.IOException;
37import org.junit.Assert;
38import org.junit.After;
39import org.junit.Before;
41import org.junit.FixMethodOrder;
42import org.junit.runners.MethodSorters;
44@FixMethodOrder(MethodSorters.NAME_ASCENDING)
56 imageTstFiles.
clear();
59 public void testImpl(
final List<ImageTstFiles.NamedInputStream> streams,
final ImageType expImageType)
throws InterruptedException, IOException {
60 for(
int i=0; i<streams.size(); i++) {
61 final ImageTstFiles.NamedInputStream s = streams.get(i);
63 System.err.printf(
"Test %3d: path %s, exp-type %s, has-type %s%n", i, s.basePath, expImageType, t);
64 Assert.assertEquals(expImageType, t);
69 public void test01AllPNG() throws InterruptedException, IOException {
74 public void test02AllJPG() throws InterruptedException, IOException {
80 public void test03AllTGA() throws InterruptedException, IOException {
85 public void test04AllDDS() throws InterruptedException, IOException {
89 public static void main(
final String args[])
throws IOException {
ArrayList< NamedInputStream > jpgStreams
ArrayList< NamedInputStream > ddsStreams
ArrayList< NamedInputStream > tgaStreams
ArrayList< NamedInputStream > pngStreams
static void main(final String args[])
void testImpl(final List< ImageTstFiles.NamedInputStream > streams, final ImageType expImageType)
Image type classification.
static final String T_TGA
Constant which can be used as a file suffix to indicate a Targa stream, value {@value}.
static final String T_PNG
Constant which can be used as a file suffix to indicate a PNG stream, value {@value}.
static final String T_DDS
Constant which can be used as a file suffix to indicate a DirectDraw Surface stream,...
static final String T_JPG
Constant which can be used as a file suffix to indicate a JPEG stream, value {@value}.