use of com.khartec.waltz.model.authoritativesource.AuthoritativeRatingVantagePoint in project waltz by khartec.
the class AuthoritativeSourceResolverTest method existingVantageAndDataTypeAndDifferentSourceThenDiscouraged.
@Test
public void existingVantageAndDataTypeAndDifferentSourceThenDiscouraged() {
List<AuthoritativeRatingVantagePoint> vantagePoints = new ArrayList<>();
vantagePoints.add(ImmutableAuthoritativeRatingVantagePoint.builder().vantagePoint(vantagePoint).rank(1).dataTypeCode("REF_DATA").applicationId(205L).rating(AuthoritativenessRating.PRIMARY).build());
AuthoritativeSourceResolver authoritativeSourceResolver = new AuthoritativeSourceResolver(vantagePoints);
AuthoritativenessRating rating = authoritativeSourceResolver.resolve(vantagePoint, sourceApp, "REF_DATA");
Assert.assertEquals(AuthoritativenessRating.DISCOURAGED, rating);
}
Aggregations