-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
14 topics handler #29
Conversation
Co-authored-by: Katherine Altmann <katherine.altmann@iths.se> Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Kathrine Altmann <kathrine.altmann@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
…actory method createTopic(). Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be able to close #14 this class should handle wildcards matching. If not, then maby this could solve its own issue because we need the Topics class either way.
Topics can be an exact match like myhome/first_floor/kitchen/temperature but we can also use wildcards so myhome/first_floor/+/temperature is a valid topic name for subscribing to messages.
myhome/first_floor/kitchen/temperature
myhome/first_floor/livingroom/temperature
we want to subscribe to both with following:
myhome/first_floor/+/temperature
So we need to check that everything after first_floor that ends with temperature should be subscribed to.
I think that using regex might be a solution to this.
Or substrings
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
e2590e4
to
e0b059e
Compare
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make name variable final and this will look good. Nice job with matchesWildcard method! 🥇
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se>
…dation Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se>
…in TopicTest Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se>
Co-authored-by: Ingrid Hammargren <ingrid.hammargren@iths.se> Co-authored-by: Tobias Sjöström <tobias.sjostrom@iths.se> Co-authored-by: Katherine Altmann <katherine.altmann@iths.se>
Quality Gate passedIssues Measures |
Related Issue(s)
Closes #14
Proposed Changes
We have created a Topic and a TopicTest class. Also updated the pom.xml file with assertJ and Junit5.