Sonar Fixes, Formatting
[aaf/authz.git] / cadi / core / src / test / java / org / onap / aaf / cadi / config / test / JU_RegistrationPropHolder.java
index 1fe6a75..3b3461c 100644 (file)
@@ -7,9 +7,9 @@
  * 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.
@@ -46,10 +46,10 @@ public class JU_RegistrationPropHolder {
                 rph = new RegistrationPropHolder(pa,20);
             } catch (CadiException e) {
                 Assert.assertEquals(
-                        "\ncadi_latitude must be defined." + 
+                        "\ncadi_latitude must be defined." +
                         "\ncadi_longitude must be defined.",e.getMessage());
             }
-            
+
             try {
                 pa.setProperty(Config.CADI_LATITUDE, "32.7");
                 rph = new RegistrationPropHolder(pa,20);
@@ -57,10 +57,10 @@ public class JU_RegistrationPropHolder {
                 Assert.assertEquals(
                         "\ncadi_longitude must be defined.",e.getMessage());
             }
-            
+
             pa.setProperty(Config.CADI_LONGITUDE, "-72.0");
             rph = new RegistrationPropHolder(pa,ju_port);
-            
+
             ////////////////
             // Validate Default Properties
             ////////////////
@@ -107,21 +107,21 @@ public class JU_RegistrationPropHolder {
             final String url = "https://aaf.osaaf.org:8095/org.osaaf.aaf.service:2.1";
             String name="theName";
             assertEquals(url,rph.replacements(getClass().getSimpleName(),url, name, ""));
-            
+
             String alu = "aaf.osaaf.org:8095";
             String curl = url.replace(alu, Config.AAF_LOCATE_URL_TAG);
             pa.setProperty(Config.AAF_LOCATE_URL,"https://"+alu);
             assertEquals(url.replace("8095","8095/locate"),rph.replacements(getClass().getSimpleName(),curl, name, ""));
-            
+
             String root_ns = "org.osaaf.aaf";
             curl = url.replace(root_ns, "AAF_NS");
             pa.setProperty(Config.AAF_ROOT_NS,root_ns);
             assertEquals(url,rph.replacements(getClass().getSimpleName(),curl, name, ""));
-            
+
             curl = url.replace(root_ns, "%AAF_NS");
             pa.setProperty(Config.AAF_ROOT_NS,root_ns);
             assertEquals(url,rph.replacements(getClass().getSimpleName(),curl, name, ""));
-            
+
             final String fqdn = "%C.%CNS.%NS.%N";
             String target = "myns.theName";
             assertEquals(target,rph.replacements(getClass().getSimpleName(),fqdn, name, ""));
@@ -129,11 +129,11 @@ public class JU_RegistrationPropHolder {
             pa.setProperty(Config.AAF_LOCATOR_CONTAINER_NS+".hello", "mycontns");
             target = "mycontns.myns.theName";
             assertEquals(target,rph.replacements(getClass().getSimpleName(),fqdn, name, ".hello"));
-            
+
             pa.setProperty(Config.AAF_LOCATOR_CONTAINER+".hello","helloC");
             target = "helloC.mycontns.myns.theName";
             assertEquals(target,rph.replacements(getClass().getSimpleName(),fqdn, name, ".hello"));
-            
+
             pa.setProperty(Config.AAF_LOCATOR_CONTAINER_NS,"c_ns");
             target = "c_ns.myns.theName";
             assertEquals(target,rph.replacements(getClass().getSimpleName(),fqdn, name, ""));
@@ -144,6 +144,6 @@ public class JU_RegistrationPropHolder {
             Assert.fail();
         }
     }
-    
+
 
 }