[jboss-svn-commits] JBoss Common SVN: r4013 - arquillian/trunk/doc/reference/src/main/docbook/en-US.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Feb 9 07:02:53 EST 2010
Author: aslak
Date: 2010-02-09 07:02:53 -0500 (Tue, 09 Feb 2010)
New Revision: 4013
Modified:
arquillian/trunk/doc/reference/src/main/docbook/en-US/enrichment.xml
arquillian/trunk/doc/reference/src/main/docbook/en-US/examples.xml
arquillian/trunk/doc/reference/src/main/docbook/en-US/gettingstarted.xml
Log:
ARQ-40 small corrections
Modified: arquillian/trunk/doc/reference/src/main/docbook/en-US/enrichment.xml
===================================================================
--- arquillian/trunk/doc/reference/src/main/docbook/en-US/enrichment.xml 2010-02-09 11:54:56 UTC (rev 4012)
+++ arquillian/trunk/doc/reference/src/main/docbook/en-US/enrichment.xml 2010-02-09 12:02:53 UTC (rev 4013)
@@ -73,7 +73,7 @@
If a local bean is not found, then the enricher attempts a lookup for a remote bean.
</para>
- <programlisting>"test/" + unqualified interface name + "Bean/local"</programlisting>
+ <programlisting>"test/" + unqualified interface name + "Bean/remote"</programlisting>
<note>
<para>
Modified: arquillian/trunk/doc/reference/src/main/docbook/en-US/examples.xml
===================================================================
--- arquillian/trunk/doc/reference/src/main/docbook/en-US/examples.xml 2010-02-09 11:54:56 UTC (rev 4012)
+++ arquillian/trunk/doc/reference/src/main/docbook/en-US/examples.xml 2010-02-09 12:02:53 UTC (rev 4013)
@@ -67,7 +67,7 @@
import org.jboss.arquillian.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.Archives;
-import org.jboss.shrinkwrap.api.Paths;
+import org.jboss.shrinkwrap.api.ArchivePaths;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.shrinkwrap.impl.base.asset.ByteArrayAsset;
import org.junit.Assert;
@@ -83,7 +83,9 @@
public static JavaArchive createDeployment() {
return Archives.create("test.jar", JavaArchive.class)
.addClasses(GreetingManager.class, GreetingManagerBean.class)
- .addManifestResource(new ByteArrayAsset("<beans/>".getBytes()), Paths.create("beans.xml"));
+ .addManifestResource(
+ new ByteArrayAsset("<beans/>".getBytes()),
+ ArchivePaths.create("beans.xml"));
}
@Inject GreetingManager greetingManager;
@@ -118,8 +120,6 @@
<persistence-unit name="users" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/DefaultDS</jta-data-source>
- <class>com.acme.jpa.User</class>
- <exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
@@ -159,7 +159,9 @@
public static JavaArchive createDeployment() {
return Archives.create("test.jar", JavaArchive.class)
.addClasses(User.class, UserRepository.class, UserRepositoryBean.class)
- .addManifestResource("test-persistence.xml", Paths.create("persistence.xml"));
+ .addManifestResource(
+ "test-persistence.xml",
+ ArchivePaths.create("persistence.xml"));
}
private static final String FIRST_NAME = "Agent";
Modified: arquillian/trunk/doc/reference/src/main/docbook/en-US/gettingstarted.xml
===================================================================
--- arquillian/trunk/doc/reference/src/main/docbook/en-US/gettingstarted.xml 2010-02-09 11:54:56 UTC (rev 4012)
+++ arquillian/trunk/doc/reference/src/main/docbook/en-US/gettingstarted.xml 2010-02-09 12:02:53 UTC (rev 4013)
@@ -33,13 +33,6 @@
</para>
<programlisting role="XML"><![CDATA[<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.6</version>
- <scope>test</scope>
-</dependency>
-
-<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-junit</artifactId>
<version>1.0.0-SNAPSHOT</version>
@@ -51,14 +44,6 @@
</para>
<programlisting role="XML"><![CDATA[<dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <version>5.10</version>
- <classifier>jdk15</classifier>
- <scope>test</scope>
-</dependency>
-
-<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-testng</artifactId>
<version>1.0.0-SNAPSHOT</version>
@@ -137,7 +122,7 @@
<literal>@Deployment</literal> annotation that has the following signature:
</para>
- <programlisting role="JAVA"><![CDATA[public static JavaArchive createTestArchive();]]></programlisting>
+ <programlisting role="JAVA"><![CDATA[public static Archive<?> methodName();]]></programlisting>
<para>
We'll add both the EJB session bean's interface and implementation class to the archive so that we have
@@ -255,7 +240,7 @@
<para>
Next, we're going to return to pom.xml to add another dependency. Arquillian picks which container it's going
to use to deploy the test archive and negotiate test execution using the service provider mechanism, meaning
- which implementation of the <literal>ContainerDeployers</literal> SPI is on the classpath. We'll control
+ which implementation of the <literal>DeployableContainer</literal> SPI is on the classpath. We'll control
that through the use of Maven profiles. Add the following profiles to pom.xml:
</para>
More information about the jboss-svn-commits
mailing list