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

Stefan Bischof updated ARIES-2048:
----------------------------------
    Description: 
Hi,

1. a  Componet `Typed Event` is missing in Jira.

2. the Method `deliver` and `deliveruntyped` of the EventBus should validate 
the topic

Spec: 157.3.1 Event Topics

This test tests expect an IllArgExt.
{code:java}
        @ParameterizedTest
        @ValueSource(strings = {
                        "*", "%", "/", "//", "a//b", "//b", "a//", "a/", 
"a/*/*/b",
                        "a/b/c/", "a/*/*", " /*", " ", "a/ /b", " / ", "Bär"
        })
        public void test_deliver_2_topic_invalid_should_throws_exception(
                        String invalidTopic) {
                assertThatIllegalArgumentException().isThrownBy(() -> {
                        typedEventBus.deliver(invalidTopic, dto);
                });
        }
{code}
The topic should also not be `null`

This should work file:
{code:java}
        @ParameterizedTest
        @ValueSource(strings = {
                        "a", "A", "a/b", "A/B", "A/b/C", "a/b/c", "foO/BaR", 
"$", "$/$a$/$"
                        
"$/a/A/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/1/2/3/4/5/6/7/8/9/0/-/_",
                        "1", "2/3", "4/a/5", "a/_", "-/-", "_/_", "-", "_"
        })
        public void test_deliver_2_topic_valid_should_not_throws_exception(
                        String validTopic) {
                typedEventBus.deliver(validTopic, dto);
        }
{code}
 

  was:
Hi,

1. a  Componet `Typed Event` is missing in Jira.

2. the Method `deliver` and `deliveruntyped` of the EventBus should validate 
the topic

Spec: 157.3.1 Event Topics


This test tests expect an IllArgExt.
{code:java}
        @ParameterizedTest
        @ValueSource(strings = {
                        "*", "%", "/", "//", "a//b", "//b", "a//", "a/", 
"a/*/*/b",
                        "a/b/c/", "a/*/*", " /*", " ", "a/ /b", " / "
        })
        public void test_deliver_2_topic_invalid_should_throws_exception(
                        String invalidTopic) {
                assertThatIllegalArgumentException().isThrownBy(() -> {
                        typedEventBus.deliver(invalidTopic, dto);
                });
        }
{code}
The topic should also not be `null`

This should work file:
{code:java}
        @ParameterizedTest
        @ValueSource(strings = {
                        "a", "A", "a/b", "A/B", "A/b/C", "a/b/c", "foO/BaR",
                        
"a/A/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/ä/ü/ö/ß/é/1/2/3/4/5/6/7/8/9/0/-/_",
                        "1", "2/3", "4/a/5", "a/_", "-/-", "_/_", "-", "_"
        })
        public void test_deliver_2_topic_valid_should_not_throws_exception(
                        String validTopic) {
                typedEventBus.deliver(validTopic, dto);
        }
{code}


> [TypedEvent] Topic validation
> -----------------------------
>
>                 Key: ARIES-2048
>                 URL: https://issues.apache.org/jira/browse/ARIES-2048
>             Project: Aries
>          Issue Type: TCK Challenge
>          Components: Typed Event
>            Reporter: Stefan Bischof
>            Priority: Major
>
> Hi,
> 1. a  Componet `Typed Event` is missing in Jira.
> 2. the Method `deliver` and `deliveruntyped` of the EventBus should validate 
> the topic
> Spec: 157.3.1 Event Topics
> This test tests expect an IllArgExt.
> {code:java}
>       @ParameterizedTest
>       @ValueSource(strings = {
>                       "*", "%", "/", "//", "a//b", "//b", "a//", "a/", 
> "a/*/*/b",
>                       "a/b/c/", "a/*/*", " /*", " ", "a/ /b", " / ", "Bär"
>       })
>       public void test_deliver_2_topic_invalid_should_throws_exception(
>                       String invalidTopic) {
>               assertThatIllegalArgumentException().isThrownBy(() -> {
>                       typedEventBus.deliver(invalidTopic, dto);
>               });
>       }
> {code}
> The topic should also not be `null`
> This should work file:
> {code:java}
>       @ParameterizedTest
>       @ValueSource(strings = {
>                       "a", "A", "a/b", "A/B", "A/b/C", "a/b/c", "foO/BaR", 
> "$", "$/$a$/$"
>                       
> "$/a/A/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/1/2/3/4/5/6/7/8/9/0/-/_",
>                       "1", "2/3", "4/a/5", "a/_", "-/-", "_/_", "-", "_"
>       })
>       public void test_deliver_2_topic_valid_should_not_throws_exception(
>                       String validTopic) {
>               typedEventBus.deliver(validTopic, dto);
>       }
> {code}
>  



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

Reply via email to