TSK-1211: removed the annoatation @EnableAutoConfiguration; set id to 45 in should_ReturnSpecificTaskHistoryEventWithDetails_When_SingleEventIsQueried
This commit is contained in:
parent
86ccde4040
commit
9ff6af8757
|
|
@ -11,7 +11,6 @@ import org.assertj.core.api.ThrowableAssert.ThrowingCallable;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.extension.ExtendWith;
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.boot.web.server.LocalServerPort;
|
import org.springframework.boot.web.server.LocalServerPort;
|
||||||
import org.springframework.core.ParameterizedTypeReference;
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
|
@ -32,7 +31,6 @@ import pro.taskana.simplehistory.rest.resource.TaskHistoryEventListResource;
|
||||||
import pro.taskana.simplehistory.rest.resource.TaskHistoryEventResource;
|
import pro.taskana.simplehistory.rest.resource.TaskHistoryEventResource;
|
||||||
|
|
||||||
/** Controller for integration test. */
|
/** Controller for integration test. */
|
||||||
@EnableAutoConfiguration
|
|
||||||
@ExtendWith(SpringExtension.class)
|
@ExtendWith(SpringExtension.class)
|
||||||
@SpringBootTest(
|
@SpringBootTest(
|
||||||
classes = {TaskHistoryRestConfiguration.class},
|
classes = {TaskHistoryRestConfiguration.class},
|
||||||
|
|
@ -106,7 +104,7 @@ public class TaskHistoryEventControllerIntTest {
|
||||||
public void should_ReturnSpecificTaskHistoryEventWithDetails_When_SingleEventIsQueried() {
|
public void should_ReturnSpecificTaskHistoryEventWithDetails_When_SingleEventIsQueried() {
|
||||||
ResponseEntity<TaskHistoryEventResource> response =
|
ResponseEntity<TaskHistoryEventResource> response =
|
||||||
template.exchange(
|
template.exchange(
|
||||||
server + port + "/api/v1/task-history-event/47",
|
server + port + "/api/v1/task-history-event/45",
|
||||||
HttpMethod.GET,
|
HttpMethod.GET,
|
||||||
request,
|
request,
|
||||||
ParameterizedTypeReference.forType(TaskHistoryEventResource.class));
|
ParameterizedTypeReference.forType(TaskHistoryEventResource.class));
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import java.time.Instant;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.extension.ExtendWith;
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
|
|
||||||
|
|
@ -17,7 +16,6 @@ import pro.taskana.simplehistory.rest.resource.TaskHistoryEventResourceAssembler
|
||||||
import pro.taskana.spi.history.api.events.TaskanaHistoryEvent;
|
import pro.taskana.spi.history.api.events.TaskanaHistoryEvent;
|
||||||
|
|
||||||
/** Test for {@link TaskHistoryEventResourceAssembler}. */
|
/** Test for {@link TaskHistoryEventResourceAssembler}. */
|
||||||
@EnableAutoConfiguration
|
|
||||||
@ExtendWith(SpringExtension.class)
|
@ExtendWith(SpringExtension.class)
|
||||||
@SpringBootTest(
|
@SpringBootTest(
|
||||||
classes = {TaskHistoryRestConfiguration.class},
|
classes = {TaskHistoryRestConfiguration.class},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue