Skip to content

Commit

Permalink
BC-7234 - test if sub get name and uri
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored May 23, 2024
1 parent e8661eb commit 496f97a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/java/de/svs/doido/mongo/dto/ConfigmapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down

0 comments on commit 496f97a

Please sign in to comment.