diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/groovy/org/onap/cps/temporal/controller/event/listener/kafka/DataUpdatedEventListenerSpec.groovy | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/groovy/org/onap/cps/temporal/controller/event/listener/kafka/DataUpdatedEventListenerSpec.groovy b/src/test/groovy/org/onap/cps/temporal/controller/event/listener/kafka/DataUpdatedEventListenerSpec.groovy index d3a407c..35ed977 100644 --- a/src/test/groovy/org/onap/cps/temporal/controller/event/listener/kafka/DataUpdatedEventListenerSpec.groovy +++ b/src/test/groovy/org/onap/cps/temporal/controller/event/listener/kafka/DataUpdatedEventListenerSpec.groovy @@ -78,6 +78,7 @@ class DataUpdatedEventListenerSpec extends Specification { objectUnderTest.consume(invalidEvent) then: 'an exception is thrown with 4 invalid fields' def e = thrown(InvalidEventEnvelopException) + e.getCpsDataUpdatedEvent() == invalidEvent e.getInvalidFields().size() == 4 e.getInvalidFields().contains( new InvalidEventEnvelopException.InvalidField( @@ -104,6 +105,7 @@ class DataUpdatedEventListenerSpec extends Specification { objectUnderTest.consume(invalidEvent) then: 'an exception is thrown with 2 invalid fields' def e = thrown(InvalidEventEnvelopException) + e.getCpsDataUpdatedEvent() == invalidEvent e.getInvalidFields().size() == 2 e.getInvalidFields().contains( new InvalidEventEnvelopException.InvalidField( |