diff options
Diffstat (limited to 'main/src/test/java/org/onap/policy/pap/main/PapConstantsTest.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/PapConstantsTest.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/PapConstantsTest.java b/main/src/test/java/org/onap/policy/pap/main/PapConstantsTest.java index 4733f91e..6d5d303a 100644 --- a/main/src/test/java/org/onap/policy/pap/main/PapConstantsTest.java +++ b/main/src/test/java/org/onap/policy/pap/main/PapConstantsTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP PAP * ================================================================================ - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019, 2021 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,15 +21,14 @@ package org.onap.policy.pap.main; -import org.assertj.core.api.Assertions; +import static org.assertj.core.api.Assertions.assertThat; + import org.junit.Test; -import org.powermock.reflect.Whitebox; public class PapConstantsTest { @Test public void test() { - // verify that constructor does not throw an exception - Assertions.assertThatCode(() -> Whitebox.invokeConstructor(PapConstants.class)).doesNotThrowAnyException(); + assertThat(PapConstants.PAP_NAME).startsWith("pap").isNotEqualTo("pap"); } } |