Removing AJSC and moving to SpringBoot
[aai/search-data-service.git] / src / test / java / org / onap / aai / sa / rest / BulkRequestTest.java
index ae8f619..d085d04 100644 (file)
@@ -2,8 +2,8 @@
  * ============LICENSE_START=======================================================\r
  * org.onap.aai\r
  * ================================================================================\r
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
- * Copyright © 2017 Amdocs\r
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright © 2017-2018 Amdocs\r
  * ================================================================================\r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  * ============LICENSE_END=========================================================\r
- *\r
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
  */\r
 package org.onap.aai.sa.rest;\r
 \r
 import org.junit.Assert;\r
 import org.junit.Test;\r
+import org.junit.runner.RunWith;\r
+import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;\r
+import org.springframework.boot.test.context.SpringBootTest;\r
+import org.springframework.test.context.junit4.SpringRunner;\r
 \r
+@RunWith(SpringRunner.class)\r
+@SpringBootTest\r
+@AutoConfigureMockMvc\r
 public class BulkRequestTest {\r
 \r
     @Test\r
@@ -45,6 +50,7 @@ public class BulkRequestTest {
         Assert.assertEquals(BulkRequest.OperationType.DELETE, request.getOperationType());\r
         Assert.assertTrue(request.toString().contains("delete:"));\r
 \r
+\r
     }\r
 \r
     @Test\r
@@ -94,6 +100,7 @@ public class BulkRequestTest {
         Assert.assertNull(request.getOperationType());\r
         Assert.assertEquals("UNDEFINED", request.toString());\r
     }\r
+\r
     @Test\r
     public void testGetIndex(){\r
         BulkRequest request = new BulkRequest();\r