Reduce the number of problems in aai-common by removing unused imports
[aai/aai-common.git] / aai-core / src / test / java / org / onap / aai / concurrent / AaiCallableTest.java
index b1507b7..df5c144 100644 (file)
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.concurrent;
 
 import static org.junit.Assert.assertTrue;
-import java.lang.Object;
+
 import org.junit.Test;
 import org.onap.aai.AAISetup;
 import org.slf4j.MDC;
-import org.onap.aai.concurrent.AaiCallable;
 
 public class AaiCallableTest extends AAISetup {
-       @Test
-       public void testAaiCallable() {
-               MDC.put("test_name", "test_value");
-               
-               AaiCallable<Object> task = new AaiCallable<Object>() {
-                       @Override
-                       public Object process() {
-                               String mdcValue = MDC.get("test_name");
-                               assertTrue( "MDC value retained", "test_value".equals(mdcValue));
-                               return (new Object());
-                       }
-               };
-               try {
-                       task.call();
-               }
-               catch (Exception e) {
-                       e.printStackTrace();
-               }
-       }
+    @Test
+    public void testAaiCallable() {
+        MDC.put("test_name", "test_value");
+
+        AaiCallable<Object> task = new AaiCallable<Object>() {
+            @Override
+            public Object process() {
+                String mdcValue = MDC.get("test_name");
+                assertTrue("MDC value retained", "test_value".equals(mdcValue));
+                return (new Object());
+            }
+        };
+        try {
+            task.call();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
 }