Skip to content

Commit

Permalink
🔧 rename ZnEventToLogRecordControllerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mreyes committed Jul 1, 2024
1 parent 31b27ae commit 64c1ca7
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Class {
#name : #ZnEventToLogRecordControllerTest,
#name : #ZnEventToLogRecordAdapterTest,
#superclass : #TestCase,
#instVars : [
'loggingAsserter',
Expand All @@ -9,7 +9,7 @@ Class {
}

{ #category : #private }
ZnEventToLogRecordControllerTest >> addTimestampRegexTo: aLogEntryCollection [
ZnEventToLogRecordAdapterTest >> addTimestampRegexTo: aLogEntryCollection [

^ aLogEntryCollection collect: [ :regexExpression |
'\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}(\.\d+)?(\+|-)(\d+\:\d+) <1s>' expandMacrosWith:
Expand All @@ -18,7 +18,7 @@ ZnEventToLogRecordControllerTest >> addTimestampRegexTo: aLogEntryCollection [
]

{ #category : #private }
ZnEventToLogRecordControllerTest >> runMemoryLoggerDuring: aBlock assertingLogRecordsMatchRegexes: expectedLogEntries [
ZnEventToLogRecordAdapterTest >> runMemoryLoggerDuring: aBlock assertingLogRecordsMatchRegexes: expectedLogEntries [

| expectedLogEntriesWithTimestamp |

Expand All @@ -30,15 +30,15 @@ ZnEventToLogRecordControllerTest >> runMemoryLoggerDuring: aBlock assertingLogRe
]

{ #category : #running }
ZnEventToLogRecordControllerTest >> setUp [
ZnEventToLogRecordAdapterTest >> setUp [

super setUp.
loggingAsserter := LoggingAsserter on: self.
zincEventToLogRecordAdapter := ZnEventToLogRecordAdapter new
]

{ #category : #running }
ZnEventToLogRecordControllerTest >> tearDown [
ZnEventToLogRecordAdapterTest >> tearDown [

zincEventToLogRecordAdapter stopListeners.
loggingAsserter stopLoggers.
Expand All @@ -47,7 +47,7 @@ ZnEventToLogRecordControllerTest >> tearDown [
]

{ #category : #running }
ZnEventToLogRecordControllerTest >> testLogsOfIncomingGetRequest [
ZnEventToLogRecordAdapterTest >> testLogsOfIncomingGetRequest [

zincEventToLogRecordAdapter
logIncomingRequests: true;
Expand Down Expand Up @@ -75,7 +75,7 @@ ZnEventToLogRecordControllerTest >> testLogsOfIncomingGetRequest [
]
{ #category : #running }
ZnEventToLogRecordControllerTest >> testLogsOfIncomingPostRequest [
ZnEventToLogRecordAdapterTest >> testLogsOfIncomingPostRequest [
zincEventToLogRecordAdapter
logIncomingRequests: true;
Expand Down Expand Up @@ -103,7 +103,7 @@ ZnEventToLogRecordControllerTest >> testLogsOfIncomingPostRequest [
]
{ #category : #running }
ZnEventToLogRecordControllerTest >> testLogsOfOutgoingGetRequest [
ZnEventToLogRecordAdapterTest >> testLogsOfOutgoingGetRequest [
zincEventToLogRecordAdapter
logOutgoingRequests: true;
Expand All @@ -130,7 +130,7 @@ ZnEventToLogRecordControllerTest >> testLogsOfOutgoingGetRequest [
]
{ #category : #running }
ZnEventToLogRecordControllerTest >> testLogsOfOutgoingPostRequest [
ZnEventToLogRecordAdapterTest >> testLogsOfOutgoingPostRequest [
zincEventToLogRecordAdapter
logOutgoingRequests: true;
Expand All @@ -156,6 +156,6 @@ ZnEventToLogRecordControllerTest >> testLogsOfOutgoingPostRequest [
]
{ #category : #enumerating }
ZnEventToLogRecordControllerTest >> withServerDo: block [
ZnEventToLogRecordAdapterTest >> withServerDo: block [
ZnServer withOSAssignedPortDo: block
]

0 comments on commit 64c1ca7

Please sign in to comment.