#297 Create unit test for ImageController

This commit is contained in:
tmcconville
2016-04-02 18:31:58 -05:00
parent 665256ecc0
commit e80583fad7
2 changed files with 20 additions and 8 deletions

View File

@ -40,6 +40,11 @@
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
@ -58,12 +63,4 @@
</plugin>
</plugins>
</build>
<!--<dependencies>-->
<!--<dependency>-->
<!--<groupId>junit</groupId>-->
<!--<artifactId>junit</artifactId>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<!--</dependencies>-->
</project>

View File

@ -0,0 +1,15 @@
package com.iluwatar.image.microservice;
import org.junit.Assert;
import org.junit.Test;
public class ImageControllerTest {
@Test
public void testGetImagePath() {
ImageController imageController = new ImageController();
String imagePath = imageController.getImagePath();
Assert.assertEquals("/product-image.png", imagePath);
}
}