diff options
author | gabe.maurer <gabe.maurer@att.com> | 2018-05-07 10:10:21 -0500 |
---|---|---|
committer | gabe.maurer <gabe.maurer@att.com> | 2018-05-09 10:00:28 -0500 |
commit | f5bb572dd89dea0d74e4e8ba17c7bf5b044c2dc4 (patch) | |
tree | 55926a844a415feee29278fdf2cba69c97db7ee1 /cadi | |
parent | a30fc7afb8c889dedc3be4fa55de5bdbf35f6086 (diff) |
Increased coverage authfs
Issue-ID: AAF-240
Change-Id: I7a109dd5215566ca0b6d49c5112ffadab6e3f21e
Signed-off-by: gabe.maurer <gabe.maurer@att.com>
Diffstat (limited to 'cadi')
-rw-r--r-- | cadi/aaf/src/test/java/org/onap/aaf/cadi/cm/test/JU_ArtifactDir.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cadi/aaf/src/test/java/org/onap/aaf/cadi/cm/test/JU_ArtifactDir.java b/cadi/aaf/src/test/java/org/onap/aaf/cadi/cm/test/JU_ArtifactDir.java index dbddd57a..5121448f 100644 --- a/cadi/aaf/src/test/java/org/onap/aaf/cadi/cm/test/JU_ArtifactDir.java +++ b/cadi/aaf/src/test/java/org/onap/aaf/cadi/cm/test/JU_ArtifactDir.java @@ -36,6 +36,7 @@ import java.security.cert.CertificateException; import java.util.ArrayList; import java.util.List; +import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.Test; @@ -70,10 +71,14 @@ public class JU_ArtifactDir { issuers.add("issuer2"); } + @After + public void tearDown() { + ArtifactDir.clear(); + } + @AfterClass public static void tearDownOnce() { cleanup(); - ArtifactDir.clear(); } @Test @@ -129,12 +134,12 @@ public class JU_ArtifactDir { } - @Test + @Test(expected = CadiException.class) public void throwsTest() throws CadiException { ArtifactDirStud artiDir = new ArtifactDirStud(); when(artiMock.getDir()).thenReturn(dirName); when(artiMock.getNs()).thenReturn(nsName); - assertTrue(artiDir.place(transMock, certInfoMock, artiMock, "machine")); + artiDir.place(transMock, certInfoMock, artiMock, "machine"); } private class ArtifactDirStud extends ArtifactDir { |