Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vorgang-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
vorgang-manager
Commits
1e07ddfe
Commit
1e07ddfe
authored
3 months ago
by
Krzysztof Witukiewicz
Browse files
Options
Downloads
Patches
Plain Diff
OZG-7573 Add missing Test-annotation & remove IDE warnings
parent
9ff7fb3a
No related branches found
No related tags found
1 merge request
!23
Ozg 7573 forwarding interface
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
vorgang-manager-server/src/test/java/de/ozgcloud/vorgang/vorgang/redirect/ForwardingRemoteServiceTest.java
+11
-14
11 additions, 14 deletions
...vorgang/vorgang/redirect/ForwardingRemoteServiceTest.java
with
11 additions
and
14 deletions
vorgang-manager-server/src/test/java/de/ozgcloud/vorgang/vorgang/redirect/ForwardingRemoteServiceTest.java
+
11
−
14
View file @
1e07ddfe
...
...
@@ -244,6 +244,7 @@ class ForwardingRemoteServiceTest {
verify
(
vorgangService
).
getById
(
VorgangTestFactory
.
ID
);
}
@Test
void
shouldBuildRouteForwardingRequest
()
{
sendEingang
();
...
...
@@ -352,8 +353,6 @@ class ForwardingRemoteServiceTest {
@Nested
class
TestCreateAttachmentFileSender
{
@Mock
private
StreamObserver
<
GrpcRouteForwardingResponse
>
responseObserver
;
@Mock
private
InputStream
inputStream
;
@Mock
...
...
@@ -437,7 +436,7 @@ class ForwardingRemoteServiceTest {
@Nested
class
TestBuildGrpcAttachmentFile
{
private
IncomingFile
file
=
IncomingFileTestFactory
.
create
();
private
final
IncomingFile
file
=
IncomingFileTestFactory
.
create
();
@BeforeEach
void
mock
()
{
...
...
@@ -452,7 +451,7 @@ class ForwardingRemoteServiceTest {
}
@Test
void
shou
d
lReturnAttachmentMetadataRequest
()
{
void
shoul
d
ReturnAttachmentMetadataRequest
()
{
var
result
=
service
.
buildGrpcAttachmentFile
(
IncomingFileGroupTestFactory
.
NAME
,
file
);
assertThat
(
result
).
isEqualTo
(
GrpcRouteForwardingRequestTestFactory
.
createWithAttachmentMetadata
());
...
...
@@ -505,8 +504,6 @@ class ForwardingRemoteServiceTest {
@Nested
class
TestCreateRepresentationFileSender
{
@Mock
private
StreamObserver
<
GrpcRouteForwardingResponse
>
responseObserver
;
@Mock
private
InputStream
inputStream
;
@Mock
...
...
@@ -665,7 +662,7 @@ class ForwardingRemoteServiceTest {
@Nested
class
TestBuildGrpcRepresentationFile
{
private
IncomingFile
file
=
IncomingFileTestFactory
.
create
();
private
final
IncomingFile
file
=
IncomingFileTestFactory
.
create
();
@BeforeEach
void
mock
()
{
...
...
@@ -680,7 +677,7 @@ class ForwardingRemoteServiceTest {
}
@Test
void
shou
d
lReturnRepresentationMetadataRequest
()
{
void
shoul
d
ReturnRepresentationMetadataRequest
()
{
var
result
=
service
.
buildGrpcRepresentationFile
(
file
);
assertThat
(
result
).
isEqualTo
(
GrpcRouteForwardingRequestTestFactory
.
createWithRepresentationMetadata
());
...
...
@@ -704,7 +701,7 @@ class ForwardingRemoteServiceTest {
@Nested
class
TestOnInterruptedException
{
private
InterruptedException
exception
=
new
InterruptedException
();
private
final
InterruptedException
exception
=
new
InterruptedException
();
@BeforeEach
@SneakyThrows
...
...
@@ -714,7 +711,7 @@ class ForwardingRemoteServiceTest {
@Test
void
shouldThrowTechnicalException
()
{
assertThrows
(
TechnicalException
.
class
,
()
->
waitForCompletion
()
);
assertThrows
(
TechnicalException
.
class
,
TestWaitForCompletion
.
this
::
waitForCompletion
);
}
@Test
...
...
@@ -732,7 +729,7 @@ class ForwardingRemoteServiceTest {
@Nested
class
TestOnExecutionException
{
private
ExecutionException
exception
=
new
ExecutionException
(
new
Exception
());
private
final
ExecutionException
exception
=
new
ExecutionException
(
new
Exception
());
@BeforeEach
@SneakyThrows
...
...
@@ -742,14 +739,14 @@ class ForwardingRemoteServiceTest {
@Test
void
shouldThrowTechnicalException
()
{
assertThrows
(
TechnicalException
.
class
,
()
->
waitForCompletion
()
);
assertThrows
(
TechnicalException
.
class
,
TestWaitForCompletion
.
this
::
waitForCompletion
);
}
}
@Nested
class
TestOnTimeoutException
{
private
TimeoutException
exception
=
new
TimeoutException
();
private
final
TimeoutException
exception
=
new
TimeoutException
();
@BeforeEach
@SneakyThrows
...
...
@@ -759,7 +756,7 @@ class ForwardingRemoteServiceTest {
@Test
void
shouldThrowTechnicalException
()
{
assertThrows
(
TechnicalException
.
class
,
()
->
waitForCompletion
()
);
assertThrows
(
TechnicalException
.
class
,
TestWaitForCompletion
.
this
::
waitForCompletion
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment