Mass removal of all Tabs (Style Warnings)
[aaf/authz.git] / cadi / aaf / src / test / java / org / onap / aaf / cadi / cm / test / JU_CmAgent.java
index b50c5a5..e1c334f 100644 (file)
@@ -32,99 +32,99 @@ import org.onap.aaf.cadi.configure.Agent;
 
 public class JU_CmAgent {
 
-       private static final String resourceDirString = "src/test/resources";
-       private static final String aafDir = resourceDirString + "/aaf";
-
-       private ByteArrayInputStream inStream;
-
-       @Before
-       public void setup() {
-               System.setProperty("user.home", aafDir);
-
-               // Simulate user input
-               inStream = new ByteArrayInputStream("test\nhttp://example.com\nhttp://example.com".getBytes());
-               System.setIn(inStream);
-       }
-
-       @After
-       public void tearDown() {
-               recursiveDelete(new File(aafDir));
-       }
-
-       @Test
-       public void test() {
-               String[] args;
-               args = new String[] {
-                               "-login",
-                               "-noExit",
-               };
-               Agent.main(args);
-
-               inStream.reset();
-               args = new String[] {
-                               "-noExit",
-               };
-               Agent.main(args);
-
-               inStream.reset();
-               args = new String[] {
-                               "place",
-                               "-noExit",
-               };
-               Agent.main(args);
-
-               inStream.reset();
-               args = new String[] {
-                               "-noExit",
-                               "create"
-               };
-               Agent.main(args);
-
-               inStream.reset();
-               args = new String[] {
-                               "-noExit",
-                               "read"
-               };
-               Agent.main(args);
-
-               inStream.reset();
-               args = new String[] {
-                               "-noExit",
-                               "copy"
-               };
-               Agent.main(args);
-
-               inStream.reset();
-               args = new String[] {
-                               "-noExit",
-                               "update"
-               };
-               Agent.main(args);
-
-               inStream.reset();
-               args = new String[] {
-                               "-noExit",
-                               "delete"
-               };
-               Agent.main(args);
-
-               inStream.reset();
-               args = new String[] {
-                               "-noExit",
-                               "showpass"
-               };
-               Agent.main(args);
-
-       }
-
-       private void recursiveDelete(File file) {
-               for (File f : file.listFiles()) {
-                       if (f.isDirectory()) {
-                               recursiveDelete(f);
-                       }
-                       f.delete();
-               }
-               file.delete();
-       }
+    private static final String resourceDirString = "src/test/resources";
+    private static final String aafDir = resourceDirString + "/aaf";
+
+    private ByteArrayInputStream inStream;
+
+    @Before
+    public void setup() {
+        System.setProperty("user.home", aafDir);
+
+        // Simulate user input
+        inStream = new ByteArrayInputStream("test\nhttp://example.com\nhttp://example.com".getBytes());
+        System.setIn(inStream);
+    }
+
+    @After
+    public void tearDown() {
+        recursiveDelete(new File(aafDir));
+    }
+
+    @Test
+    public void test() {
+        String[] args;
+        args = new String[] {
+                "-login",
+                "-noExit",
+        };
+        Agent.main(args);
+
+        inStream.reset();
+        args = new String[] {
+                "-noExit",
+        };
+        Agent.main(args);
+
+        inStream.reset();
+        args = new String[] {
+                "place",
+                "-noExit",
+        };
+        Agent.main(args);
+
+        inStream.reset();
+        args = new String[] {
+                "-noExit",
+                "create"
+        };
+        Agent.main(args);
+
+        inStream.reset();
+        args = new String[] {
+                "-noExit",
+                "read"
+        };
+        Agent.main(args);
+
+        inStream.reset();
+        args = new String[] {
+                "-noExit",
+                "copy"
+        };
+        Agent.main(args);
+
+        inStream.reset();
+        args = new String[] {
+                "-noExit",
+                "update"
+        };
+        Agent.main(args);
+
+        inStream.reset();
+        args = new String[] {
+                "-noExit",
+                "delete"
+        };
+        Agent.main(args);
+
+        inStream.reset();
+        args = new String[] {
+                "-noExit",
+                "showpass"
+        };
+        Agent.main(args);
+
+    }
+
+    private void recursiveDelete(File file) {
+        for (File f : file.listFiles()) {
+            if (f.isDirectory()) {
+                recursiveDelete(f);
+            }
+            f.delete();
+        }
+        file.delete();
+    }
 
 }