diff --git a/sdccc/src/test/java/com/draeger/medical/sdccc/manipulation/GRpcManipulationsTest.java b/sdccc/src/test/java/com/draeger/medical/sdccc/manipulation/GRpcManipulationsTest.java index 4bbd40c5..593785cc 100644 --- a/sdccc/src/test/java/com/draeger/medical/sdccc/manipulation/GRpcManipulationsTest.java +++ b/sdccc/src/test/java/com/draeger/medical/sdccc/manipulation/GRpcManipulationsTest.java @@ -7,6 +7,26 @@ package com.draeger.medical.sdccc.manipulation; +import static com.draeger.medical.t2iapi.context.ContextServiceGrpc.getSetLocationDetailMethod; +import static com.draeger.medical.t2iapi.device.DeviceServiceGrpc.getGetRemovableDescriptorsOfClassMethod; +import static com.draeger.medical.t2iapi.device.DeviceServiceGrpc.getInsertDescriptorMethod; +import static com.draeger.medical.t2iapi.device.DeviceServiceGrpc.getRemoveDescriptorMethod; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNotSame; +import static org.junit.jupiter.api.Assertions.assertSame; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.verifyNoInteractions; +import static org.mockito.Mockito.when; + import com.draeger.medical.sdccc.messages.ManipulationInfo; import com.draeger.medical.sdccc.messages.guice.ManipulationInfoFactory; import com.draeger.medical.sdccc.tests.annotations.TestDescription; @@ -24,6 +44,10 @@ import io.grpc.Server; import io.grpc.ServerBuilder; import io.grpc.stub.StreamObserver; +import java.io.IOException; +import java.util.List; +import java.util.function.BiFunction; +import javax.annotation.Nullable; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.junit.jupiter.api.AfterEach; @@ -32,31 +56,6 @@ import org.junit.jupiter.api.Timeout; import org.somda.sdc.biceps.model.participant.LocationDetail; -import javax.annotation.Nullable; -import java.io.IOException; -import java.util.List; -import java.util.function.BiFunction; - -import static com.draeger.medical.t2iapi.context.ContextServiceGrpc.getSetLocationDetailMethod; -import static com.draeger.medical.t2iapi.device.DeviceServiceGrpc.getGetRemovableDescriptorsOfClassMethod; -import static com.draeger.medical.t2iapi.device.DeviceServiceGrpc.getInsertDescriptorMethod; -import static com.draeger.medical.t2iapi.device.DeviceServiceGrpc.getRemoveDescriptorMethod; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertNotSame; -import static org.junit.jupiter.api.Assertions.assertSame; -import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.ArgumentMatchers.anyLong; -import static org.mockito.ArgumentMatchers.anyString; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.times; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.verifyNoInteractions; -import static org.mockito.Mockito.when; - /** * Unit tests for the gRPC {@linkplain Manipulations} implementation. */