Package com.fayupable.logged.test
package com.fayupable.logged.test
-
ClassDescriptionAn
IClientInfoPortthat always returns a fixed, test-controlled caller identity, instead of resolving one from Spring Security or the current HTTP request.AnInvocationEventEmitterthat records every event it receives in memory instead of publishing it anywhere, so a test can assert on what@Loggedactually observed about a call.AMetricsRecorderthat records every call it is asked to record in memory as aRecordedMetric, instead of forwarding it to a real metrics backend such as Micrometer.A single call recorded byInMemoryMetricsRecorder, mirroring the parameters ofMetricsRecorder.record(java.lang.String, java.lang.String, long, boolean, java.lang.String)so a test can assert on exactly what was reported.