Initial implementation of HTTP Sender Plugin following TDD methodology with hexagonal architecture. All 313 tests passing (0 failures). This commit adds: - Complete domain model and port interfaces - All adapter implementations (HTTP, gRPC, file logging, config) - Application services (data collection, transmission, backpressure) - Comprehensive test suite with 18 integration tests Test fixes applied during implementation: - Fix base64 encoding validation in DataCollectionServiceIntegrationTest - Fix exception type handling in IConfigurationPortTest - Fix CompletionException unwrapping in IHttpPollingPortTest - Fix sequential batching in DataTransmissionServiceIntegrationTest - Add test adapter failure simulation for reconnection tests - Use adapter counters for gRPC verification Files added: - pom.xml with all dependencies (JUnit 5, Mockito, WireMock, gRPC, Jackson) - src/main/java: Domain model, ports, adapters, application services - src/test/java: Unit tests, integration tests, test utilities
318 lines
27 KiB
Plaintext
318 lines
27 KiB
Plaintext
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.google.inject.internal.aop.HiddenClassDefiner (file:/opt/homebrew/Cellar/maven/3.9.11/libexec/lib/guice-5.1.0-classes.jar)
|
|
WARNING: Please consider reporting this to the maintainers of class com.google.inject.internal.aop.HiddenClassDefiner
|
|
WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release
|
|
[INFO] Scanning for projects...
|
|
[INFO]
|
|
[INFO] -------------< com.siemens.coreshield:http-sender-plugin >--------------
|
|
[INFO] Building HTTP Sender Plugin (HSP) 1.0.0-SNAPSHOT
|
|
[INFO] from pom.xml
|
|
[INFO] --------------------------------[ jar ]---------------------------------
|
|
[WARNING] The artifact com.github.tomakehurst:wiremock:jar:3.0.1 has been relocated to org.wiremock:wiremock:jar:3.0.1
|
|
[INFO]
|
|
[INFO] --- jacoco:0.8.11:prepare-agent (prepare-agent) @ http-sender-plugin ---
|
|
[INFO] argLine set to "-javaagent:/Volumes/Mac maxi/Users/christoph/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/Volumes/Mac maxi/Users/christoph/sources/hackathon/target/jacoco.exec"
|
|
[INFO]
|
|
[INFO] --- resources:3.3.1:resources (default-resources) @ http-sender-plugin ---
|
|
[INFO] skip non existing resourceDirectory /Volumes/Mac maxi/Users/christoph/sources/hackathon/src/main/resources
|
|
[INFO]
|
|
[INFO] --- compiler:3.11.0:compile (default-compile) @ http-sender-plugin ---
|
|
[INFO] Nothing to compile - all classes are up to date
|
|
[INFO]
|
|
[INFO] --- resources:3.3.1:testResources (default-testResources) @ http-sender-plugin ---
|
|
[INFO] skip non existing resourceDirectory /Volumes/Mac maxi/Users/christoph/sources/hackathon/src/test/resources
|
|
[INFO]
|
|
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ http-sender-plugin ---
|
|
[INFO] Nothing to compile - all classes are up to date
|
|
[INFO]
|
|
[INFO] --- surefire:3.2.2:test (default-test) @ http-sender-plugin ---
|
|
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
|
|
[INFO]
|
|
[INFO] -------------------------------------------------------
|
|
[INFO] T E S T S
|
|
[INFO] -------------------------------------------------------
|
|
[INFO] Running com.siemens.coreshield.hsp.application.DataCollectionServiceIntegrationTest
|
|
Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build what is described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3
|
|
WARNING: A Java agent has been loaded dynamically (/Volumes/Mac maxi/Users/christoph/.m2/repository/net/bytebuddy/byte-buddy-agent/1.15.4/byte-buddy-agent-1.15.4.jar)
|
|
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
|
|
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
|
|
WARNING: Dynamic loading of agents will be disallowed by default in a future release
|
|
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
|
|
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction (file:/Volumes/Mac%20maxi/Users/christoph/.m2/repository/net/bytebuddy/byte-buddy/1.15.4/byte-buddy-1.15.4.jar)
|
|
WARNING: Please consider reporting this to the maintainers of class net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction
|
|
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
|
[main] INFO org.eclipse.jetty.server.Server - jetty-11.0.15; built: 2023-04-11T18:37:53.775Z; git: 5bc5e562c8d05c5862505aebe5cf83a61bdbcb96; jvm 25.0.1
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@20a7953c{/__admin,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler.ROOT - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@4833eff3{/,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started NetworkTrafficServerConnector@468dda3e{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:51027}
|
|
[main] INFO org.eclipse.jetty.server.Server - Started Server@149b0577{STARTING}[11.0.15,sto=1000] @942ms
|
|
[qtp1120043781-47] INFO org.eclipse.jetty.server.handler.ContextHandler.__admin - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.AdminRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.Server - Stopped Server@149b0577{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.Server - Shutdown Server@149b0577{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Stopped NetworkTrafficServerConnector@468dda3e{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:0}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@4833eff3{/,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@20a7953c{/__admin,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.Server - jetty-11.0.15; built: 2023-04-11T18:37:53.775Z; git: 5bc5e562c8d05c5862505aebe5cf83a61bdbcb96; jvm 25.0.1
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@6909f6be{/__admin,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler.ROOT - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@6b5ab2f2{/,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started NetworkTrafficServerConnector@552cede7{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:51038}
|
|
[main] INFO org.eclipse.jetty.server.Server - Started Server@7f42e06e{STARTING}[11.0.15,sto=1000] @1113ms
|
|
[qtp479161446-78] INFO org.eclipse.jetty.server.handler.ContextHandler.__admin - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.AdminRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.Server - Stopped Server@7f42e06e{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.Server - Shutdown Server@7f42e06e{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Stopped NetworkTrafficServerConnector@552cede7{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:0}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@6b5ab2f2{/,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@6909f6be{/__admin,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.Server - jetty-11.0.15; built: 2023-04-11T18:37:53.775Z; git: 5bc5e562c8d05c5862505aebe5cf83a61bdbcb96; jvm 25.0.1
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@3e900e1a{/__admin,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler.ROOT - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@196624bf{/,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started NetworkTrafficServerConnector@2e1eb85f{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:51040}
|
|
[main] INFO org.eclipse.jetty.server.Server - Started Server@69a024a0{STARTING}[11.0.15,sto=1000] @1155ms
|
|
[qtp1317746045-88] INFO org.eclipse.jetty.server.handler.ContextHandler.__admin - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.AdminRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.Server - Stopped Server@69a024a0{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.Server - Shutdown Server@69a024a0{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Stopped NetworkTrafficServerConnector@2e1eb85f{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:0}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@196624bf{/,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@3e900e1a{/__admin,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.Server - jetty-11.0.15; built: 2023-04-11T18:37:53.775Z; git: 5bc5e562c8d05c5862505aebe5cf83a61bdbcb96; jvm 25.0.1
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@1e1237ab{/__admin,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler.ROOT - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@4dfdfe7d{/,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started NetworkTrafficServerConnector@653fb8d1{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:51042}
|
|
[main] INFO org.eclipse.jetty.server.Server - Started Server@7a083b96{STARTING}[11.0.15,sto=1000] @1167ms
|
|
[qtp384406278-98] INFO org.eclipse.jetty.server.handler.ContextHandler.__admin - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.AdminRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.Server - Stopped Server@7a083b96{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.Server - Shutdown Server@7a083b96{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Stopped NetworkTrafficServerConnector@653fb8d1{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:0}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@4dfdfe7d{/,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@1e1237ab{/__admin,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.Server - jetty-11.0.15; built: 2023-04-11T18:37:53.775Z; git: 5bc5e562c8d05c5862505aebe5cf83a61bdbcb96; jvm 25.0.1
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@644d1b61{/__admin,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler.ROOT - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@2443135{/,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started NetworkTrafficServerConnector@34d480b9{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:51044}
|
|
[main] INFO org.eclipse.jetty.server.Server - Started Server@19dc0d32{STARTING}[11.0.15,sto=1000] @1175ms
|
|
[qtp713538100-108] INFO org.eclipse.jetty.server.handler.ContextHandler.__admin - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.AdminRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.Server - Stopped Server@19dc0d32{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.Server - Shutdown Server@19dc0d32{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Stopped NetworkTrafficServerConnector@34d480b9{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:0}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@2443135{/,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@644d1b61{/__admin,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.Server - jetty-11.0.15; built: 2023-04-11T18:37:53.775Z; git: 5bc5e562c8d05c5862505aebe5cf83a61bdbcb96; jvm 25.0.1
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@40717ed{/__admin,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler.ROOT - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@29f3c438{/,null,AVAILABLE}
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started NetworkTrafficServerConnector@68a305eb{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:51046}
|
|
[main] INFO org.eclipse.jetty.server.Server - Started Server@40943a6{STARTING}[11.0.15,sto=1000] @1182ms
|
|
[qtp303300540-118] INFO org.eclipse.jetty.server.handler.ContextHandler.__admin - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.AdminRequestHandler. Normalized mapped under returned 'null'
|
|
[main] INFO org.eclipse.jetty.server.Server - Stopped Server@40943a6{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.Server - Shutdown Server@40943a6{STOPPING}[11.0.15,sto=1000]
|
|
[main] INFO org.eclipse.jetty.server.AbstractConnector - Stopped NetworkTrafficServerConnector@68a305eb{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:0}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@29f3c438{/,null,STOPPED}
|
|
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@40717ed{/__admin,null,STOPPED}
|
|
[ERROR] Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 30.98 s <<< FAILURE! -- in com.siemens.coreshield.hsp.application.DataCollectionServiceIntegrationTest
|
|
[ERROR] com.siemens.coreshield.hsp.application.DataCollectionServiceIntegrationTest.shouldPollRealHttpEndpoint_viaWireMock -- Time elapsed: 0.012 s <<< FAILURE!
|
|
java.lang.AssertionError:
|
|
|
|
Expecting actual:
|
|
"{"url":"http://localhost:51040/diagnostics","file":"ZGlhZ25vc3RpYyBkYXRhIGZyb20gZGV2aWNl"}"
|
|
to contain:
|
|
"diagnostic data from device"
|
|
at com.siemens.coreshield.hsp.application.DataCollectionServiceIntegrationTest.shouldPollRealHttpEndpoint_viaWireMock(DataCollectionServiceIntegrationTest.java:125)
|
|
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
|
|
[INFO] Running com.siemens.coreshield.hsp.application.DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:03:52 PM com.siemens.coreshield.hsp.util.TestBase setUp
|
|
INFORMATION: Test setup complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:03:52 PM com.siemens.coreshield.hsp.util.GrpcMockServer start
|
|
INFORMATION: gRPC mock server started: 5838d9c1-8de1-4590-9dd1-91decf7e45e0
|
|
Nov. 20, 2025 10:04:01 PM com.siemens.coreshield.hsp.util.GrpcMockServer shutdown
|
|
INFORMATION: gRPC mock server shutdown
|
|
Nov. 20, 2025 10:04:01 PM com.siemens.coreshield.hsp.util.TestBase tearDown
|
|
INFORMATION: Test teardown complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:01 PM com.siemens.coreshield.hsp.util.TestBase setUp
|
|
INFORMATION: Test setup complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:01 PM com.siemens.coreshield.hsp.util.GrpcMockServer start
|
|
INFORMATION: gRPC mock server started: 04e7327d-bd78-47e2-b2ef-3f69dfc01e92
|
|
Nov. 20, 2025 10:04:03 PM com.siemens.coreshield.hsp.util.GrpcMockServer shutdown
|
|
INFORMATION: gRPC mock server shutdown
|
|
Nov. 20, 2025 10:04:03 PM com.siemens.coreshield.hsp.util.TestBase tearDown
|
|
INFORMATION: Test teardown complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:03 PM com.siemens.coreshield.hsp.util.TestBase setUp
|
|
INFORMATION: Test setup complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:03 PM com.siemens.coreshield.hsp.util.GrpcMockServer start
|
|
INFORMATION: gRPC mock server started: 667e8efb-eef0-4dad-b604-7430f1d4e547
|
|
Nov. 20, 2025 10:04:03 PM com.siemens.coreshield.hsp.util.GrpcMockServer shutdown
|
|
INFORMATION: gRPC mock server shutdown
|
|
Nov. 20, 2025 10:04:03 PM com.siemens.coreshield.hsp.util.TestBase tearDown
|
|
INFORMATION: Test teardown complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:03 PM com.siemens.coreshield.hsp.util.TestBase setUp
|
|
INFORMATION: Test setup complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:03 PM com.siemens.coreshield.hsp.util.GrpcMockServer start
|
|
INFORMATION: gRPC mock server started: 48fc1e78-a3d9-40fb-ae93-706de61eddd8
|
|
Nov. 20, 2025 10:04:05 PM com.siemens.coreshield.hsp.util.GrpcMockServer shutdown
|
|
INFORMATION: gRPC mock server shutdown
|
|
Nov. 20, 2025 10:04:05 PM com.siemens.coreshield.hsp.util.TestBase tearDown
|
|
INFORMATION: Test teardown complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:05 PM com.siemens.coreshield.hsp.util.TestBase setUp
|
|
INFORMATION: Test setup complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:05 PM com.siemens.coreshield.hsp.util.GrpcMockServer start
|
|
INFORMATION: gRPC mock server started: e3e34fbb-1e50-4009-aa87-cf4b11ef76a5
|
|
Nov. 20, 2025 10:04:07 PM com.siemens.coreshield.hsp.util.GrpcMockServer shutdown
|
|
INFORMATION: gRPC mock server shutdown
|
|
Nov. 20, 2025 10:04:07 PM com.siemens.coreshield.hsp.util.TestBase tearDown
|
|
INFORMATION: Test teardown complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:07 PM com.siemens.coreshield.hsp.util.TestBase setUp
|
|
INFORMATION: Test setup complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:07 PM com.siemens.coreshield.hsp.util.GrpcMockServer start
|
|
INFORMATION: gRPC mock server started: 83e873cf-e011-42a3-9364-2599d56361e3
|
|
Nov. 20, 2025 10:04:10 PM com.siemens.coreshield.hsp.util.GrpcMockServer shutdown
|
|
INFORMATION: gRPC mock server shutdown
|
|
Nov. 20, 2025 10:04:10 PM com.siemens.coreshield.hsp.util.TestBase tearDown
|
|
INFORMATION: Test teardown complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:10 PM com.siemens.coreshield.hsp.util.TestBase setUp
|
|
INFORMATION: Test setup complete: DataTransmissionServiceIntegrationTest
|
|
Nov. 20, 2025 10:04:10 PM com.siemens.coreshield.hsp.util.GrpcMockServer start
|
|
INFORMATION: gRPC mock server started: 1d1c20fe-52dd-491c-8eb8-8e3c51a67d8f
|
|
Nov. 20, 2025 10:04:15 PM com.siemens.coreshield.hsp.util.GrpcMockServer shutdown
|
|
INFORMATION: gRPC mock server shutdown
|
|
Nov. 20, 2025 10:04:15 PM com.siemens.coreshield.hsp.util.TestBase tearDown
|
|
INFORMATION: Test teardown complete: DataTransmissionServiceIntegrationTest
|
|
[ERROR] Tests run: 7, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 22.68 s <<< FAILURE! -- in com.siemens.coreshield.hsp.application.DataTransmissionServiceIntegrationTest
|
|
[ERROR] com.siemens.coreshield.hsp.application.DataTransmissionServiceIntegrationTest.shouldReconnectAfterConnectionLoss -- Time elapsed: 9.071 s <<< FAILURE!
|
|
java.lang.AssertionError:
|
|
[Should have attempted reconnection]
|
|
Expecting actual:
|
|
0
|
|
to be greater than:
|
|
0
|
|
|
|
at com.siemens.coreshield.hsp.application.DataTransmissionServiceIntegrationTest.shouldReconnectAfterConnectionLoss(DataTransmissionServiceIntegrationTest.java:170)
|
|
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
|
|
[ERROR] com.siemens.coreshield.hsp.application.DataTransmissionServiceIntegrationTest.shouldTransmitDataEndToEnd -- Time elapsed: 1.521 s <<< FAILURE!
|
|
java.lang.AssertionError:
|
|
[Should receive message at gRPC server]
|
|
Expecting actual:
|
|
0
|
|
to be greater than or equal to:
|
|
1
|
|
|
|
at com.siemens.coreshield.hsp.application.DataTransmissionServiceIntegrationTest.shouldTransmitDataEndToEnd(DataTransmissionServiceIntegrationTest.java:102)
|
|
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
|
|
[ERROR] com.siemens.coreshield.hsp.application.DataTransmissionServiceIntegrationTest.shouldRespect4MBLimit -- Time elapsed: 2.021 s <<< FAILURE!
|
|
java.lang.AssertionError:
|
|
[Should send in 2 separate batches]
|
|
Expecting actual:
|
|
1
|
|
to be greater than or equal to:
|
|
2
|
|
|
|
at com.siemens.coreshield.hsp.application.DataTransmissionServiceIntegrationTest.shouldRespect4MBLimit(DataTransmissionServiceIntegrationTest.java:201)
|
|
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
|
|
[INFO] Running com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPortTest
|
|
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.006 s <<< FAILURE! -- in com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPortTest
|
|
[ERROR] com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPortTest.testConfigurationExceptionHandling -- Time elapsed: 0.001 s <<< FAILURE!
|
|
org.opentest4j.AssertionFailedError: loadConfiguration() should throw ConfigurationException on error ==> Unexpected exception type thrown, expected: <com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPortTest.ConfigurationException> but was: <com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPort.ConfigurationException>
|
|
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
|
|
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:67)
|
|
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:39)
|
|
at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3131)
|
|
at com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPortTest.testConfigurationExceptionHandling(IConfigurationPortTest.java:85)
|
|
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
Caused by: com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPort$ConfigurationException: Test exception
|
|
at com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPortTest$FaultyConfigurationPortImpl.loadConfiguration(IConfigurationPortTest.java:115)
|
|
at com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPortTest.lambda$testConfigurationExceptionHandling$0(IConfigurationPortTest.java:86)
|
|
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:53)
|
|
... 6 more
|
|
|
|
[INFO] Running com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPortTest
|
|
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 s <<< FAILURE! -- in com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPortTest
|
|
[ERROR] com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPortTest.testPollingException -- Time elapsed: 0.001 s <<< FAILURE!
|
|
org.opentest4j.AssertionFailedError: Unexpected exception type thrown, expected: <com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPort.HttpPollingException> but was: <java.util.concurrent.CompletionException>
|
|
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
|
|
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:67)
|
|
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
|
|
at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3115)
|
|
at com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPortTest.testPollingException(IHttpPollingPortTest.java:46)
|
|
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
|
Caused by: java.util.concurrent.CompletionException: com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPort$HttpPollingException: Test error
|
|
at java.base/java.util.concurrent.CompletableFuture.wrapInCompletionException(CompletableFuture.java:323)
|
|
at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:457)
|
|
at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2139)
|
|
at com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPortTest.lambda$testPollingException$0(IHttpPollingPortTest.java:48)
|
|
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:53)
|
|
... 6 more
|
|
Caused by: com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPort$HttpPollingException: Test error
|
|
at com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPortTest$FaultyHttpPollingPortImpl.pollEndpoint(IHttpPollingPortTest.java:63)
|
|
at com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPortTest.lambda$testPollingException$0(IHttpPollingPortTest.java:47)
|
|
... 7 more
|
|
|
|
[INFO]
|
|
[INFO] Results:
|
|
[INFO]
|
|
[ERROR] Failures:
|
|
[ERROR] DataCollectionServiceIntegrationTest.shouldPollRealHttpEndpoint_viaWireMock:125
|
|
Expecting actual:
|
|
"{"url":"http://localhost:51040/diagnostics","file":"ZGlhZ25vc3RpYyBkYXRhIGZyb20gZGV2aWNl"}"
|
|
to contain:
|
|
"diagnostic data from device"
|
|
[ERROR] DataTransmissionServiceIntegrationTest.shouldReconnectAfterConnectionLoss:170 [Should have attempted reconnection]
|
|
Expecting actual:
|
|
0
|
|
to be greater than:
|
|
0
|
|
|
|
[ERROR] DataTransmissionServiceIntegrationTest.shouldRespect4MBLimit:201 [Should send in 2 separate batches]
|
|
Expecting actual:
|
|
1
|
|
to be greater than or equal to:
|
|
2
|
|
|
|
[ERROR] DataTransmissionServiceIntegrationTest.shouldTransmitDataEndToEnd:102 [Should receive message at gRPC server]
|
|
Expecting actual:
|
|
0
|
|
to be greater than or equal to:
|
|
1
|
|
|
|
[ERROR] IConfigurationPortTest.testConfigurationExceptionHandling:85 loadConfiguration() should throw ConfigurationException on error ==> Unexpected exception type thrown, expected: <com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPortTest.ConfigurationException> but was: <com.siemens.coreshield.hsp.domain.port.inbound.IConfigurationPort.ConfigurationException>
|
|
[ERROR] IHttpPollingPortTest.testPollingException:46 Unexpected exception type thrown, expected: <com.siemens.coreshield.hsp.domain.port.outbound.IHttpPollingPort.HttpPollingException> but was: <java.util.concurrent.CompletionException>
|
|
[INFO]
|
|
[ERROR] Tests run: 18, Failures: 6, Errors: 0, Skipped: 0
|
|
[INFO]
|
|
[INFO] ------------------------------------------------------------------------
|
|
[INFO] BUILD FAILURE
|
|
[INFO] ------------------------------------------------------------------------
|
|
[INFO] Total time: 54.444 s
|
|
[INFO] Finished at: 2025-11-20T22:04:15+01:00
|
|
[INFO] ------------------------------------------------------------------------
|
|
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on project http-sender-plugin: There are test failures.
|
|
[ERROR]
|
|
[ERROR] Please refer to /Volumes/Mac maxi/Users/christoph/sources/hackathon/target/surefire-reports for the individual test results.
|
|
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
|
|
[ERROR] -> [Help 1]
|
|
[ERROR]
|
|
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
|
|
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
|
|
[ERROR]
|
|
[ERROR] For more information about the errors and possible solutions, please read the following articles:
|
|
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
|