@@ -0,0 +1,1610 @@
+/*%0A * UserRepositoryInitializerTest.java%0A *%0A * Copyright (C) 2018 %5B A Legge Up %5D%0A *%0A * This software may be modified and distributed under the terms%0A * of the MIT license.  See the LICENSE file for details.%0A */%0A%0Apackage com.aleggeup.confagrid.repository.init;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.ArgumentMatchers;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0Aimport org.mockito.junit.MockitoJUnitRunner;%0A%0Aimport com.aleggeup.confagrid.service.UserService;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class UserRepositoryInitializerTest %7B%0A%0A    @Mock%0A    private UserService mockUserService;%0A%0A    private UserRepositoryInitializer userRepositoryInitializer;%0A%0A    @Before%0A    public void setUp() %7B%0A        userRepositoryInitializer = new UserRepositoryInitializer(mockUserService);%0A    %7D%0A%0A    @After%0A    public void tearDown() %7B%0A        Mockito.verifyNoMoreInteractions(mockUserService);%0A    %7D%0A%0A    @Test%0A    public void testAlreadyInitialized() %7B%0A        Mockito.when(mockUserService.count()).thenReturn(1L);%0A        userRepositoryInitializer.postConstruct();%0A        Mockito.verify(mockUserService).count();%0A    %7D%0A%0A    @Test%0A    public void testInitialize() %7B%0A        Mockito.when(mockUserService.count()).thenReturn(0L);%0A        userRepositoryInitializer.postConstruct();%0A        Mockito.verify(mockUserService).count();%0A        Mockito.verify(mockUserService, Mockito.times(2)).save(ArgumentMatchers.any());%0A        Mockito.verify(mockUserService, Mockito.times(2)).encrypt(ArgumentMatchers.anyString());%0A    %7D%0A%7D%0A

Add test for UserRepositoryInitializer