Fix test
This commit is contained in:
parent
c285c384ce
commit
355cb16679
@ -59,7 +59,7 @@ public class EntityRedactionServiceTest {
|
|||||||
|
|
||||||
private static final AtomicLong DICTIONARY_VERSION = new AtomicLong();
|
private static final AtomicLong DICTIONARY_VERSION = new AtomicLong();
|
||||||
private static final AtomicLong RULES_VERSION = new AtomicLong();
|
private static final AtomicLong RULES_VERSION = new AtomicLong();
|
||||||
private static final AtomicLong SPONSORS_VERSION = new AtomicLong();
|
|
||||||
@MockBean
|
@MockBean
|
||||||
private DictionaryClient dictionaryClient;
|
private DictionaryClient dictionaryClient;
|
||||||
|
|
||||||
@ -309,7 +309,7 @@ public class EntityRedactionServiceTest {
|
|||||||
droolsExecutionService.updateRules();
|
droolsExecutionService.updateRules();
|
||||||
|
|
||||||
ClassPathResource pdfFileResource = new ClassPathResource("files/Minimal Examples/batches_new_line.pdf");
|
ClassPathResource pdfFileResource = new ClassPathResource("files/Minimal Examples/batches_new_line.pdf");
|
||||||
when(dictionaryClient.getVersion()).thenReturn(SPONSORS_VERSION.incrementAndGet());
|
when(dictionaryClient.getVersion()).thenReturn(DICTIONARY_VERSION.incrementAndGet());
|
||||||
DictionaryResponse dictionaryResponse = DictionaryResponse.builder()
|
DictionaryResponse dictionaryResponse = DictionaryResponse.builder()
|
||||||
.entries(new ArrayList<>(ResourceLoader.load("dictionaries/sponsor_companies.txt")))
|
.entries(new ArrayList<>(ResourceLoader.load("dictionaries/sponsor_companies.txt")))
|
||||||
.build();
|
.build();
|
||||||
@ -443,6 +443,10 @@ public class EntityRedactionServiceTest {
|
|||||||
.entries(Collections.emptyList())
|
.entries(Collections.emptyList())
|
||||||
.build();
|
.build();
|
||||||
when(dictionaryClient.getDictionaryForType(ADDRESS_CODE)).thenReturn(addressResponse);
|
when(dictionaryClient.getDictionaryForType(ADDRESS_CODE)).thenReturn(addressResponse);
|
||||||
|
DictionaryResponse sponsorResponse = DictionaryResponse.builder()
|
||||||
|
.entries(Collections.emptyList())
|
||||||
|
.build();
|
||||||
|
when(dictionaryClient.getDictionaryForType(SPONSOR_CODE)).thenReturn(sponsorResponse);
|
||||||
|
|
||||||
Colors colors = new Colors();
|
Colors colors = new Colors();
|
||||||
colors.setDefaultColor("#acfc00");
|
colors.setDefaultColor("#acfc00");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user