aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-XACML/src/test/java/org/onap/policy/xacml/test/std/pap/StdPAPPolicyTest.java
blob: d5146d05aa3df37b4a0e32d73b3d95a61850921e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
}
@media (prefers-color-scheme: light) {
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (c) 2016-2017, Huawei Technologies Co., Ltd.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
 -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.huawei</groupId>
        <artifactId>vfc-nfvo-driver-vnfm-svnfm-huawei</artifactId>
        <version>1.3.8-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.huawei.vnfmadapter</groupId>
    <artifactId>vnfmadapter</artifactId>
    <version>1.3.8-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>vfc-nfvo-driver-vnfm-svnfm</name>
    <description>nfvo vnfmadapter</description>
    <properties>
    <packagename>VnfmadapterService</packagename>
        <java.version>11</java.version>
        <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
        <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
        <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
        <sonar.projectVersion>${project.version}</sonar.projectVersion>
        <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
    </properties>
    <modules>
        <module>VnfmadapterService</module>
    </modules>

    <build>
        <plugins>
            <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.19</version>
                    <configuration>
                        <testFailureIgnore>true</testFailureIgnore>
                        <includes>
                            <include>**/*Spec*</include>
                            <include>**/Test*.java</include>
                            <include>**/*Test.java</include>
                            <include>**/*TestCase.java</include>
                            <include>**/Test*.scala</include>
                            <include>**/*Test.scala</include>
                            <include>**/*TestCase.scala</include>
                        </includes>
                    </configuration>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.7</version>
                <configuration>
                    <formats>
                        <format>html</format>
                        <format>xml</format>
                    </formats>
                    <instrumentation>
                        <excludes>
                            <exclude>org/**/*Test.class</exclude>
                        </excludes>
                    </instrumentation>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <executions>
                  <execution>
                    <id>prepare-agent</id>
                    <goals>
                        <goal>prepare-agent</goal>
                    </goals>
                  </execution>
                  <execution>
                     <id>report</id>
                     <goals>
                       <goal>report</goal>
                     </goals>
                     <configuration>
                        <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
                        <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
                     </configuration>
                  </execution>
               </executions>
            </plugin>

        </plugins>
    </build>

</project>
7 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188
/*-
 * ============LICENSE_START=======================================================
 * ONAP-XACML
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * Modifications Copyright (C) 2018 Samsung Electronics Co., Ltd.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */
package org.onap.policy.xacml.test.std.pap;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;

import org.junit.Before;
import org.junit.Test;
import org.onap.policy.common.logging.flexlogger.FlexLogger;
import org.onap.policy.common.logging.flexlogger.Logger;
import org.onap.policy.xacml.std.pap.StdPAPPolicy;
import org.onap.policy.xacml.std.pap.StdPAPPolicyParams;

public class StdPAPPolicyTest {

    private static Logger logger = FlexLogger.getLogger(StdPAPPolicyTest.class);
    Properties properties = new Properties();
    StdPAPPolicy stdPAPPolicy;

    @Before
    public void setUp() {

        Paths.get("src/test/resources/pdps");
        try {
            stdPAPPolicy = new StdPAPPolicy();
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetActionAttribute() {
        try {
            stdPAPPolicy.setActionAttribute("test");
            assertTrue(stdPAPPolicy.getActionAttribute() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetActionBody() {
        try {
            stdPAPPolicy.setActionBody("actionBody");
            assertTrue(stdPAPPolicy.getActionBody() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testGetActionDictHeader() {
        try {
            stdPAPPolicy.setActionDictHeader("actionDictHeader");
            assertTrue(stdPAPPolicy.getActionDictHeader() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetActionDictMethod() {
        try {
            stdPAPPolicy.setActionDictMethod("actionDictMethod");
            assertTrue(stdPAPPolicy.getActionDictMethod() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetActionDictType() {
        try {
            stdPAPPolicy.setActionDictType("actionDictType");
            assertTrue(stdPAPPolicy.getActionDictType() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetActionDictUrl() {
        try {
            stdPAPPolicy.setActionDictUrl("actionDictUrl");
            assertTrue(stdPAPPolicy.getActionDictUrl() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetActionPerformer() {
        try {
            stdPAPPolicy.setActionPerformer("actionPerformer");
            assertTrue(stdPAPPolicy.getActionPerformer() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testGetBrmsController() {
        try {
            stdPAPPolicy.setBrmsController("brmsController");
            assertTrue(stdPAPPolicy.getBrmsController() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetBrmsDependency() {
        try {
            stdPAPPolicy.setBrmsDependency(new ArrayList<>());
            assertTrue(stdPAPPolicy.getBrmsDependency() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetConfigBodyData() {
        try {
            stdPAPPolicy.setConfigBodyData("configBodyData");
            assertTrue(stdPAPPolicy.getConfigBodyData() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }


    @Test
    public void testGetConfigName() {
        try {
            stdPAPPolicy.setConfigName("configName");
            assertTrue(stdPAPPolicy.getConfigName() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetConfigPolicyType() {
        try {
            stdPAPPolicy.setConfigPolicyType("configPolicyType");
            assertTrue(stdPAPPolicy.getConfigPolicyType() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testGetConfigType() {
        try {
            stdPAPPolicy.setConfigType("configType");
            assertTrue(stdPAPPolicy.getConfigType() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDataTypeList() {
        try {
            stdPAPPolicy.setDataTypeList(new ArrayList<String>());
            assertTrue(stdPAPPolicy.getDataTypeList() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDeleteCondition() {
        try {
            stdPAPPolicy.setDeleteCondition("deleteCondition");
            assertTrue(stdPAPPolicy.getDeleteCondition() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }


    @Test
    public void testGetDrlRuleAndUIParams() {
        try {
            stdPAPPolicy.setDrlRuleAndUIParams(new HashMap<>());
            assertTrue(stdPAPPolicy.getDrlRuleAndUIParams() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDropDownMap() {
        try {
            stdPAPPolicy.setDropDownMap(new HashMap<>());
            assertTrue(stdPAPPolicy.getDropDownMap() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testGetDynamicFieldConfigAttributes() {
        try {
            assertTrue(stdPAPPolicy.getDynamicFieldConfigAttributes() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDynamicRuleAlgorithmCombo() {
        try {
            stdPAPPolicy.setDynamicRuleAlgorithmCombo(new ArrayList<>());
            assertTrue(stdPAPPolicy.getDynamicRuleAlgorithmCombo() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDynamicRuleAlgorithmField1() {
        try {
            stdPAPPolicy.setDynamicRuleAlgorithmField1(new ArrayList<>());
            assertTrue(stdPAPPolicy.getDynamicRuleAlgorithmField1() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDictionary() {
        try {
            stdPAPPolicy.setDictionary("dictionary");
            assertTrue(stdPAPPolicy.getDictionary() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDictionaryFields() {
        try {
            stdPAPPolicy.setDictionaryFields("dictionaryFields");
            assertTrue(stdPAPPolicy.getDictionaryFields() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testGetDictionaryType() {
        try {
            stdPAPPolicy.setDictionaryType("dictionaryType");
            assertTrue(stdPAPPolicy.getDictionaryType() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDomainDir() {
        try {
            stdPAPPolicy.setDomainDir("domain");
            assertTrue(stdPAPPolicy.getDomainDir() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testIsDraft() {
        try {
            stdPAPPolicy.setDraft(true);
            assertTrue(stdPAPPolicy.isDraft() == true);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDynamicRuleAlgorithmLabels() {
        try {
            stdPAPPolicy.setDynamicRuleAlgorithmLabels(new ArrayList<>());
            assertTrue(stdPAPPolicy.getDynamicRuleAlgorithmLabels() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetDynamicSettingsMap() {
        try {
            stdPAPPolicy.setDynamicSettingsMap(new HashMap<>());
            assertTrue(stdPAPPolicy.getDynamicSettingsMap() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testGetDynamicVariableList() {
        try {
            stdPAPPolicy.setDynamicVariableList(new ArrayList<>());
            assertTrue(stdPAPPolicy.getDynamicVariableList() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetGuard() {
        try {
            stdPAPPolicy.setGuard("domain");
            assertTrue(stdPAPPolicy.getGuard() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetHighestVersion() {
        try {
            stdPAPPolicy.setHighestVersion(123);
            assertTrue(stdPAPPolicy.getHighestVersion() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testgGtJsonBody() {
        try {
            stdPAPPolicy.setJsonBody("jsonBoby");
            assertTrue(stdPAPPolicy.getJsonBody() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetLocation() {
        try {
            stdPAPPolicy.setLocation(new URI("test"));
            assertTrue(stdPAPPolicy.getLocation() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testGetMsLocation() {
        try {
            stdPAPPolicy.setMsLocation("MsLocation");
            assertTrue(stdPAPPolicy.getMsLocation() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testSetOldPolicyFileName() {
        try {
            stdPAPPolicy.setOldPolicyFileName("domain");
            assertTrue(stdPAPPolicy.getOldPolicyFileName() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetOnapName() {
        try {
            stdPAPPolicy.setOnapName("onap");
            assertTrue(stdPAPPolicy.getOnapName() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetPolicyDescription() {
        try {
            stdPAPPolicy.setPolicyDescription("description test");
            assertTrue(stdPAPPolicy.getPolicyDescription() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetPolicyID() {
        try {
            stdPAPPolicy.setPolicyID("test");
            assertTrue(stdPAPPolicy.getPolicyID() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testSetPolicyName() {
        try {
            stdPAPPolicy.setPolicyName("MsLocation");
            assertTrue(stdPAPPolicy.getPolicyName() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testSetPriority() {
        try {
            stdPAPPolicy.setPriority("domain");
            assertTrue(stdPAPPolicy.getPriority() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetProviderComboBox() {
        try {
            stdPAPPolicy.setProviderComboBox("onap");
            assertTrue(stdPAPPolicy.getProviderComboBox() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetRiskLevel() {
        try {
            stdPAPPolicy.setRiskLevel("test");
            assertTrue(stdPAPPolicy.getRiskLevel() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetRiskType() {
        try {
            stdPAPPolicy.setRiskType("test");
            assertTrue(stdPAPPolicy.getRiskType() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testGetRuleID() {
        try {
            stdPAPPolicy.setRuleID("MsLocation");
            assertTrue(stdPAPPolicy.getRuleID() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetServiceType() {
        try {
            stdPAPPolicy.setServiceType("domain");
            assertTrue(stdPAPPolicy.getServiceType() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetTTLDate() {
        try {
            stdPAPPolicy.setTTLDate("09/20/17");
            assertTrue(stdPAPPolicy.getTTLDate() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }


    @Test
    public void testGetUuid() {
        try {
            stdPAPPolicy.setUuid("11212122");
            assertTrue(stdPAPPolicy.getUuid() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testGetVersion() {
        try {
            stdPAPPolicy.setVersion("testv01");
            assertTrue(stdPAPPolicy.getVersion() != null);
        } catch (Exception e) {
            logger.info(e);
        }

    }

    @Test
    public void testIsEditPolicy() {
        try {
            stdPAPPolicy.setEditPolicy(true);
            assertTrue(stdPAPPolicy.isEditPolicy() == true);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testToString() {
        try {
            assertTrue(stdPAPPolicy.toString() != null);
        } catch (Exception e) {
            logger.info(e);
        }
    }

    @Test
    public void testConstructorUri() throws URISyntaxException {
        URI location = new URI("testUri");
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(location);
        assertEquals(location, stdPAPPolicy.getLocation());
    }

    @Test
    public void testConstructorStringStringStringString() throws URISyntaxException {
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy("policyName", "body", "configType", "configTypePolicy");
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("body", stdPAPPolicy.getConfigBodyData());
        assertEquals("configType", stdPAPPolicy.getConfigType());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
    }


    @Test
    public void testConstructorStringStringStringStringStringMapStringStringStringStringBooleanStringStringStringStringString()
            throws URISyntaxException {
        Map<String, String> attributes = new HashMap<>();
        attributes.put("aKey", "aValue");

        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(
                StdPAPPolicyParams.builder()
                        .configPolicyType("configTypePolicy")
                        .policyName("policyName")
                        .description("description")
                        .onapName("onapName")
                        .configName("configName")
                        .dynamicFieldConfigAttributes(attributes)
                        .configType("configType")
                        .configBodyData("body")
                        .editPolicy(true)
                        .domain("domain")
                        .highestVersion(1)
                        .riskLevel("riskLevel")
                        .riskType("riskType")
                        .guard("guard")
                        .ttlDate("ttlDate").build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("onapName", stdPAPPolicy.getOnapName());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertEquals(attributes, stdPAPPolicy.getDynamicFieldConfigAttributes());
        assertEquals("configType", stdPAPPolicy.getConfigType());
        assertEquals("body", stdPAPPolicy.getConfigBodyData());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringStringMapStringStringListStringListStringListStringListStringStringStringBooleanStringint() {
        Map<String, String> attributes = new HashMap<>();
        attributes.put("aKey", "aValue");
        List<String> dynamicRuleAlgorithmLabels = new ArrayList<>();
        dynamicRuleAlgorithmLabels.add("dynamicRuleAlgorithmLabel");
        List<String> dynamicRuleAlgorithmCombo = new ArrayList<>();
        dynamicRuleAlgorithmCombo.add("dynamicRuleAlgorithmCombo");
        List<String> dynamicRuleAlgorithmField1 = new ArrayList<>();
        dynamicRuleAlgorithmField1.add("dynamicRuleAlgorithmField1");
        List<String> dynamicRuleAlgorithmField2 = new ArrayList<>();
        dynamicRuleAlgorithmField2.add("dynamicRuleAlgorithmField2");
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder().policyName("policyName").description("description")
                .dynamicFieldConfigAttributes(attributes)
                .dynamicRuleAlgorithmLabels(dynamicRuleAlgorithmLabels)
                .dynamicRuleAlgorithmCombo(dynamicRuleAlgorithmCombo)
                .dynamicRuleAlgorithmField1(dynamicRuleAlgorithmField1)
                .dynamicRuleAlgorithmField2(dynamicRuleAlgorithmField2)
                .actionPerformer("actionPerformer")
                .actionAttribute("actionAttribute")
                .editPolicy(true)
                .domain("domain")
                .highestVersion(1)
                .build());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals(attributes, stdPAPPolicy.getDynamicFieldConfigAttributes());
        assertEquals(dynamicRuleAlgorithmLabels, stdPAPPolicy.getDynamicRuleAlgorithmLabels());
        assertEquals(dynamicRuleAlgorithmCombo, stdPAPPolicy.getDynamicRuleAlgorithmCombo());
        assertEquals(dynamicRuleAlgorithmField1, stdPAPPolicy.getDynamicRuleAlgorithmField1());
        assertEquals(dynamicRuleAlgorithmField2, stdPAPPolicy.getDynamicRuleAlgorithmField2());
        assertEquals("actionPerformer", stdPAPPolicy.getActionPerformer());
        assertEquals("actionAttribute", stdPAPPolicy.getActionAttribute());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
    }

    @Test
    public void testConstructorStringStringStringStringMapStringStringMapStringStringMapStringStringListStringListStringListStringListStringMapStringStringListObjectListStringBooleanStringint() {
        Map<String, String> attributes = new HashMap<>();
        attributes.put("aKey1", "aValue1");
        Map<String, String> settings = new HashMap<>();
        settings.put("aKey2", "aValue2");
        Map<String, String> treatments = new HashMap<>();
        treatments.put("aKey3", "aValue3");
        Map<String, String> dropDownMap = new HashMap<>();
        dropDownMap.put("aKey4", "aValue4");
        List<String> dynamicRuleAlgorithmLabels = new ArrayList<>();
        dynamicRuleAlgorithmLabels.add("dynamicRuleAlgorithmLabel");
        List<String> dynamicRuleAlgorithmCombo = new ArrayList<>();
        dynamicRuleAlgorithmCombo.add("dynamicRuleAlgorithmCombo");
        List<String> dynamicRuleAlgorithmField1 = new ArrayList<>();
        dynamicRuleAlgorithmField1.add("dynamicRuleAlgorithmField1");
        List<String> dynamicRuleAlgorithmField2 = new ArrayList<>();
        dynamicRuleAlgorithmField2.add("dynamicRuleAlgorithmField2");
        List<Object> dynamicVariableList = new ArrayList<>();
        dynamicVariableList.add("dynamicVariableList");
        List<String> dataTypeList = new ArrayList<>();
        dataTypeList.add("dataTypeList");
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .policyName("policyName")
                .description("description")
                .onapName("onapName")
                .providerComboBox("providerComboBox")
                .dynamicFieldConfigAttributes(attributes)
                .dynamicSettingsMap(settings)
                .treatments(treatments)
                .dynamicRuleAlgorithmLabels(dynamicRuleAlgorithmLabels)
                .dynamicRuleAlgorithmCombo(dynamicRuleAlgorithmCombo)
                .dynamicRuleAlgorithmField1(dynamicRuleAlgorithmField1)
                .dynamicRuleAlgorithmField2(dynamicRuleAlgorithmField2)
                .dropDownMap(dropDownMap)
                .dynamicVariableList(dynamicVariableList)
                .dataTypeList(dataTypeList)
                .editPolicy(true)
                .domain("domain")
                .highestVersion(1)
                .build());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("onapName", stdPAPPolicy.getOnapName());
        assertEquals("providerComboBox", stdPAPPolicy.getProviderComboBox());
        assertEquals(attributes, stdPAPPolicy.getDynamicFieldConfigAttributes());
        assertEquals(settings, stdPAPPolicy.getDynamicSettingsMap());
        assertEquals(treatments, stdPAPPolicy.getTreatments());
        assertEquals(dynamicRuleAlgorithmLabels, stdPAPPolicy.getDynamicRuleAlgorithmLabels());
        assertEquals(dynamicRuleAlgorithmCombo, stdPAPPolicy.getDynamicRuleAlgorithmCombo());
        assertEquals(dynamicRuleAlgorithmField1, stdPAPPolicy.getDynamicRuleAlgorithmField1());
        assertEquals(dynamicRuleAlgorithmField2, stdPAPPolicy.getDynamicRuleAlgorithmField2());
        assertEquals(dropDownMap, stdPAPPolicy.getDropDownMap());
        assertEquals(dynamicVariableList, stdPAPPolicy.getDynamicVariableList());
        assertEquals(dataTypeList, stdPAPPolicy.getDataTypeList());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
    }

    @Test
    public void testConstructorStringStringStringStringStringMapStringStringStringStringStringStringBooleanStringStringintStringStringStringString()
            throws URISyntaxException {
        Map<String, String> attributes = new HashMap<>();
        attributes.put("aKey", "aValue");
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .onapName("onapName")
                .configName("configName")
                .dynamicFieldConfigAttributes(attributes)
                .configBodyData("body")
                .policyID("policyId")
                .ruleID("ruleId")
                .configType("configType")
                .editPolicy(true)
                .version("version")
                .domain("domain")
                .highestVersion(1)
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("onapName", stdPAPPolicy.getOnapName());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertEquals(attributes, stdPAPPolicy.getDynamicFieldConfigAttributes());
        assertEquals("body", stdPAPPolicy.getConfigBodyData());
        assertEquals("policyId", stdPAPPolicy.getPolicyID());
        assertEquals("ruleId", stdPAPPolicy.getRuleID());
        assertEquals("configType", stdPAPPolicy.getConfigType());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals("version", stdPAPPolicy.getVersion());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringStringStringStringBooleanStringStringIntegerStringStringStringString()
            throws URISyntaxException {
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .configName("configName")
                .editPolicy(true)
                .domain("domain")
                .jsonBody("jasonBody")
                .highestVersion(1)
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals("jasonBody", stdPAPPolicy.getJsonBody());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringStringStringStringBooleanStringStringIntegerStringStringStringStringString()
            throws URISyntaxException {
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .configName("configName")
                .editPolicy(true)
                .domain("domain")
                .jsonBody("jasonBody")
                .highestVersion(1)
                .onapName("eCompName")
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals("jasonBody", stdPAPPolicy.getJsonBody());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("eCompName", stdPAPPolicy.getOnapName());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorMapStringStringIntegerStringStringStringStringStringStringStringArrayListString()
            throws URISyntaxException {
        Map<String, String> dyanamicFieldConfigAttributes = new HashMap<>();
        dyanamicFieldConfigAttributes.put("aKey", "aValue");
        ArrayList<String> brmsDependency = new ArrayList<>();
        brmsDependency.add("brmsDependency");
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .configName("configName")
                .editPolicy(true)
                .domain("domain")
                .dynamicFieldConfigAttributes(dyanamicFieldConfigAttributes)
                .highestVersion(1)
                .onapName("eCompName")
                .configBodyData("configBodyData")
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .brmsController("brmsController")
                .brmsDependency(brmsDependency)
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals(dyanamicFieldConfigAttributes, stdPAPPolicy.getDynamicFieldConfigAttributes());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("eCompName", stdPAPPolicy.getOnapName());
        assertEquals("configBodyData", stdPAPPolicy.getConfigBodyData());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
        assertEquals("brmsController", stdPAPPolicy.getBrmsController());
        assertEquals(brmsDependency, stdPAPPolicy.getBrmsDependency());
    }

    @Test
    public void testConstructorMapStringStringIntegerStringStringMapStringStringStringStringStringStringStringArrayListString()
            throws URISyntaxException {
        Map<String, String> dyanamicFieldConfigAttributes = new HashMap<>();
        dyanamicFieldConfigAttributes.put("aKey", "aValue");
        Map<String, String> drlRuleAndUIParams = new HashMap<>();
        drlRuleAndUIParams.put("aDrlRuleKey", "aDrlRuleValue");
        ArrayList<String> brmsDependency = new ArrayList<>();
        brmsDependency.add("brmsDependency");
        //Creating BRMS Param Policies from the Admin Console
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .configName("configName")
                .editPolicy(true)
                .domain("domain")
                .dynamicFieldConfigAttributes(dyanamicFieldConfigAttributes)
                .highestVersion(1)
                .onapName("eCompName")
                .configBodyData("configBodyData")
                .drlRuleAndUIParams(drlRuleAndUIParams)
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .brmsController("brmsController")
                .brmsDependency(brmsDependency)
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals(dyanamicFieldConfigAttributes, stdPAPPolicy.getDynamicFieldConfigAttributes());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("eCompName", stdPAPPolicy.getOnapName());
        assertEquals("configBodyData", stdPAPPolicy.getConfigBodyData());
        assertEquals(drlRuleAndUIParams, stdPAPPolicy.getDrlRuleAndUIParams());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
        assertEquals("brmsController", stdPAPPolicy.getBrmsController());
        assertEquals(brmsDependency, stdPAPPolicy.getBrmsDependency());
    }

    @Test
    public void testConstructorStringStringStringStringStringBooleanStringStringBooleanStringIntegerStringStringStringString()
            throws URISyntaxException {
        //Creating CloseLoop_Fault and Performance Metric Policies
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .onapName("onapName")
                .jsonBody("jasonBody")
                .draft(true)
                .oldPolicyFileName("oldPolicyFileName")
                .serviceType("serviceType")
                .editPolicy(true)
                .domain("domain")
                .highestVersion(1)
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("onapName", stdPAPPolicy.getOnapName());
        assertEquals("jasonBody", stdPAPPolicy.getJsonBody());
        assertTrue(stdPAPPolicy.isDraft());
        assertEquals("oldPolicyFileName", stdPAPPolicy.getOldPolicyFileName());
        assertEquals("serviceType", stdPAPPolicy.getServiceType());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringStringStringStringBooleanStringStringStringStringStringIntegerStringStringStringString()
            throws URISyntaxException {
        //test for Updating Config Firewall Policies from the Admin Console
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .configName("configName")
                .editPolicy(true)
                .domain("domain")
                .policyID("policyId")
                .ruleID("ruleId")
                .version("version")
                .jsonBody("jasonBody")
                .highestVersion(1)
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals("policyId", stdPAPPolicy.getPolicyID());
        assertEquals("ruleId", stdPAPPolicy.getRuleID());
        assertEquals("version", stdPAPPolicy.getVersion());
        assertEquals("jasonBody", stdPAPPolicy.getJsonBody());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringStringStringStringStringStringStringStringStringStringStringBooleanStringintStringStringStringString()
            throws URISyntaxException {
        //for Micro Service Creating/Updating Policies from the Admin Console
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .onapName("onapName")
                .configName("configName")
                .serviceType("serviceType")
                .uuid("uuid")
                .msLocation("msLocation")
                .jsonBody("jasonBody")
                .priority("priority")
                .version("version")
                .editPolicy(true)
                .domain("domain")
                .highestVersion(1)
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("onapName", stdPAPPolicy.getOnapName());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertEquals("serviceType", stdPAPPolicy.getServiceType());
        assertEquals("uuid", stdPAPPolicy.getUuid());
        assertEquals("msLocation", stdPAPPolicy.getMsLocation());
        assertEquals("jasonBody", stdPAPPolicy.getJsonBody());
        assertEquals("priority", stdPAPPolicy.getPriority());
        assertEquals("version", stdPAPPolicy.getVersion());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringStringStringStringBooleanStringStringStringStringStringIntegerStringStringStringStringString()
            throws URISyntaxException {
        //test for Updating Goc Policies from the Admin Console
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .configName("configName")
                .editPolicy(true)
                .domain("domain")
                .policyID("policyId")
                .ruleID("ruleId")
                .version("version")
                .jsonBody("jasonBody")
                .highestVersion(1)
                .onapName("ecompName")
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals("policyId", stdPAPPolicy.getPolicyID());
        assertEquals("ruleId", stdPAPPolicy.getRuleID());
        assertEquals("version", stdPAPPolicy.getVersion());
        assertEquals("jasonBody", stdPAPPolicy.getJsonBody());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("ecompName", stdPAPPolicy.getOnapName());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringStringStringStringBooleanStringStringStringStringMapStringStringIntegerStringStringStringStringString()
            throws URISyntaxException {
        //for Updating Brms Policies from the Admin Console
        Map<String, String> dyanamicFieldConfigAttributes = new HashMap<>();
        dyanamicFieldConfigAttributes.put("aKey", "aValue");
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .configName("configName")
                .editPolicy(true)
                .domain("domain")
                .policyID("policyId")
                .ruleID("ruleId")
                .version("version")
                .dynamicFieldConfigAttributes(dyanamicFieldConfigAttributes)
                .highestVersion(1)
                .onapName("eCompName")
                .configBodyData("configBodyData")
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals("policyId", stdPAPPolicy.getPolicyID());
        assertEquals("ruleId", stdPAPPolicy.getRuleID());
        assertEquals("version", stdPAPPolicy.getVersion());
        assertEquals(dyanamicFieldConfigAttributes, stdPAPPolicy.getDynamicFieldConfigAttributes());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("eCompName", stdPAPPolicy.getOnapName());
        assertEquals("configBodyData", stdPAPPolicy.getConfigBodyData());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringStringStringStringBooleanStringStringStringStringMapStringStringIntegerStringMapStringStringStringStringStringString()
            throws URISyntaxException {
        //for Updating Brms Param Policies from the Admin Console
        Map<String, String> dyanamicFieldConfigAttributes = new HashMap<>();
        dyanamicFieldConfigAttributes.put("aKey", "aValue");
        Map<String, String> drlRuleAndUIParams = new HashMap<>();
        drlRuleAndUIParams.put("aDrlRuleKey", "aDrlRuleValue");
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .configPolicyType("configTypePolicy")
                .policyName("policyName")
                .description("description")
                .configName("configName")
                .editPolicy(true)
                .domain("domain")
                .policyID("policyId")
                .ruleID("ruleId")
                .version("version")
                .dynamicFieldConfigAttributes(dyanamicFieldConfigAttributes)
                .highestVersion(1)
                .onapName("eCompName")
                .drlRuleAndUIParams(drlRuleAndUIParams)
                .riskLevel("riskLevel")
                .riskType("riskType")
                .guard("guard")
                .ttlDate("ttlDate")
                .build());
        assertEquals("configTypePolicy", stdPAPPolicy.getConfigPolicyType());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("description", stdPAPPolicy.getPolicyDescription());
        assertEquals("configName", stdPAPPolicy.getConfigName());
        assertTrue(stdPAPPolicy.isEditPolicy());
        assertEquals("domain", stdPAPPolicy.getDomainDir());
        assertEquals("policyId", stdPAPPolicy.getPolicyID());
        assertEquals("ruleId", stdPAPPolicy.getRuleID());
        assertEquals("version", stdPAPPolicy.getVersion());
        assertEquals(dyanamicFieldConfigAttributes, stdPAPPolicy.getDynamicFieldConfigAttributes());
        assertEquals(Integer.valueOf(1), stdPAPPolicy.getHighestVersion());
        assertEquals("eCompName", stdPAPPolicy.getOnapName());
        assertEquals(drlRuleAndUIParams, stdPAPPolicy.getDrlRuleAndUIParams());
        assertEquals("riskLevel", stdPAPPolicy.getRiskLevel());
        assertEquals("riskType", stdPAPPolicy.getRiskType());
        assertEquals("guard", stdPAPPolicy.getGuard());
        assertEquals("ttlDate", stdPAPPolicy.getTTLDate());
    }

    @Test
    public void testConstructorStringString() {
        // for deleting policies from the API
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(StdPAPPolicyParams.builder()
                .policyName("policyName")
                .deleteCondition("deleteCondition")
                .build());
        assertEquals("policyName", stdPAPPolicy.getPolicyName());
        assertEquals("deleteCondition", stdPAPPolicy.getDeleteCondition());
    }

    @Test
    public void testConstructorStringStringString() {
        // for creating dictionary items from the API>
        StdPAPPolicy stdPAPPolicy = new StdPAPPolicy(
                StdPAPPolicyParams.builder()
                .dictionaryType("dictionaryType")
                .dictionary("dictionary")
                .dictionaryFields("dictionaryFields")
                .build());
        assertEquals("dictionaryType", stdPAPPolicy.getDictionaryType());
        assertEquals("dictionary", stdPAPPolicy.getDictionary());
        assertEquals("dictionaryFields", stdPAPPolicy.getDictionaryFields());
    }
}