File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
api-gateway/price-microservice
src/test/java/com/iluwatar/price/microservice Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 40
40
<artifactId >spring-boot-starter-web</artifactId >
41
41
<version >${spring-boot.version} </version >
42
42
</dependency >
43
+ <dependency >
44
+ <groupId >junit</groupId >
45
+ <artifactId >junit</artifactId >
46
+ <scope >test</scope >
47
+ </dependency >
43
48
</dependencies >
44
49
45
50
<build >
Original file line number Diff line number Diff line change
1
+ package com .iluwatar .price .microservice ;
2
+
3
+ import org .junit .Assert ;
4
+ import org .junit .Test ;
5
+
6
+ public class PriceControllerTest {
7
+ @ Test
8
+ public void testgetPrice () {
9
+ PriceController priceController = new PriceController ();
10
+
11
+ String price = priceController .getPrice ();
12
+
13
+ Assert .assertEquals ("20" , price );
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments