Skip to content

Commit

Permalink
EPMHLM-428
Browse files Browse the repository at this point in the history
Update tests
  • Loading branch information
Alex-Reif committed Oct 17, 2024
1 parent 6c38ed6 commit 064309e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- healenium

healenium:
image: healenium/hlm-backend:3.4.4
image: healenium/hlm-backend:3.4.6
container_name: healenium
restart: on-failure
ports:
Expand Down
9 changes: 8 additions & 1 deletion src/test/java/com/epam/healenium/TestSaveLocators.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class TestSaveLocators extends TestContainersInitializer {
@Autowired
private ObjectMapper objectMapper;
private SelectorRequestDto selectorRequest;
private RequestDto requestDto;

@BeforeEach
public void setUp() {
Expand All @@ -58,6 +59,12 @@ public void setUp() {
selectorRequest.setMethodName("testMethod()");
selectorRequest.setUrl("https://test-url");
selectorRequest.setNodePath(getLastValidPath());

requestDto = new RequestDto();
requestDto.setLocator(selectorRequest.getLocator());
requestDto.setClassName(selectorRequest.getClassName());
requestDto.setMethodName(selectorRequest.getMethodName());
requestDto.setUrl(selectorRequest.getUrl());
}

@AfterEach
Expand Down Expand Up @@ -105,7 +112,7 @@ public void testSaveLocatorHealing() throws IOException {

@Test
public void testHealingResultFromEmptyDb() {
Set<HealingResultDto> resultDtos = healingService.getHealingResults(selectorRequest);
Set<HealingResultDto> resultDtos = healingService.getHealingResults(requestDto);
Assertions.assertNotEquals(1, resultDtos.size(), "Incorrect amount of healing results were found");
}

Expand Down

0 comments on commit 064309e

Please sign in to comment.