Mass removal of all Tabs (Style Warnings)
[aaf/authz.git] / misc / xgen / src / test / java / org / onap / aaf / misc / xgen / html / JU_HTML5GenTest.java
index 69ebf89..6426fae 100644 (file)
@@ -36,100 +36,100 @@ import org.mockito.Mock;
 \r
 public class JU_HTML5GenTest {\r
 \r
-//     private final static String DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""\r
-//                     + " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";\r
+//    private final static String DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""\r
+//            + " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";\r
 \r
-       private String charset = "utf-8";\r
+    private String charset = "utf-8";\r
 \r
-       private final String CHARSET_LINE = "<meta charset=\"" + charset + "\">";\r
+    private final String CHARSET_LINE = "<meta charset=\"" + charset + "\">";\r
 \r
-       @Mock\r
-       Writer w;\r
+    @Mock\r
+    Writer w;\r
 \r
-       @Before\r
-       public void setUp() throws Exception {\r
+    @Before\r
+    public void setUp() throws Exception {\r
 \r
-               w = mock(Writer.class);\r
-       }\r
+        w = mock(Writer.class);\r
+    }\r
 \r
-       @Test\r
-       public void testHTML() throws IOException {\r
+    @Test\r
+    public void testHTML() throws IOException {\r
 \r
-               HTML5Gen gen = new HTML5Gen(w);\r
+        HTML5Gen gen = new HTML5Gen(w);\r
 \r
-               gen.html("attributes");\r
+        gen.html("attributes");\r
 \r
-               Map<Character, Integer> map = new TreeMap<>();\r
+        Map<Character, Integer> map = new TreeMap<>();\r
 \r
-               for (char ch : "html".toCharArray()) {\r
-                       Integer times = map.get(ch);\r
-                       map.put(ch, (times == null ? 0 : times) + 1);\r
-               }\r
+        for (char ch : "html".toCharArray()) {\r
+            Integer times = map.get(ch);\r
+            map.put(ch, (times == null ? 0 : times) + 1);\r
+        }\r
 \r
-               for (char ch : map.keySet()) {\r
-                       verify(w, atLeast(map.get(ch))).write(ch);\r
-               }\r
-               verify(w, atLeast(1)).write(anyInt());\r
-       }\r
+        for (char ch : map.keySet()) {\r
+            verify(w, atLeast(map.get(ch))).write(ch);\r
+        }\r
+        verify(w, atLeast(1)).write(anyInt());\r
+    }\r
 \r
-       @Test\r
-       public void testHead() throws IOException {\r
+    @Test\r
+    public void testHead() throws IOException {\r
 \r
-               HTML5Gen gen = new HTML5Gen(w);\r
+        HTML5Gen gen = new HTML5Gen(w);\r
 \r
-               gen.head();\r
+        gen.head();\r
 \r
-               Map<Character, Integer> map = new TreeMap<>();\r
+        Map<Character, Integer> map = new TreeMap<>();\r
 \r
-               for (char ch : "head".toCharArray()) {\r
-                       Integer times = map.get(ch);\r
-                       map.put(ch, (times == null ? 0 : times) + 1);\r
-               }\r
+        for (char ch : "head".toCharArray()) {\r
+            Integer times = map.get(ch);\r
+            map.put(ch, (times == null ? 0 : times) + 1);\r
+        }\r
 \r
-               for (char ch : map.keySet()) {\r
-                       verify(w, atLeast(map.get(ch))).write(ch);\r
-               }\r
-       }\r
+        for (char ch : map.keySet()) {\r
+            verify(w, atLeast(map.get(ch))).write(ch);\r
+        }\r
+    }\r
 \r
-       @Test\r
-       public void testBody() throws IOException {\r
+    @Test\r
+    public void testBody() throws IOException {\r
 \r
-               HTML5Gen gen = new HTML5Gen(w);\r
+        HTML5Gen gen = new HTML5Gen(w);\r
 \r
-               gen.body("attributes");\r
+        gen.body("attributes");\r
 \r
-               Map<Character, Integer> map = new TreeMap<>();\r
+        Map<Character, Integer> map = new TreeMap<>();\r
 \r
-               for (char ch : "body".toCharArray()) {\r
-                       Integer times = map.get(ch);\r
-                       map.put(ch, (times == null ? 0 : times) + 1);\r
-               }\r
-               for (char ch : "attributes".toCharArray()) {\r
-                       Integer times = map.get(ch);\r
-                       map.put(ch, (times == null ? 0 : times) + 1);\r
-               }\r
+        for (char ch : "body".toCharArray()) {\r
+            Integer times = map.get(ch);\r
+            map.put(ch, (times == null ? 0 : times) + 1);\r
+        }\r
+        for (char ch : "attributes".toCharArray()) {\r
+            Integer times = map.get(ch);\r
+            map.put(ch, (times == null ? 0 : times) + 1);\r
+        }\r
 \r
-               for (char ch : map.keySet()) {\r
-                       verify(w, atLeast(map.get(ch))).write(ch);\r
-               }\r
-       }\r
+        for (char ch : map.keySet()) {\r
+            verify(w, atLeast(map.get(ch))).write(ch);\r
+        }\r
+    }\r
 \r
-       @Test\r
-       public void testCharSet() throws IOException {\r
+    @Test\r
+    public void testCharSet() throws IOException {\r
 \r
-               HTML5Gen gen = new HTML5Gen(w);\r
+        HTML5Gen gen = new HTML5Gen(w);\r
 \r
-               gen.charset(charset);\r
+        gen.charset(charset);\r
 \r
-               Map<Character, Integer> map = new TreeMap<>();\r
+        Map<Character, Integer> map = new TreeMap<>();\r
 \r
-               for (char ch : CHARSET_LINE.toCharArray()) {\r
-                       Integer times = map.get(ch);\r
-                       map.put(ch, (times == null ? 0 : times) + 1);\r
-               }\r
+        for (char ch : CHARSET_LINE.toCharArray()) {\r
+            Integer times = map.get(ch);\r
+            map.put(ch, (times == null ? 0 : times) + 1);\r
+        }\r
 \r
-               for (char ch : map.keySet()) {\r
-                       verify(w, atLeast(map.get(ch))).write(ch);\r
-               }\r
-       }\r
+        for (char ch : map.keySet()) {\r
+            verify(w, atLeast(map.get(ch))).write(ch);\r
+        }\r
+    }\r
 }\r