package com.prime.web.thumbnailer.test.unit.factory;

import org.junit.Test;
import org.springframework.util.Assert;

import io.prime.web.thumbnailator.factory.ImageIdFactory;
import io.prime.web.thumbnailator.factory.UUIDImageIdFactory;

public class UUIDImageIdFactoryTest 
{
	private ImageIdFactory factory = new UUIDImageIdFactory();
	
	@Test
	public void test()
	{
		String fileName = "test.jpg";
		String imageId = factory.generate(fileName);
		Assert.isTrue(imageId.endsWith(fileName));
		
	}

}

@@ -88,35 +88,135 @@
 org.
-springframework.util.Assert
+junit.runner.RunWith;%0D%0Aimport org.springframework.util.Assert;%0D%0A%0D%0Aimport com.tngtech.java.junit.dataprovider.DataProviderRunner
 ;%0D%0A%0D
@@ -340,16 +340,58 @@
 ory;%0D%0A%0D%0A
+@RunWith(value=DataProviderRunner.class)%0D%0A
 public c
@@ -653,15 +653,59 @@
 %0D%0A%09%09
+Assert.isTrue(6 == imageId.split(%22/%22).length);
 %0D%0A%09%7D%0D%0A
-%0D%0A
 %7D%0D%0A

finish UUIDImageIdFactory