You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Timothy James Ward (Jira)" <ji...@apache.org> on 2025/03/03 10:02:00 UTC

[jira] [Closed] (ARIES-2048) [TypedEvent] Topic validation

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

Timothy James Ward closed ARIES-2048.
-------------------------------------

> [TypedEvent] Topic validation
> -----------------------------
>
>                 Key: ARIES-2048
>                 URL: https://issues.apache.org/jira/browse/ARIES-2048
>             Project: Aries
>          Issue Type: TCK Challenge
>          Components: Typed Event
>    Affects Versions: typedevent-1.0.0
>            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.20.10#820010)