Add tests for SdcSchema classes
[sdc.git] / catalog-dao / pom.xml
index d3c255a..c15a585 100644 (file)
@@ -1,5 +1,26 @@
+<!--
+============LICENSE_START=======================================================
+SDC
+================================================================================
+Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+================================================================================
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+        *
+     http://www.apache.org/licenses/LICENSE-2.0
+        *
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+============LICENSE_END=========================================================
+Modifications copyright (c) 2018 Nokia
+================================================================================
+-->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
 
        <groupId>org.openecomp.sdc.be</groupId>
        <parent>
                <groupId>org.openecomp.sdc</groupId>
                <artifactId>sdc-main</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.3.0-SNAPSHOT</version>
        </parent>
 
        <dependencies>
-       
                <!-- Common of SDC -->
                <dependency>
                        <groupId>org.openecomp.sdc</groupId>
@@ -20,7 +40,7 @@
                        <version>${project.version}</version>
                        <scope>provided</scope>
                </dependency>
-               
+
                <dependency>
                        <groupId>org.openecomp.sdc.be</groupId>
                        <artifactId>common-be</artifactId>
                <dependency>
                        <groupId>ch.qos.logback</groupId>
                        <artifactId>logback-classic</artifactId>
-            <version>${logback.version}</version>
-                       <scope>provided</scope>
-               </dependency>
-
-               <dependency>
-                       <groupId>ch.qos.logback</groupId>
-                       <artifactId>logback-core</artifactId>
-                        <version>${logback.version}</version>
+                       <version>${logback.version}</version>
                        <scope>provided</scope>
                </dependency>
 
                <dependency>
                        <groupId>org.elasticsearch</groupId>
                        <artifactId>elasticsearch</artifactId>
-                        <version>${elastic-search.version}</version>
+                       <version>${elastic-search.version}</version>
                        <scope>provided</scope>
                </dependency>
 
                        <version>${aspectj.version}</version>
                </dependency>
 
+               <dependency>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>spring-aop</artifactId>
+                       <version>${spring.version}</version>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>spring-tx</artifactId>
+                       <version>${spring.version}</version>
+               </dependency>
+
                <dependency>
                        <groupId>com.fasterxml.jackson.core</groupId>
                        <artifactId>jackson-databind</artifactId>
                        <version>${jackson.version}</version>
-                       <scope>provided</scope>
                </dependency>
 
                <dependency>
-                       <groupId>org.slf4j</groupId>
-                       <artifactId>slf4j-api</artifactId>
-            <version>${slf4j-api.version}</version>
-                       <scope>provided</scope>
+                       <groupId>com.fasterxml.jackson.core</groupId>
+                       <artifactId>jackson-core</artifactId>
+                       <version>${jackson.version}</version>
                </dependency>
+
                <dependency>
                        <groupId>com.googlecode.json-simple</groupId>
                        <artifactId>json-simple</artifactId>
                        <version>${json-simple.version}</version>
                        <scope>provided</scope>
                </dependency>
-               
+
                <dependency>
                        <groupId>org.apache.lucene</groupId>
                        <artifactId>lucene-regex</artifactId>
 
                <dependency>
                        <groupId>org.mockito</groupId>
-                       <artifactId>mockito-all</artifactId>
-                       <version>${mockito.version}</version>
+                       <artifactId>mockito-core</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+               <groupId>org.jmockit</groupId>
+                       <artifactId>jmockit</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>com.google.code.bean-matchers</groupId>
+                       <artifactId>bean-matchers</artifactId>
+                       <version>${bean-matchers.version}</version>
                        <scope>test</scope>
                </dependency>
 
                <dependency>
                        <groupId>org.apache.httpcomponents</groupId>
                        <artifactId>httpclient</artifactId>
-            <version>${httpclient.version}</version>
+                       <version>${httpclient.version}</version>
                        <scope>provided</scope>
                </dependency>
 
                </dependency>
 
                <!-- TEST -->
+               <dependency>
+                       <groupId>org.assertj</groupId>
+                       <artifactId>assertj-core</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-test</artifactId>
                        <scope>test</scope>
                </dependency>
 
-               <dependency>
-                       <groupId>org.springframework</groupId>
-                       <artifactId>spring-aop</artifactId>
-                       <version>${spring.version}</version>
-                       <scope>test</scope>
-               </dependency>
-
                <!-- TITAN -->
                <dependency>
                        <groupId>com.thinkaurelius.titan</groupId>
                </dependency>
 
                <dependency>
-                       <groupId>org.openecomp.sdc.sdc-titan-cassandra</groupId>
-                       <artifactId>sdc-titan-cassandra</artifactId>
-                       <version>${titan.version}</version>
+                       <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
+                       <artifactId>sdc-titan-cassandra</artifactId>
+                       <version>${sdc.titan.version}</version>
                        <scope>provided</scope>
                        <exclusions>
                                <exclusion>
                        <artifactId>cassandra-driver-core</artifactId>
                        <version>${cassandra.driver.version}</version>
                        <scope>provided</scope>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>io.netty</groupId>
+                                       <artifactId>netty-handler</artifactId>
+                               </exclusion>
+                       </exclusions>
                </dependency>
                <dependency>
                        <groupId>com.datastax.cassandra</groupId>
                        <version>${cassandra.driver.version}</version>
                        <scope>provided</scope>
                </dependency>
+               <dependency>
+                       <groupId>org.cassandraunit</groupId>
+                       <artifactId>cassandra-unit</artifactId>
+                       <version>${cassandra.unit.version}</version>
+                       <scope>test</scope>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>org.apache.cassandra</groupId>
+                                       <artifactId>cassandra-all</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.cassandra</groupId>
+                       <artifactId>cassandra-all</artifactId>
+                       <version>3.11.3</version>
+                       <scope>test</scope>
+               </dependency>
                <!-- CASSANDRA END -->
-
        </dependencies>
 
        <build>
 
                <pluginManagement>
                        <plugins>
-                               <!--This plugin's configuration is used to store Eclipse m2e settings 
+                               <!--This plugin's configuration is used to store Eclipse m2e settings
                                        only. It has no influence on the Maven build itself. -->
                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
                                        </configuration>
                                </plugin>
                                <plugin>
-                                       <groupId>org.apache.maven.plugins</groupId>
-                                       <artifactId>maven-deploy-plugin</artifactId>
-                                       <version>2.7</version>
-                                       <configuration>
-                                               <skip>true</skip>
-                                       </configuration>
+                                       <groupId>com.github.sylvainlaurent.maven</groupId>
+                                       <artifactId>yaml-json-validator-maven-plugin</artifactId>
+                                       <executions>
+                                               <execution>
+                                                       <id>validate</id>
+                                                       <phase>validate</phase>
+                                                       <goals>
+                                                               <goal>validate</goal>
+                                                       </goals>
+                                                       <configuration>
+                                                               <validationSets>
+                                                                       <validationSet>
+                                                                               <includes>
+                                                                                       <include>src/main/resources/**/*.y*ml</include>
+                                                                                       <include>src/test/resources/**/*.y*ml</include>
+                                                                               </includes>
+                                                                       </validationSet>
+                                                                       <validationSet>
+                                                                               <includes>
+                                                                                       <include>src/main/resources/**/*.json</include>
+                                                                                       <include>src/test/resources/**/*.json</include>
+                                                                               </includes>
+                                                                       </validationSet>
+                                                               </validationSets>
+                                                       </configuration>
+                                               </execution>
+                                       </executions>
                                </plugin>
                        </plugins>
                </pluginManagement>
        </build>
-</project>
+</project>
\ No newline at end of file