<dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <skipTests>true</skipTests>
</properties>
<dependencies>
<!-- AJSC related dependencies -->
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
-
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.10.19</version>
<scope>test</scope>
</dependency>
+
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<artifactId>activemq-broker</artifactId>
<version>5.12.2</version>
</dependency>
-
+ <dependency>
+ <groupId>org.openecomp.aai.aai-service</groupId>
+ <artifactId>aai-schema</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.openecomp.aai.aai-service</groupId>
<artifactId>annotations</artifactId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
+ <skipTests>${skipTests}</skipTests>
<reuseForks>false</reuseForks>
<threadCount>1</threadCount>
<argLine>-javaagent:${project.build.directory}/agents/powermock-javaagent.jar
- -noverify</argLine>
+ -noverify</argLine>
<systemPropertyVariables>
<AJSC_HOME>.</AJSC_HOME>
<BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
</systemPropertyVariables>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
</configuration>
</plugin>
<plugin>
private ModelInjestor() {
try {
injestModels();
- } catch (FileNotFoundException | JAXBException e) {
- System.exit(1);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
}
}
* @throws FileNotFoundException the file not found exception
*/
private void injestModel (Version version) throws JAXBException, FileNotFoundException {
- String fileName = AAIConstants.AAI_HOME_ETC_OXM + "aai_oxm_" + version.toString() + ".xml";
- InputStream iStream = new FileInputStream(new File(fileName));
+ String fileName = "/oxm/"+ "aai_oxm_" + version.toString() + ".xml";
+ InputStream iStream = this.getClass().getResourceAsStream(fileName);
Map<String, Object> properties = new HashMap<String, Object>();
properties.put(JAXBContextProperties.OXM_METADATA_SOURCE, iStream);
final DynamicJAXBContext jaxbContext = DynamicJAXBContextFactory.createContextFromOXM(this.getClass().getClassLoader(), properties);
import org.apache.cxf.message.MessageImpl;
import org.apache.cxf.phase.PhaseInterceptorChain;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
+import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
+@Ignore
@RunWith(PowerMockRunner.class)
@PrepareForTest({PhaseInterceptorChain.class, AAIConfig.class})
+@PowerMockIgnore("javax.management.*")
public class AAIApiServerURLBaseTest {
@BeforeClass