Skip to content

Commit

Permalink
CSEN-2 remove println from AccountEventsRetrievingTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomskikh committed Aug 29, 2018
1 parent 41c9af3 commit 000c567
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/it/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
log4j.rootCategory = WARN, default

# Define the console appender
log4j.appender.default = org.apache.log4j.ConsoleAppender
log4j.appender.default.layout = org.apache.log4j.PatternLayout
log4j.appender.default.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ class AccountEventsRetrievingTest
it should "retrieve AccountCreateEvent with status 'Completed' from Kafka records" in {
val afterCreation = OffsetDateTime.now()
val actualAccountCreateEvents = records.map(RecordToEventDeserializer.deserializeRecord).filter {
case AccountCreateEvent(Some(Constants.Statuses.COMPLETED), `accountId`, Some(dateTime), domain) =>
println(domain)
case AccountCreateEvent(Some(Constants.Statuses.COMPLETED), `accountId`, Some(dateTime), _) =>
dateTime.isAfter(beforeCreation) && dateTime.isBefore(afterCreation)
case _ => false
}
Expand Down

0 comments on commit 000c567

Please sign in to comment.