mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 17:56:17 +01:00
Remove outdated test case
This commit is contained in:
@@ -11,7 +11,6 @@ import java.time.Instant;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertNull;
|
|
||||||
import static org.mockito.Mockito.when;
|
import static org.mockito.Mockito.when;
|
||||||
import static org.mockito.MockitoAnnotations.initMocks;
|
import static org.mockito.MockitoAnnotations.initMocks;
|
||||||
|
|
||||||
@@ -39,20 +38,6 @@ public class UserDto2UserMapperTest {
|
|||||||
assertEquals("encrypted" , user.getPassword());
|
assertEquals("encrypted" , user.getPassword());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void shouldMapTimes() {
|
|
||||||
UserDto dto = createDefaultDto();
|
|
||||||
Instant expectedCreationDate = Instant.ofEpochMilli(66666660000L);
|
|
||||||
Optional<Instant> expectedModificationDate = Optional.empty();
|
|
||||||
dto.setCreationDate(expectedCreationDate);
|
|
||||||
dto.setLastModified(expectedModificationDate);
|
|
||||||
|
|
||||||
User user = mapper.userDtoToUser(dto, "original password");
|
|
||||||
|
|
||||||
assertEquals((Long) expectedCreationDate.toEpochMilli(), user.getCreationDate());
|
|
||||||
assertNull(user.getLastModified());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void init() {
|
public void init() {
|
||||||
initMocks(this);
|
initMocks(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user