AAI-1523 Batch reformat aai-core
[aai/aai-common.git] / aai-core / src / test / java / org / onap / aai / introspection / PropertyPredicatesTest.java
index 190e324..4473c8d 100644 (file)
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.introspection;
 
-import org.junit.Before;
+import static org.hamcrest.Matchers.hasItems;
+import static org.hamcrest.Matchers.not;
+import static org.junit.Assert.assertThat;
 
+import java.util.Set;
+
+import org.junit.Before;
 import org.junit.Test;
 import org.onap.aai.AAISetup;
 import org.onap.aai.introspection.exceptions.AAIUnknownObjectException;
 import org.springframework.test.annotation.DirtiesContext;
 
-import java.util.Set;
-
-import static org.hamcrest.Matchers.hasItems;
-import static org.hamcrest.Matchers.not;
-import static org.junit.Assert.assertThat;
-
 @DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class PropertyPredicatesTest extends AAISetup {
 
     private Loader loader;
     private ModelType introspectorFactoryType = ModelType.MOXY;
     private Introspector obj;
-    
+
     @Before
     public void setup() throws Exception {
         loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, schemaVersions.getDefaultVersion());
         obj = loader.introspectorFromName("generic-vnf");
     }
-    
+
     @Test
     public void includeInTestGeneration() throws AAIUnknownObjectException {
-        
+
         Set<String> props = obj.getProperties(PropertyPredicates.includeInTestGeneration());
 
-        assertThat("props not found", props,
-                not(hasItems("model-invariant-id", "model-version-id")));
+        assertThat("props not found", props, not(hasItems("model-invariant-id", "model-version-id")));
     }
-    
+
     @Test
     public void isVisible() throws AAIUnknownObjectException {
-        
+
         Set<String> props = obj.getProperties(PropertyPredicates.isVisible());
 
         assertThat("props not found", props, hasItems("model-invariant-id", "model-version-id"));
     }
-    
+
     @Test
     public void all() throws AAIUnknownObjectException {
-        
+
         Set<String> props = obj.getProperties();
 
         assertThat("all found", props, hasItems("model-invariant-id", "model-version-id"));
     }
-    
 
 }