Sonar Fixes, Formatting
[aaf/authz.git] / auth / auth-cmd / src / test / java / org / onap / aaf / auth / cmd / test / ns / JU_ListUsers.java
index e44a821..264a42c 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.
@@ -32,6 +32,7 @@ import org.onap.aaf.auth.cmd.ns.List;
 import org.onap.aaf.auth.cmd.ns.ListUsers;
 import org.onap.aaf.auth.cmd.ns.NS;
 import org.onap.aaf.auth.cmd.test.JU_AAFCli;
+import org.onap.aaf.cadi.CadiException;
 import org.onap.aaf.cadi.LocatorException;
 import org.onap.aaf.misc.env.APIException;
 
@@ -51,29 +52,29 @@ import org.junit.Test;
 
 public class JU_ListUsers {
 
-       AAFcli cli;
-       NS ns;
-       List list;
-       ListUsers lUsers;
-       
-       @Before
-       public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException {
-               cli = JU_AAFCli.getAAfCli();
-               ns = new NS(cli);
-               list = new List(ns);
-               lUsers = new ListUsers(list);
-       }
-       
-       @Test
-       public void testReports() throws DatatypeConfigurationException {
-               Users.User user = new Users.User();
-               GregorianCalendar gcal = new GregorianCalendar();
-           XMLGregorianCalendar xgcal = DatatypeFactory.newInstance().newXMLGregorianCalendar(gcal);
-               user.setExpires(xgcal);
-               
-               lUsers.report("header", "ns");
-               lUsers.report("subHead");
-               lUsers.report("prefix", user);
-       }
+    AAFcli cli;
+    NS ns;
+    List list;
+    ListUsers lUsers;
+
+    @Before
+    public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException {
+        cli = JU_AAFCli.getAAfCli();
+        ns = new NS(cli);
+        list = new List(ns);
+        lUsers = new ListUsers(list);
+    }
+
+    @Test
+    public void testReports() throws DatatypeConfigurationException {
+        Users.User user = new Users.User();
+        GregorianCalendar gcal = new GregorianCalendar();
+        XMLGregorianCalendar xgcal = DatatypeFactory.newInstance().newXMLGregorianCalendar(gcal);
+        user.setExpires(xgcal);
+
+        lUsers.report("header", "ns");
+        lUsers.report("subHead");
+        lUsers.report("prefix", user);
+    }
 
 }