Skip to content
Snippets Groups Projects
Commit e2fc4d2c authored by Jan Zickermann's avatar Jan Zickermann
Browse files

#4 OZG-7112 Cleanup unused SneakyThrows

parent 5244f88d
Branches
Tags
1 merge request!4Resolve "Senden von Nachrichten vorbereiten"
......@@ -28,7 +28,7 @@ curl -v --output auth_response.json \
- <small>Mit einem ungültigen `resource`-Parameter kommt ein `invalid_target`-Fehler bei der Token-Erstellung.</small>
- <small>Ohne `resource`-Parameter (d.h. ohne `aud`-Claim) kommt `401 Unauthorized` von der Postfach-Facade.</small>
- <small>Ohne `default`-Scope kommt ein `invalid_target`-Fehler bei der Token-Erstellung</small>
- <small>Ohne `access_urn:dataport:osi:sh:stage:ozgkopfstelle` kommt ein `Internal Server Error 500` von der Postfach-Facade.</small>
- <small>Ohne `access_urn:dataport:osi:sh:stage:ozgkopfstelle`-Scope kommt ein `Internal Server Error 500` von der Postfach-Facade.</small>
......@@ -21,7 +21,6 @@ import org.testcontainers.utility.DockerImageName;
import de.ozgcloud.nachrichten.postfach.osiv2.factory.JwtFactory;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.log4j.Log4j2;
@Log4j2
......@@ -40,7 +39,6 @@ public class OsiMockServerExtension implements BeforeAllCallback, AfterAllCallba
private final MockServerContainer postfachFacadeMockContainer = new MockServerContainer(MOCK_SERVER_IMAGE)
.withLogConsumer(this::logContainerOutput);
private void logContainerOutput(OutputFrame outputFrame) {
var line = outputFrame.getUtf8String().stripTrailing();
if (outputFrame.getType() == OutputFrame.OutputType.STDERR) {
......@@ -71,7 +69,6 @@ public class OsiMockServerExtension implements BeforeAllCallback, AfterAllCallba
postfachFacadeMockContainer.stop();
}
@SneakyThrows
private void setupPostfachFacadeMock() {
postfachFacadeMockContainer.start();
postfachFacadeMockClient = new MockServerClient(
......@@ -80,7 +77,6 @@ public class OsiMockServerExtension implements BeforeAllCallback, AfterAllCallba
);
}
@SneakyThrows
private void setupServiceKontoMock() {
serviceKontoMockContainer.start();
serviceKontoMockClient = new MockServerClient(
......@@ -101,7 +97,6 @@ public class OsiMockServerExtension implements BeforeAllCallback, AfterAllCallba
return "http://" + mockClient.remoteAddress().getHostName() + ":" + mockClient.remoteAddress().getPort();
}
@SneakyThrows
@Override
public void beforeEach(ExtensionContext context) {
serviceKontoMockClient
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment