Commit 85e82b67 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

obsolete test classes removed

parent a9c7f316
......@@ -47,7 +47,6 @@
</archive>
</configuration>
</plugin>
-->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
......@@ -60,6 +59,7 @@
</dependency>
</dependencies>
</plugin>
-->
<!--
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
......@@ -89,6 +89,7 @@
</plugins>
</build>
<dependencyManagement>
<!--
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
......@@ -98,6 +99,7 @@
<type>pom</type>
</dependency>
</dependencies>
-->
</dependencyManagement>
<dependencies>
<dependency>
......@@ -115,7 +117,7 @@
<version>0.3-SNAPSHOT</version>
</dependency>
<!--
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
......@@ -135,7 +137,7 @@
<version>2.3.2.Final</version>
<scope>test</scope>
</dependency>
-->
<dependency>
......
package org.aktin.cda.etl;
import javax.inject.Inject;
import org.aktin.cda.CDAProcessor;
import org.aktin.cda.etl.xds.DocumentRepository;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(Arquillian.class)
public class TestEEInject {
//private static final String WEBINF_DIR = "src/main/webapp/WEB-INF";
@Deployment
public static WebArchive createDeployment() {
return ShrinkWrap.create(WebArchive.class)
//.addPackage("org.aktin.cda")
.addPackage(CDAProcessor.class.getPackage())
// .addPackage(RestService.class.getPackage())
.addPackage(DocumentRepository.class.getPackage())
.addClass(CDAImporterMockUp.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "META-INF/beans.xml")
//.setWebXML(new File(WEBINF_DIR,"web.xml"))
//.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
//.addAsWebInfResource(new File(WEBINF_DIR,"sun-jaxws.xml"))
;
}
@Inject
private DocumentRepository xdsService;
@Test
public void verifyInjectedBeans(){
// Assert.assertNotNull(restService);
Assert.assertNotNull(xdsService);
// TODO verify that CDAProcessor instanceof CDAImporter
}
@Test
public void assumeCorrectValidation(){
// TODO submit document to services
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment