diff options
author | Harald Musum <musum@oath.com> | 2018-11-05 14:54:52 +0100 |
---|---|---|
committer | Harald Musum <musum@oath.com> | 2018-11-05 17:43:05 +0100 |
commit | 6630d84ae7856c26c00f5f1d10e1c0a3e304170f (patch) | |
tree | 1f55749a8d903398069a2ea6e95f5a45c783406d /athenz-identity-provider-service | |
parent | e5d0e505d22f728ff97da039c6eceb5860147511 (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.java | 13 |
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); |