Revize 0d20d943
Přidáno uživatelem Jakub Danek před více než 5 roky(ů)
server/src/test/java/org/danekja/ymanager/ws/rest/TestControllerTest.java | ||
---|---|---|
1 |
package org.danekja.ymanager.ws.rest; |
|
2 |
|
|
3 |
import org.danekja.ymanager.util.localization.Language; |
|
4 |
import org.danekja.ymanager.util.localization.Message; |
|
5 |
import org.junit.jupiter.api.BeforeEach; |
|
6 |
import org.junit.jupiter.api.Test; |
|
7 |
|
|
8 |
import static org.junit.jupiter.api.Assertions.assertEquals; |
|
9 |
|
|
10 |
class TestControllerTest { |
|
11 |
|
|
12 |
private TestController testController; |
|
13 |
|
|
14 |
@BeforeEach |
|
15 |
void setUp() { |
|
16 |
Message.config() |
|
17 |
.addLanguage(Language.EN) |
|
18 |
.addLanguage(Language.CZ); |
|
19 |
|
|
20 |
testController = new TestController(); |
|
21 |
} |
|
22 |
|
|
23 |
@Test |
|
24 |
void hello_inEnglish_true() { |
|
25 |
assertEquals("It works!!", testController.hello()); |
|
26 |
} |
|
27 |
} |
Také k dispozici: Unified diff
re #37 code cleanup