|
|
@@ -51,10 +51,10 @@ public class PortfolioServiceTest {
|
|
|
@Test
|
|
|
public void shouldCreateNewPortfolio() {
|
|
|
//when
|
|
|
- Portfolio response = portfolioService.create();
|
|
|
+ Portfolio result = portfolioService.create();
|
|
|
|
|
|
//then
|
|
|
- assertNotNull(response.getId());
|
|
|
+ assertNotNull(result.getId());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@@ -63,10 +63,10 @@ public class PortfolioServiceTest {
|
|
|
Portfolio portfolio = portfolioService.create();
|
|
|
|
|
|
//when
|
|
|
- Portfolio response = portfolioService.get(portfolio.getId());
|
|
|
+ Portfolio result = portfolioService.get(portfolio.getId());
|
|
|
|
|
|
//then
|
|
|
- assertNotNull(response.getId());
|
|
|
+ assertNotNull(result.getId());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@@ -76,10 +76,10 @@ public class PortfolioServiceTest {
|
|
|
Portfolio portfolio2 = portfolioService.create();
|
|
|
|
|
|
//when
|
|
|
- List<Portfolio> response = portfolioService.getAll();
|
|
|
+ List<Portfolio> result = portfolioService.getAll();
|
|
|
|
|
|
//then
|
|
|
- assertEquals(2, response.size());
|
|
|
+ assertEquals(2, result.size());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
@@ -94,11 +94,11 @@ public class PortfolioServiceTest {
|
|
|
.build();
|
|
|
|
|
|
//when
|
|
|
- Portfolio response = portfolioService.update(portfolio.getId(), List.of(newStock));
|
|
|
+ Portfolio result = portfolioService.update(portfolio.getId(), List.of(newStock));
|
|
|
|
|
|
//then
|
|
|
- assertNotNull(response.getId());
|
|
|
- assertFalse(response.getStocks().isEmpty());
|
|
|
+ assertNotNull(result.getId());
|
|
|
+ assertFalse(result.getStocks().isEmpty());
|
|
|
}
|
|
|
|
|
|
@Test
|