Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Move SeamAutowire tests to unit tests.
Browse files Browse the repository at this point in the history
Cleanup unnecessary files, classes, etc.
  • Loading branch information
Carlos Munoz committed May 8, 2013
1 parent 8edc2ad commit 3b12e2e
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 613 deletions.
71 changes: 22 additions & 49 deletions zanata-war/pom.xml
Expand Up @@ -179,6 +179,18 @@
<goal>run</goal>
</goals>
</execution>
<execution>
<id>prepare-arquillian-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="${project.basedir}/src/test/resources/arquillian/standalone.xml" tofile="${jboss.home}/standalone/configuration/zanata-standalone.xml"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down Expand Up @@ -395,50 +407,25 @@
</configuration>
</plugin>

<!-- Configure Failsafe to run in integration-test phase -->
<!-- Configure Failsafe to run in integration-test/verify phase -->
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<!-- Container (Arquillian tests) -->
<execution>
<id>integration-test</id>
<id>container-tests</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
<configuration>
<includes>
<include>**/*ITCase.java</include>
</includes>
<testNGArtifactName>none:none</testNGArtifactName>
</configuration>
</execution>
</executions>
<configuration>
<!--<redirectTestOutputToFile>false</redirectTestOutputToFile>
<printSummary>true</printSummary>
<forkMode>always</forkMode>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/AllIntegrationTests.tng.xml</suiteXmlFile>
</suiteXmlFiles>
<additionalClasspathElements>
<additionalClasspathElement>${project.basedir}/src/test/jboss-embedded-bootstrap</additionalClasspathElement>
<additionalClasspathElement>${project.build.directory}/zanata-seamtests/WEB-INF/classes</additionalClasspathElement>
<additionalClasspathElement>${project.build.directory}/zanata-seamtests</additionalClasspathElement>
</additionalClasspathElements>
<childDelegation>true</childDelegation>
<useSystemClassLoader>true</useSystemClassLoader>
<argLine xml:space="preserve">-Xmx1024m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=${project.build.directory} -Dsun.lang.ClassLoader.allowArraySyntax=true</argLine>
<classpathDependencyExcludes>
<classpathDependencyExclude>
&lt;!&ndash; collides with XMLLoginConfigImpl in jboss-embedded-all &ndash;&gt;
org.picketbox:picketbox
</classpathDependencyExclude>
</classpathDependencyExcludes>-->
<includes>
<include>**/*ITCase.java</include>
</includes>
</configuration>
</plugin>

<plugin>
Expand Down Expand Up @@ -596,20 +583,6 @@
</dependencies>
</plugin>

<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.3.Final</version>
<configuration>
<force>true</force>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<filename>${war.name}-${project.version}.war</filename>
<name>zanata.war</name>
</configuration>
</plugin>

</plugins>

<pluginManagement>
Expand Down
11 changes: 6 additions & 5 deletions zanata-war/src/test/java/org/zanata/RestTest.java
Expand Up @@ -235,11 +235,12 @@ public final ZanataProxyFactory createClientProxyFactory( String username, Strin
{
try
{
return new TestProxyFactory(new URI(getRestEndpointUrl()),
username,
apiKey,
null,
new VersionInfo("Test", "Test"));
return new ZanataProxyFactory(new URI(getRestEndpointUrl()),
username,
apiKey,
null,
new VersionInfo("Test", "Test"),
false);
}
catch (URISyntaxException e)
{
Expand Down
55 changes: 0 additions & 55 deletions zanata-war/src/test/java/org/zanata/ZanataCompatibilityTest.java

This file was deleted.

202 changes: 0 additions & 202 deletions zanata-war/src/test/java/org/zanata/ZanataDBUnitSeamTest.java

This file was deleted.

0 comments on commit 3b12e2e

Please sign in to comment.