File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
api-gateway/image-microservice
src/test/java/com/iluwatar/image/microservice Expand file tree Collapse file tree 2 files changed +20
-8
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 >
58
63
</plugin >
59
64
</plugins >
60
65
</build >
61
-
62
- <!-- <dependencies>-->
63
- <!-- <dependency>-->
64
- <!-- <groupId>junit</groupId>-->
65
- <!-- <artifactId>junit</artifactId>-->
66
- <!-- <scope>test</scope>-->
67
- <!-- </dependency>-->
68
- <!-- </dependencies>-->
69
66
</project >
Original file line number Diff line number Diff line change
1
+ package com .iluwatar .image .microservice ;
2
+
3
+ import org .junit .Assert ;
4
+ import org .junit .Test ;
5
+
6
+ public class ImageControllerTest {
7
+ @ Test
8
+ public void testGetImagePath () {
9
+ ImageController imageController = new ImageController ();
10
+
11
+ String imagePath = imageController .getImagePath ();
12
+
13
+ Assert .assertEquals ("/product-image.png" , imagePath );
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments