#297 Create unit test for PriceController

This commit is contained in:
tmcconville 2016-04-02 18:33:50 -05:00
parent e80583fad7
commit 4ebb64c092
2 changed files with 20 additions and 0 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>

View File

@ -0,0 +1,15 @@
package com.iluwatar.price.microservice;
import org.junit.Assert;
import org.junit.Test;
public class PriceControllerTest {
@Test
public void testgetPrice() {
PriceController priceController = new PriceController();
String price = priceController.getPrice();
Assert.assertEquals("20", price);
}
}