.add(3647, "Make 'user_uuid' not-null for 'ORGANIZATION_MEMBERS'", MakeOrganizationMembersUserUuidColumnNotNullable.class)
.add(3648, "Drop index on 'user_id' column of 'ORGANIZATION_MEMBERS' table", DropIndexOnUserIdOfOrganizationMembersTable.class)
.add(3649, "Add index on 'user_uuid' column of 'ORGANIZATION_MEMBERS' table", AddIndexOnUserUuidOfOrganizationMembersTable.class)
- .add(3650, "Drop index on 'user_id', 'group_id' columns of 'ORGANIZATION_MEMBERS' table", DropPrimaryKeyOnUserIdAndOrganizationUuidOfOrganizationMembersTable.class)
+ .add(3650, "Drop primary key on 'user_id' column of 'ORGANIZATION_MEMBERS' table", DropPrimaryKeyOnUserIdAndOrganizationUuidOfOrganizationMembersTable.class)
.add(3651, "Add PK on 'user_uuid', 'organization_uuid' columns of 'ORGANIZATION_MEMBERS' table", AddPrimaryKeyOnUserUuidAndOrganizationUuidColumnsOfUserRolesTable.class)
.add(3652, "Drop column on 'user_id' column of 'ORGANIZATION_MEMBERS' table", DropUserIdColumnOfOrganizationMembersTable.class)
import static org.mockito.ArgumentMatchers.anyCollection;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.timeout;
+import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
public class NotificationDaemonTest {
when(manager.getFromQueue()).thenReturn(notification).thenReturn(null);
underTest.start();
- inOrder.verify(notificationService, timeout(2000)).deliverEmails(singleton(notification));
+ verify(notificationService, timeout(2000)).deliver(notification);
+
+ inOrder.verify(notificationService).deliverEmails(singleton(notification));
inOrder.verify(notificationService).deliver(notification);
inOrder.verifyNoMoreInteractions();
underTest.stop();
.thenReturn(null);
underTest.start();
- inOrder.verify(notificationService, timeout(2000)).deliverEmails(singleton(notification1));
+ verify(notificationService, timeout(2000)).deliver(notification1);
+
+ inOrder.verify(notificationService).deliverEmails(singleton(notification1));
inOrder.verify(notificationService).deliver(notification1);
- inOrder.verify(notificationService, timeout(2000)).deliverEmails(singleton(notification2));
+ inOrder.verify(notificationService).deliverEmails(singleton(notification2));
inOrder.verify(notificationService).deliver(notification2);
- inOrder.verify(notificationService, timeout(2000)).deliverEmails(singleton(notification3));
+ inOrder.verify(notificationService).deliverEmails(singleton(notification3));
inOrder.verify(notificationService).deliver(notification3);
- inOrder.verify(notificationService, timeout(2000)).deliverEmails(singleton(notification4));
+ inOrder.verify(notificationService).deliverEmails(singleton(notification4));
inOrder.verify(notificationService).deliver(notification4);
inOrder.verifyNoMoreInteractions();
underTest.stop();