summaryrefslogtreecommitdiffstats
path: root/athenz-identity-provider-service
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2018-11-05 14:54:52 +0100
committerHarald Musum <musum@oath.com>2018-11-05 17:43:05 +0100
commit6630d84ae7856c26c00f5f1d10e1c0a3e304170f (patch)
tree1f55749a8d903398069a2ea6e95f5a45c783406d /athenz-identity-provider-service
parente5d0e505d22f728ff97da039c6eceb5860147511 (diff)
Use simpler map for models
Need to keep old constructor and make a temporary one with an ignored argument to make this work (since arguments will be equal due to type erasure)
Diffstat (limited to 'athenz-identity-provider-service')
-rw-r--r--athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/instanceconfirmation/InstanceValidatorTest.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/instanceconfirmation/InstanceValidatorTest.java b/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/instanceconfirmation/InstanceValidatorTest.java
index 140a7f71c16..a21c65c40d5 100644
--- a/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/instanceconfirmation/InstanceValidatorTest.java
+++ b/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/instanceconfirmation/InstanceValidatorTest.java
@@ -193,13 +193,12 @@ public class InstanceValidatorTest {
private SuperModelProvider mockSuperModelProvider(ApplicationInfo... appInfos) {
SuperModel superModel = new SuperModel(Stream.of(appInfos)
- .collect(Collectors.groupingBy(
- appInfo -> appInfo.getApplicationId().tenant(),
- Collectors.toMap(
- ApplicationInfo::getApplicationId,
- Function.identity()
- )
- )));
+ .collect(Collectors.toMap(
+ ApplicationInfo::getApplicationId,
+ Function.identity()
+ )
+ ),
+ false);
SuperModelProvider superModelProvider = mock(SuperModelProvider.class);
when(superModelProvider.getSuperModel()).thenReturn(superModel);