1- package com .thecoderscorner .menu .editorui . project ;
1+ package com .thecoderscorner .menu .uitests ;
22
3+ import com .thecoderscorner .menu .editorui .project .TccProjectWatcher ;
4+ import com .thecoderscorner .menu .editorui .project .TccProjectWatcherImpl ;
35import org .junit .jupiter .api .AfterEach ;
46import org .junit .jupiter .api .BeforeEach ;
57import org .junit .jupiter .api .Test ;
1416import java .util .concurrent .CountDownLatch ;
1517import java .util .concurrent .TimeUnit ;
1618
17- import static com .thecoderscorner .menu .editorui . project .TccProjectWatcherImplTest .TestProjectWatchListener .TestProjectWatchType .*;
19+ import static com .thecoderscorner .menu .uitests .TccProjectWatcherImplTest .TestProjectWatchListener .TestProjectWatchType .*;
1820import static org .junit .jupiter .api .Assertions .assertEquals ;
1921
2022@ ExtendWith (ApplicationExtension .class )
21- class TccProjectWatcherImplTest {
23+ public class TccProjectWatcherImplTest {
2224 private TccProjectWatcherImpl fileWatcher ;
2325 private TestProjectWatchListener listener ;
2426 private Path rootDir ;
2527 private Path emfFile ;
2628 private Path propFile1 , propFile2 ;
2729
2830 @ BeforeEach
29- void setUp () throws IOException {
31+ public void setUp () throws IOException {
3032 rootDir = Files .createTempDirectory ("tcmenutest" );
3133 Files .createDirectories (rootDir );
3234 Path i18nDir = rootDir .resolve ("i18n" );
@@ -46,7 +48,7 @@ void setUp() throws IOException {
4648 }
4749
4850 @ AfterEach
49- void tearDown () throws IOException {
51+ public void tearDown () throws IOException {
5052 Files .walk (rootDir )
5153 .sorted (Comparator .reverseOrder ())
5254 .map (Path ::toFile )
@@ -55,21 +57,21 @@ void tearDown() throws IOException {
5557 }
5658
5759 @ Test
58- void testEmfFileWatching () throws Exception {
60+ public void testEmfFileWatching () throws Exception {
5961 listener .reset ();
6062 Files .writeString (emfFile , "File has changed" );
6163 assertEquals (EMF_FILE_NOTIFIED , listener .waitForEvent ());
6264 }
6365
6466 @ Test
65- void testI18nFileWatching () throws Exception {
67+ public void testI18nFileWatching () throws Exception {
6668 listener .reset ();
6769 Files .writeString (propFile1 , "propery.1=abcdefghi" );
6870 assertEquals (I18N_NOTIFIED , listener .waitForEvent ());
6971 }
7072
7173 @ Test
72- void testWhereThereIsNoChange () throws Exception {
74+ public void testWhereThereIsNoChange () throws Exception {
7375 fileWatcher .fileWasSaved (propFile2 .getFileName (), "property.1=bonjour" );
7476 listener .reset ();
7577 Files .writeString (propFile2 , "property.1=bonjour" );
0 commit comments