// Path: src/net/coobird/thumbnailator/resizers/Resizers.java
// public enum Resizers implements Resizer
// {
// 	/**
// 	 * A {@link Resizer} which does not perform resizing operations. The source
// 	 * image will be drawn at the origin of the destination image.
// 	 */
// 	NULL(new NullResizer()),
// 	
// 	/**
// 	 * A {@link Resizer} which performs resizing operations using
// 	 * bilinear interpolation.
// 	 */
// 	BILINEAR(new BilinearResizer()),
// 	
// 	/**
// 	 * A {@link Resizer} which performs resizing operations using
// 	 * bicubic interpolation.
// 	 */
// 	BICUBIC(new BicubicResizer()),
// 
// 	/**
// 	 * A {@link Resizer} which performs resizing operations using
// 	 * progressive bilinear scaling.
// 	 * <p>
// 	 * For details on this technique, refer to the documentation of the
// 	 * {@link ProgressiveBilinearResizer} class.
// 	 */
// 	PROGRESSIVE(new ProgressiveBilinearResizer())
// 	;
// 	
// 	private final Resizer resizer;
// 	
// 	private Resizers(Resizer resizer)
// 	{
// 		this.resizer = resizer;
// 	}
// 
// 	public void resize(BufferedImage srcImage, BufferedImage destImage)
// 	{
// 		resizer.resize(srcImage, destImage);
// 	}
// }


import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import net.coobird.thumbnailator.ThumbnailParameter;
import net.coobird.thumbnailator.resizers.Resizers;
import org.junit.Ignore;
import org.junit.Test;

package net.coobird.thumbnailator.tasks;





public class FileThumbnailTaskTest
{

	@Test(expected=NullPointerException.class)
	public void nullParameter() throws IOException
	{
		// given
		File inputFile = new File("test-resources/Thumbnailator/grid.jpg");
		File outputFile = File.createTempFile("thumbnailator-testing-", ".png");
		outputFile.deleteOnExit();
		
		try
		{
			// when
			new FileThumbnailTask(null, inputFile, outputFile);
			fail();
		}
		catch (NullPointerException e)
		{
			// then
			assertEquals("The parameter is null.", e.getMessage());
			throw e;
		}
	}
	
	@Test

// Path: src/net/coobird/thumbnailator/resizers/Resizers.java
// public enum Resizers implements Resizer
// {
// 	/**
// 	 * A {@link Resizer} which does not perform resizing operations. The source
// 	 * image will be drawn at the origin of the destination image.
// 	 */
// 	NULL(new NullResizer()),
// 	
// 	/**
// 	 * A {@link Resizer} which performs resizing operations using
// 	 * bilinear interpolation.
// 	 */
// 	BILINEAR(new BilinearResizer()),
// 	
// 	/**
// 	 * A {@link Resizer} which performs resizing operations using
// 	 * bicubic interpolation.
// 	 */
// 	BICUBIC(new BicubicResizer()),
// 
// 	/**
// 	 * A {@link Resizer} which performs resizing operations using
// 	 * progressive bilinear scaling.
// 	 * <p>
// 	 * For details on this technique, refer to the documentation of the
// 	 * {@link ProgressiveBilinearResizer} class.
// 	 */
// 	PROGRESSIVE(new ProgressiveBilinearResizer())
// 	;
// 	
// 	private final Resizer resizer;
// 	
// 	private Resizers(Resizer resizer)
// 	{
// 		this.resizer = resizer;
// 	}
// 
// 	public void resize(BufferedImage srcImage, BufferedImage destImage)
// 	{
// 		resizer.resize(srcImage, destImage);
// 	}
// }


// Path: test/net/coobird/thumbnailator/tasks/FileThumbnailTaskTest.java
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import net.coobird.thumbnailator.ThumbnailParameter;
import net.coobird.thumbnailator.resizers.Resizers;
import org.junit.Ignore;
import org.junit.Test;

package net.coobird.thumbnailator.tasks;





public class FileThumbnailTaskTest
{

	@Test(expected=NullPointerException.class)
	public void nullParameter() throws IOException
	{
		// given
		File inputFile = new File("test-resources/Thumbnailator/grid.jpg");
		File outputFile = File.createTempFile("thumbnailator-testing-", ".png");
		outputFile.deleteOnExit();
		
		try
		{
			// when
			new FileThumbnailTask(null, inputFile, outputFile);
			fail();
		}
		catch (NullPointerException e)
		{
			// then
			assertEquals("The parameter is null.", e.getMessage());
			throw e;
		}
	}
	
	@Test

	public void testRead_CorrectUsage() throws IOException
