changes for optional and serializable.

This commit is contained in:
Karan Khanna
2018-05-21 21:24:23 +02:00
parent 7bba73c6eb
commit 63aaced8f7
6 changed files with 12 additions and 9 deletions
@@ -50,7 +50,7 @@ public class EmployeeServicesWithKeyValueRepositoryIntegrationTest {
@Test
public void test2_whenEmployeeGet_thenEmployeeIsReturnedFromMap() {
Employee employeeFetched = employeeService.get(1);
Employee employeeFetched = employeeService.get(1).get();
assertEquals(employeeFetched, employee1);
}
@@ -46,7 +46,7 @@ public class EmployeeServicesWithRepositoryIntegrationTest {
@Test
public void test2_whenEmployeeGet_thenEmployeeIsReturnedFromMap() {
Employee employeeFetched = employeeService.get(1);
Employee employeeFetched = employeeService.get(1).get();
assertEquals(employeeFetched, employee1);
}