--- refactoring tests for running in maven
This commit is contained in:
parent
d7f635f7f1
commit
b380dbf231
5 changed files with 29 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue