Skip to content
Snippets Groups Projects
Commit 0454aa0a authored by Kelly Zhou's avatar Kelly Zhou
Browse files

fix unit tests

parent b4f468d4
No related branches found
No related tags found
1 merge request!359configure register service to be aware of Entitlements Change topic
Pipeline #193353 failed
......@@ -35,7 +35,7 @@
},
{
"name": "entitlements-changed",
"description": "This notification is sent whenever a group is updated or deleted.",
"description": "This notification is sent whenever a group is updated or deleted.",
"state": "ACTIVE",
"example": [
{
......
......@@ -26,10 +26,15 @@ public class TopicRepositoryTest {
@Test
public void should_returnAllMessagesFromFile() {
TopicsRepository sut = new TopicsRepository();
assertEquals(1, sut.listMessages().size());
assertEquals(2, sut.listMessages().size());
assertEquals("records-changed", sut.listMessages().get(0).getName());
assertEquals("This notification is sent whenever a new record or record version is created, updated or deleted, and when a new schema is created in storage.", sut.listMessages().get(0).getDescription());
assertEquals("ACTIVE", sut.listMessages().get(0).getState());
assertNotNull(sut.listMessages().get(0).getExample());
assertEquals("entitlements-changed", sut.listMessages().get(1).getName());
assertEquals("This notification is sent whenever a group is updated or deleted.", sut.listMessages().get(1).getDescription());
assertEquals("ACTIVE", sut.listMessages().get(1).getState());
assertNotNull(sut.listMessages().get(1).getExample());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment