Skip to content

Commit d493bb4

Browse files
committed
Improve tests
Signed-off-by: John Brain <jnbrain@amazon.com>
1 parent a06e4d6 commit d493bb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CedarJava/src/test/java/com/cedarpolicy/EntityTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public void newWithEntityUIDTests() {
5959

6060
// Test that a key is not found
6161
assertEquals(principal.getAttr("stringAttr"), null);
62+
63+
// Test the Entity's parents
64+
assertEquals(principal.getParents().size(), 0);
6265
}
6366

6467
@Test

0 commit comments

Comments
 (0)