11package rs .mail .templates .impl ;
22
3- import static org .junit .Assert .assertEquals ;
4- import static org .junit .Assert .assertNotNull ;
3+ import static org .junit .jupiter . api . Assertions .assertEquals ;
4+ import static org .junit .jupiter . api . Assertions .assertNotNull ;
55
66import java .io .File ;
77import java .io .IOException ;
88import java .nio .file .Paths ;
99import java .util .HashMap ;
1010import java .util .Locale ;
1111
12- import org .junit .Before ;
13- import org .junit .BeforeClass ;
14- import org .junit .Test ;
12+ import org .junit .jupiter . api . BeforeAll ;
13+ import org .junit .jupiter . api . BeforeEach ;
14+ import org .junit .jupiter . api . Test ;
1515
1616import rs .mail .templates .BuilderException ;
1717import rs .mail .templates .BuilderResult ;
@@ -90,7 +90,7 @@ public void testBuild_withTranslations() throws BuilderException {
9090 }
9191
9292
93- @ Before
93+ @ BeforeEach
9494 public void beforeEach () throws IOException {
9595 resolver = new DefaultTemplateResolver (new File (curDir , "src/test/resources/freemarker" ));
9696 primaryResolver = new DefaultTemplateResolver (new File (curDir , "src/test/resources/freemarker/primary" ));
@@ -102,7 +102,7 @@ public void beforeEach() throws IOException {
102102 context .setValue ("aMessage" , "A message" );
103103 }
104104
105- @ BeforeClass
105+ @ BeforeAll
106106 public static void beforeClass () {
107107 curDir = Paths .get ("" ).toAbsolutePath ().toFile ();
108108 }
0 commit comments