diff --git a/testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/subscriptions/TestNotificationsEndpoint.java b/testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/subscriptions/TestNotificationsEndpoint.java index d12632fa79cb10249df1e3bb21508cafedd0d217..d3af80e1389650745dffc5dda0ad1ff118396e9b 100644 --- a/testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/subscriptions/TestNotificationsEndpoint.java +++ b/testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/subscriptions/TestNotificationsEndpoint.java @@ -52,7 +52,9 @@ public class TestNotificationsEndpoint extends TestBase { @After @Override - public void tearDown() { + public void tearDown() throws Exception { + LegalTagUtils.delete(LEGAL_TAG_TEST, testUtils.getOpsToken(), true); + LegalTagUtils.delete(LEGAL_TAG, testUtils.getOpsToken(), false); this.testUtils = null; } @@ -123,7 +125,7 @@ public class TestNotificationsEndpoint extends TestBase { int exitValue = process.exitValue(); assertEquals(exitValue, 1); } catch (Exception e) { - System.out.println("Error while verifying notification service. Error = " + e.getMessage() + " Stack Trace= " + Arrays.toString(e.getStackTrace())); + System.out.println("Error while verifying notification service" + Arrays.toString(e.getStackTrace())); } finally { awssubscriptionService.delete(subscriptionId); } @@ -147,7 +149,7 @@ public class TestNotificationsEndpoint extends TestBase { int exitValue = process.exitValue(); assertEquals(exitValue, 0); } catch (Exception e) { - System.out.println("Error while verifying notification service. Error = " + e.getMessage() + " Stack Trace= " + Arrays.toString(e.getStackTrace())); + System.out.println("Error while verifying notification service" + Arrays.toString(e.getStackTrace())); } finally { awssubscriptionService.delete(subscriptionId); }