---
refactoring tests for running in maven
This commit is contained in:
psemenkov 2022-09-19 17:05:55 +03:00
parent eff9b131d5
commit 408f13edf6
5 changed files with 29 additions and 4 deletions

View file

@ -175,13 +175,18 @@ class ClearingMemberCategoryServiceTest {
String listenerID = iMap.addEntryListener((EntryRemovedListener<Long, Contact>) entryEvent -> {
System.out.println("Checking If removed..");
try {
waiter.wait(100);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
synchronized (waiter) {
waiter.notify();
}
}, false);
synchronized (waiter) {
waiter.wait(1000);
waiter.wait(100);
}
//ASSERT

View file

@ -135,13 +135,18 @@ class CompanyInfoServiceTest {
String listenerID = iMap.addEntryListener((EntryUpdatedListener<Long, Contact>) entryEvent -> {
System.out.println("Checking If removed..");
try {
waiter.wait(100);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
synchronized (waiter) {
waiter.notify();
}
}, false);
synchronized (waiter) {
waiter.wait(1000);
waiter.wait(100);
}
//ASSERT

View file

@ -99,6 +99,11 @@ class CompanyServiceTest {
String listenerID = iMap.addEntryListener((EntryRemovedListener<Long, Contact>) entryEvent -> {
System.out.println("Checking If removed..");
try {
waiter.wait(100);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
synchronized (waiter) {
waiter.notify();
}

View file

@ -109,13 +109,18 @@ class CompanySymbolServiceTest {
String listenerID = iMap.addEntryListener((EntryUpdatedListener<Long, Contact>) entryEvent -> {
System.out.println("Checking If removed..");
try {
waiter.wait(100);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
synchronized (waiter) {
waiter.notify();
}
}, false);
synchronized (waiter) {
waiter.wait(1000);
waiter.wait(100);
}
//ASSERT

View file

@ -107,13 +107,18 @@ class ContactServiceTest {
String listenerID = iMap.addEntryListener((EntryUpdatedListener<Long, Contact>) entryEvent -> {
System.out.println("Checking If removed..");
try {
waiter.wait(100);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
synchronized (waiter) {
waiter.notify();
}
}, false);
synchronized (waiter) {
waiter.wait(1000);
waiter.wait(100);
}
//ASSERT