From 496f97a9e7aaa83a9fa1ae935a32ef5fc8305954 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Thu, 23 May 2024 17:31:09 +0200 Subject: [PATCH] BC-7234 - test if sub get name and uri --- .../java/de/svs/doido/mongo/dto/ConfigmapTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/java/de/svs/doido/mongo/dto/ConfigmapTest.java b/src/test/java/de/svs/doido/mongo/dto/ConfigmapTest.java index 0609153..5bfeaaa 100644 --- a/src/test/java/de/svs/doido/mongo/dto/ConfigmapTest.java +++ b/src/test/java/de/svs/doido/mongo/dto/ConfigmapTest.java @@ -47,6 +47,20 @@ void testGetterSetterUri() { assertEquals(uri,c.getUri()); } + @Test + void testGetterSetterSubName() { + String name = "hausboot"; + sub.setName(name); + assertEquals(name,sub.getName()); + } + + @Test + void testGetterSetterSubUri() { + String uri = "proto://foo.bar.com/"; + sub.setUri(uri); + assertEquals(uri,sub.getUri()); + } + @Test void testGetterSetterUriFail() { String uri = "proto:foo.bar.com/";