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.*;
23 import java.util.HashSet;
25 import org.junit.Before;
26 import org.junit.Test;
27 import org.onap.policy.common.logging.flexlogger.FlexLogger;
28 import org.onap.policy.common.logging.flexlogger.Logger;
29 import org.onap.policy.xacml.std.pap.StdPDP;
30 import org.onap.policy.xacml.std.pap.StdPDPStatus;
32 public class StdPDPTest {
34 private static Logger logger = FlexLogger.getLogger(StdPDPTest.class);
36 private StdPDP stdPDP;
42 stdPDP = new StdPDP();
43 } catch (Exception e) {
49 public void testGetId() {
51 stdPDP.setId("testId");
52 assertTrue(stdPDP.getId() != null);
53 } catch (Exception e) {
59 public void testGetName() {
61 stdPDP.setName("abc");
62 assertTrue(stdPDP.getName() != null);
63 } catch (Exception e) {
69 public void testGetDescription() {
71 stdPDP.setDescription("somee here");
72 assertTrue(stdPDP.getDescription() != null);
73 } catch (Exception e) {
79 public void testGetStatus() {
81 stdPDP.setStatus(new StdPDPStatus());
82 assertTrue(stdPDP.getStatus() != null);
83 } catch (Exception e) {
89 public void testGetPipConfigs() {
91 assertTrue(stdPDP.getPipConfigs() != null);
92 } catch (Exception e) {
98 public void testGetJmxPort() {
100 stdPDP.setJmxPort(123);
101 assertTrue(stdPDP.getJmxPort() != null);
102 } catch (Exception e) {