AAI-1523 Batch reformat aai-core
[aai/aai-common.git] / aai-core / src / test / java / org / onap / aai / serialization / queryformats / FormatTest.java
index 6838481..965e715 100644 (file)
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.serialization.queryformats;
 
+import static org.junit.Assert.*;
+
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 import org.onap.aai.AAISetup;
 import org.onap.aai.exceptions.AAIException;
 
-import static org.junit.Assert.*;
-
 public class FormatTest extends AAISetup {
 
-       @Rule
-       public ExpectedException expectedEx = ExpectedException.none();
+    @Rule
+    public ExpectedException expectedEx = ExpectedException.none();
 
-       @Test
-       public void validFormatTest() throws AAIException {
-               assertEquals(Format.count, Format.getFormat("count"));
-       }
+    @Test
+    public void validFormatTest() throws AAIException {
+        assertEquals(Format.count, Format.getFormat("count"));
+    }
 
-       @Test
-       public void invalidFormatTest() throws AAIException {
-               String format = "test";
-               expectedEx.expect(AAIException.class);
-               expectedEx.expectMessage("Unsupported format query parameter " + format + " in request.");
-               Format.getFormat(format);
-       }
+    @Test
+    public void invalidFormatTest() throws AAIException {
+        String format = "test";
+        expectedEx.expect(AAIException.class);
+        expectedEx.expectMessage("Unsupported format query parameter " + format + " in request.");
+        Format.getFormat(format);
+    }
 
-}
\ No newline at end of file
+}