Search in sources :

Example 16 with SutExecution

use of io.elastest.etm.model.SutExecution in project elastest-torm by elastest.

the class SutServiceTest method setUp.

@BeforeEach
public void setUp() {
    sut = new SutSpecification();
    sutExec = new SutExecution(1L, sut, null, null);
}
Also used : SutExecution(io.elastest.etm.model.SutExecution) SutSpecification(io.elastest.etm.model.SutSpecification) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 17 with SutExecution

use of io.elastest.etm.model.SutExecution in project elastest-torm by elastest.

the class SutServiceTest method testCreateSutExecutionBySut.

@Test
public void testCreateSutExecutionBySut() {
    when(sutExecutionRepository.save(Mockito.any(SutExecution.class))).thenReturn(sutExec);
    SutExecution sutExec = sutService.createSutExecutionBySut(sut);
    assertTrue(sutExec.getSutSpecification().getId() == this.sut.getId());
}
Also used : SutExecution(io.elastest.etm.model.SutExecution) Test(org.junit.jupiter.api.Test)

Example 18 with SutExecution

use of io.elastest.etm.model.SutExecution in project elastest-torm by elastest.

the class SutServiceTest method testModifySutExec.

@Test
public void testModifySutExec() {
    when(sutExecutionRepository.findOne(Mockito.anyLong())).thenReturn(sutExec);
    when(sutExecutionRepository.save(Mockito.any(SutExecution.class))).thenReturn(sutExec);
    SutExecution sutExecResult = sutService.modifySutExec(sutExec);
    assertTrue(sutExecResult.getId() == sutExec.getId());
}
Also used : SutExecution(io.elastest.etm.model.SutExecution) Test(org.junit.jupiter.api.Test)

Aggregations

SutExecution (io.elastest.etm.model.SutExecution)18 SutSpecification (io.elastest.etm.model.SutSpecification)9 Test (org.junit.jupiter.api.Test)8 EimMonitoringConfig (io.elastest.etm.model.EimMonitoringConfig)2 TJobExecution (io.elastest.etm.model.TJobExecution)2 ArrayList (java.util.ArrayList)2 Parameter (io.elastest.etm.model.Parameter)1 Project (io.elastest.etm.model.Project)1 TJob (io.elastest.etm.model.TJob)1 IOException (java.io.IOException)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1