TSK-1211: removed the annoatation @EnableAutoConfiguration; set id to 45 in should_ReturnSpecificTaskHistoryEventWithDetails_When_SingleEventIsQueried

This commit is contained in:
Sascha Frevel 2020-04-28 11:23:25 +02:00
parent 86ccde4040
commit 9ff6af8757
2 changed files with 1 additions and 5 deletions

View File

@ -11,7 +11,6 @@ import org.assertj.core.api.ThrowableAssert.ThrowingCallable;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.core.ParameterizedTypeReference;
@ -32,7 +31,6 @@ import pro.taskana.simplehistory.rest.resource.TaskHistoryEventListResource;
import pro.taskana.simplehistory.rest.resource.TaskHistoryEventResource;
/** Controller for integration test. */
@EnableAutoConfiguration
@ExtendWith(SpringExtension.class)
@SpringBootTest(
classes = {TaskHistoryRestConfiguration.class},
@ -106,7 +104,7 @@ public class TaskHistoryEventControllerIntTest {
public void should_ReturnSpecificTaskHistoryEventWithDetails_When_SingleEventIsQueried() {
ResponseEntity<TaskHistoryEventResource> response =
template.exchange(
server + port + "/api/v1/task-history-event/47",
server + port + "/api/v1/task-history-event/45",
HttpMethod.GET,
request,
ParameterizedTypeReference.forType(TaskHistoryEventResource.class));

View File

@ -6,7 +6,6 @@ import java.time.Instant;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
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;
/** Test for {@link TaskHistoryEventResourceAssembler}. */
@EnableAutoConfiguration
@ExtendWith(SpringExtension.class)
@SpringBootTest(
classes = {TaskHistoryRestConfiguration.class},