From 0a302ac9af19485e0eb713776c1435bc64dbf8fd Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 10 Apr 2019 11:17:00 +0200 Subject: SONAR-11753 fix DB incompatibility in EmailSubscriberDto --- .../server/qualityprofile/BuiltInQPChangeNotificationHandlerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/sonar-server') diff --git a/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/BuiltInQPChangeNotificationHandlerTest.java b/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/BuiltInQPChangeNotificationHandlerTest.java index 7691d0e86d1..6145f79a9a9 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/BuiltInQPChangeNotificationHandlerTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/BuiltInQPChangeNotificationHandlerTest.java @@ -109,7 +109,7 @@ public class BuiltInQPChangeNotificationHandlerTest { .mapToObj(i -> mock(BuiltInQPChangeNotification.class)) .collect(toSet()); Set emailSubscribers = IntStream.range(0, 1 + new Random().nextInt(10)) - .mapToObj(i -> new EmailSubscriberDto("login_" + i, true, "login_" + i + "@foo")) + .mapToObj(i -> EmailSubscriberDto.create("login_" + i, true, "login_" + i + "@foo")) .collect(toSet()); when(authorizationDao.selectQualityProfileAdministratorLogins(dbSession)) .thenReturn(emailSubscribers); -- cgit v1.2.3