@@ -89,18 +89,18 @@ class LogreplayPrimitivesSpec extends AnyFlatSpec with BeforeAndAfterAll {
8989 WorkflowFIFOMessage (cidA, seq, FixedSizePayload ())
9090
9191 // ---------------------------------------------------------------------------
92- // ReplayLoggerImpl
92+ // ReplayLogger
9393 // ---------------------------------------------------------------------------
9494
95- " ReplayLoggerImpl .logCurrentStepWithMessage" should " append a ProcessingStep when the channel changes" in {
96- val l = new ReplayLoggerImpl ()
95+ " ReplayLogger .logCurrentStepWithMessage" should " append a ProcessingStep when the channel changes" in {
96+ val l = new ReplayLogger ()
9797 l.logCurrentStepWithMessage(0L , cidA, None )
9898 val drained = l.drainCurrentLogRecords(0L )
9999 assert(drained.toList == List (ProcessingStep (cidA, 0L )))
100100 }
101101
102102 it should " skip a same-channel call with no message" in {
103- val l = new ReplayLoggerImpl ()
103+ val l = new ReplayLogger ()
104104 l.logCurrentStepWithMessage(0L , cidA, None )
105105 l.drainCurrentLogRecords(0L ) // reset
106106 l.logCurrentStepWithMessage(1L , cidA, None ) // same channel, no message
@@ -110,7 +110,7 @@ class LogreplayPrimitivesSpec extends AnyFlatSpec with BeforeAndAfterAll {
110110 }
111111
112112 it should " append both a ProcessingStep and a MessageContent when a message is provided" in {
113- val l = new ReplayLoggerImpl ()
113+ val l = new ReplayLogger ()
114114 val m = msg(7L )
115115 l.logCurrentStepWithMessage(2L , cidA, Some (m))
116116 val drained = l.drainCurrentLogRecords(2L )
@@ -122,7 +122,7 @@ class LogreplayPrimitivesSpec extends AnyFlatSpec with BeforeAndAfterAll {
122122 // && message.isEmpty` — both conditions, not just the channel match. After a
123123 // first call sets the current channel, a *subsequent* same-channel call with
124124 // a non-empty message must still emit ProcessingStep + MessageContent.
125- val l = new ReplayLoggerImpl ()
125+ val l = new ReplayLogger ()
126126 l.logCurrentStepWithMessage(0L , cidA, None ) // sets currentChannelId = cidA
127127 l.drainCurrentLogRecords(0L ) // reset
128128 val m = msg(11L )
@@ -132,21 +132,21 @@ class LogreplayPrimitivesSpec extends AnyFlatSpec with BeforeAndAfterAll {
132132 }
133133
134134 it should " append a ProcessingStep on a channel switch even if no message is provided" in {
135- val l = new ReplayLoggerImpl ()
135+ val l = new ReplayLogger ()
136136 l.logCurrentStepWithMessage(0L , cidA, None )
137137 l.logCurrentStepWithMessage(1L , cidB, None ) // channel change → must record
138138 val drained = l.drainCurrentLogRecords(1L )
139139 assert(drained.toList == List (ProcessingStep (cidA, 0L ), ProcessingStep (cidB, 1L )))
140140 }
141141
142- " ReplayLoggerImpl .markAsReplayDestination" should
142+ " ReplayLogger .markAsReplayDestination" should
143143 " preserve exact ordering: in-flight ProcessingStep, then ReplayDestination, then synthetic trailing step" in {
144144 // ReplayLogGenerator depends on the relative position of ReplayDestination
145145 // within the record stream — replay stops at it. So a `contains` check
146146 // would silently accept a regression that duplicated ReplayDestination or
147147 // moved it after the synthetic trailing ProcessingStep emitted by drain.
148148 // Pin the full sequence instead.
149- val l = new ReplayLoggerImpl ()
149+ val l = new ReplayLogger ()
150150 val ecm = EmbeddedControlMessageIdentity (" checkpoint-1" )
151151 l.logCurrentStepWithMessage(0L , cidA, None ) // sets currentChannelId, appends ProcessingStep
152152 l.markAsReplayDestination(ecm)
@@ -164,8 +164,8 @@ class LogreplayPrimitivesSpec extends AnyFlatSpec with BeforeAndAfterAll {
164164 )
165165 }
166166
167- " ReplayLoggerImpl .drainCurrentLogRecords" should " clear the buffer between drains" in {
168- val l = new ReplayLoggerImpl ()
167+ " ReplayLogger .drainCurrentLogRecords" should " clear the buffer between drains" in {
168+ val l = new ReplayLogger ()
169169 l.logCurrentStepWithMessage(0L , cidA, None )
170170 val first = l.drainCurrentLogRecords(0L )
171171 val second = l.drainCurrentLogRecords(0L )
@@ -174,7 +174,7 @@ class LogreplayPrimitivesSpec extends AnyFlatSpec with BeforeAndAfterAll {
174174 }
175175
176176 it should " append a synthetic ProcessingStep when the requested step differs from lastStep" in {
177- val l = new ReplayLoggerImpl ()
177+ val l = new ReplayLogger ()
178178 l.logCurrentStepWithMessage(0L , cidA, None )
179179 val drained = l.drainCurrentLogRecords(5L )
180180 // Two records: the original ProcessingStep at step 0 and the synthetic one at step 5.
0 commit comments