AAI-1523 Batch reformat aai-core
[aai/aai-common.git] / aai-core / src / test / java / org / onap / aai / util / RestURLEncoderTest.java
index 757a7bb..a41914d 100644 (file)
@@ -17,6 +17,7 @@
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.util;
 
 import static org.junit.Assert.assertEquals;
@@ -27,35 +28,35 @@ import org.junit.Test;
 
 public class RestURLEncoderTest {
 
-       @Test
-       public void testEncodeURL() throws Exception {
+    @Test
+    public void testEncodeURL() throws Exception {
 
-               String url = "nodeKeyTest&more-string strings";
-               String encodedUrl = "nodeKeyTest%26more-string%20strings";
+        String url = "nodeKeyTest&more-string strings";
+        String encodedUrl = "nodeKeyTest%26more-string%20strings";
 
-               String res = RestURLEncoder.encodeURL(url);
-               assertEquals(encodedUrl, res);
-       }
+        String res = RestURLEncoder.encodeURL(url);
+        assertEquals(encodedUrl, res);
+    }
 
-       @Test
-       public void testEncodeURL_plusSign() throws Exception {
+    @Test
+    public void testEncodeURL_plusSign() throws Exception {
 
-               String url = "nodeKeyTest+more+string";
-               String encodedUrl = "nodeKeyTest%2Bmore%2Bstring";
+        String url = "nodeKeyTest+more+string";
+        String encodedUrl = "nodeKeyTest%2Bmore%2Bstring";
 
-               String res = RestURLEncoder.encodeURL(url);
-               assertEquals(encodedUrl, res);
-       }
+        String res = RestURLEncoder.encodeURL(url);
+        assertEquals(encodedUrl, res);
+    }
 
-       @Test
-       public void testEncodeURL_noException() throws Exception {
-               // no exception expected, none thrown: passes.
-               try {
-                       String encodeResult =  RestURLEncoder.encodeURL("");
+    @Test
+    public void testEncodeURL_noException() throws Exception {
+        // no exception expected, none thrown: passes.
+        try {
+            String encodeResult = RestURLEncoder.encodeURL("");
 
-                       assertNotNull("Result is not null", encodeResult);
-               } catch (Exception e) {
-                       fail();
-               }
-       }
+            assertNotNull("Result is not null", encodeResult);
+        } catch (Exception e) {
+            fail();
+        }
+    }
 }