1 package org.onap.policy.xacml.test.std.pap;
3 * ============LICENSE_START=======================================================
5 * ================================================================================
6 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 import static org.junit.Assert.assertTrue;
23 import org.junit.Before;
24 import org.junit.Test;
25 import org.onap.policy.common.logging.flexlogger.FlexLogger;
26 import org.onap.policy.common.logging.flexlogger.Logger;
27 import org.onap.policy.xacml.std.pap.StdPDP;
28 import org.onap.policy.xacml.std.pap.StdPDPStatus;
30 public class StdPDPTest {
32 private static Logger logger = FlexLogger.getLogger(StdPDPTest.class);
34 private StdPDP stdPDP;
40 stdPDP = new StdPDP();
41 } catch (Exception e) {
47 public void testGetId() {
49 stdPDP.setId("testId");
50 assertTrue(stdPDP.getId() != null);
51 } catch (Exception e) {
57 public void testGetName() {
59 stdPDP.setName("abc");
60 assertTrue(stdPDP.getName() != null);
61 } catch (Exception e) {
67 public void testGetDescription() {
69 stdPDP.setDescription("somee here");
70 assertTrue(stdPDP.getDescription() != null);
71 } catch (Exception e) {
77 public void testGetStatus() {
79 stdPDP.setStatus(new StdPDPStatus());
80 assertTrue(stdPDP.getStatus() != null);
81 } catch (Exception e) {
87 public void testGetPipConfigs() {
89 assertTrue(stdPDP.getPipConfigs() != null);
90 } catch (Exception e) {
96 public void testGetJmxPort() {
98 stdPDP.setJmxPort(123);
99 assertTrue(stdPDP.getJmxPort() != null);
100 } catch (Exception e) {