Skip to content

Commit 63e6066

Browse files
committed
#500 migrate tests to integration to allow regular tests to run
1 parent 9e8a64b commit 63e6066

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tcMenuGenerator/src/test/java/com/thecoderscorner/menu/editorui/project/TccProjectWatcherImplTest.java renamed to tcMenuGenerator/src/it/com/thecoderscorner/menu/uitests/TccProjectWatcherImplTest.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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;
35
import org.junit.jupiter.api.AfterEach;
46
import org.junit.jupiter.api.BeforeEach;
57
import org.junit.jupiter.api.Test;
@@ -14,19 +16,19 @@
1416
import java.util.concurrent.CountDownLatch;
1517
import 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.*;
1820
import 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

Comments
 (0)