changes for optional and serializable.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user