[ 
https://issues.apache.org/jira/browse/ARIES-2049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Bischof updated ARIES-2049:
----------------------------------
    Component/s: Typed Event
    Description: 
Delivering a typed and untypedEvent that is `null`  should throw an exception
{code:java}
@Test
 public void test_deliveruntyped_map_null_should_throws_exception() {
assertThatNullPointerException().isThrownBy(() -> {
 typedEventBus.deliverUntyped("a", null);
 });
 }


@Test
public void test_deliver_2_event_null_should_throws_exception() {               
assertThatNullPointerException().isThrownBy(() -> {
                        typedEventBus.deliver("a", null);
});
}{code}
 

  was:
{code:java}
@Test
 public void test_deliveruntyped_map_null_should_throws_exception() {
assertThatNullPointerException().isThrownBy(() -> {
 typedEventBus.deliverUntyped("a", null);
 });
 }


@Test
public void test_deliver_2_event_null_should_throws_exception() {               
assertThatNullPointerException().isThrownBy(() -> {
                        typedEventBus.deliver("a", null);
});
}{code}
 

        Summary: [TypedEvent] Event validation  (was: [T)

> [TypedEvent] Event validation
> -----------------------------
>
>                 Key: ARIES-2049
>                 URL: https://issues.apache.org/jira/browse/ARIES-2049
>             Project: Aries
>          Issue Type: TCK Challenge
>          Components: Typed Event
>            Reporter: Stefan Bischof
>            Priority: Major
>
> Delivering a typed and untypedEvent that is `null`  should throw an exception
> {code:java}
> @Test
>  public void test_deliveruntyped_map_null_should_throws_exception() {
> assertThatNullPointerException().isThrownBy(() -> {
>  typedEventBus.deliverUntyped("a", null);
>  });
>  }
> @Test
> public void test_deliver_2_event_null_should_throws_exception() {             
> assertThatNullPointerException().isThrownBy(() -> {
>                       typedEventBus.deliver("a", null);
> });
> }{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to