

package io.scif.formats;

import java.net.MalformedURLException;
import java.net.URISyntaxException;

import net.imagej.axis.Axes;

import org.junit.Test;
import org.scijava.io.http.HTTPLocation;

public class JPEGFormatTest extends AbstractFormatTest {

	public JPEGFormatTest() throws URISyntaxException, MalformedURLException {
		super(new HTTPLocation("https://samples.scif.io/test-jpg.zip"));
	}

	private static final String hash_one =
		"6aa56e4fe2eb9dc1006b833995d7587035dcda48";

	@Test
	public void testOne() {
		final String meta =
			"{\"filtered\":false,\"datasetName\":\"scifio-test.jpg\",\"table\":{},\"priority\":0.0}";
		testImg(baseFolder().child("scifio-test.jpg"), hash_one, meta, new int[] {
			500, 500, 3 }, Axes.X, Axes.Y, Axes.CHANNEL);
	}

}
