Permalink
Browse files

backport ARQ-89, ARQ-90, ARQ-91 fixes to tag

  • Loading branch information...
1 parent 622b861 commit 936ede6df3eef7e2aacaa2eaf40ae3abea9dd453 @pmuir pmuir committed Mar 10, 2010
@@ -46,15 +46,15 @@
The Eclipse Server Tools, a subproject of the Eclipse Web Tools Project (WTP), has support for launching most
major application servers, including JBoss AS 5. However, if you are using JBoss AS, you should consider using
JBoss Tools instead, which offers tighter integration with JBoss technologies. See either the <ulink
- src="http://www.eclipse.org/webtools/server/server.php">Server Tools documentation</ulink> or the <ulink
- src="http://docs.jboss.org/tools/3.0.1.GA/en/as/html/index.html">JBoss Tools documentation</ulink> for
+ url="http://www.eclipse.org/webtools/server/server.php">Server Tools documentation</ulink> or the <ulink
+ url="http://docs.jboss.org/tools/3.0.1.GA/en/as/html/index.html">JBoss Tools documentation</ulink> for
instructions on how to setup a container and start it in debug mode.
</para>
<para>
<!-- TODO migration the documentation from this blog entry into this guide -->
See <ulink
- src="http://maverikpro.wordpress.com/2007/11/26/remote-debug-a-web-application-using-eclipse">this blog
+ url="http://maverikpro.wordpress.com/2007/11/26/remote-debug-a-web-application-using-eclipse">this blog
entry</ulink> to learn how to start JBoss AS with JPDA enabled and how to get the Eclipse debugger to
connect to the remote process.
</para>
@@ -74,7 +74,10 @@ $ mvn test -Pjbossas-remote-60]]></programlisting>
</para>
<mediaobject>
- <imageobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/maven-properties-screen.png" format="PNG" align="center" scalefit="1"/>
+ </imageobject>
+ <imageobject role="html">
<imagedata fileref="images/maven-properties-screen.png" format="PNG" align="center"/>
</imageobject>
<caption>
@@ -95,7 +98,10 @@ $ mvn test -Pjbossas-remote-60]]></programlisting>
</para>
<mediaobject>
- <imageobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/testng-run-test.png" format="PNG" align="center" scalefit="1"/>
+ </imageobject>
+ <imageobject role="html">
<imagedata fileref="images/testng-run-test.png" format="PNG" align="center"/>
</imageobject>
<caption>
@@ -22,104 +22,107 @@
-->
<mediaobject>
- <imageobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/spi-overview-small.png" format="PNG" align="center" scalefit="1"/>
+ </imageobject>
+ <imageobject role="html">
<imagedata fileref="images/spi-overview-small.png" format="PNG" align="center"/>
</imageobject>
<caption>
<para>Arquillian test execution and SPI overview</para>
</caption>
</mediaobject>
- <para>
- This chapter will identify each of the SPIs and the purpose it serves.
- </para>
-
- <para>
- TODO: Finish me
- </para>
-
- <section id="extend.deployment">
- <title>@Deployment</title>
- <para></para>
- </section>
-
- <section id="extend.client">
- <title>Client Side</title>
-
- <section id="extend.client.deployment.auxiliaryarchivetappender">
- <title>AuxiliaryArchiveAppender</title>
- <para>
- Appending auxiliary archives to the final deployment.
- </para>
- </section>
-
- <section id="extend.client.deployment.auxiliaryarchiveprocessor">
- <title>AuxiliarArchiveProcessor</title>
- <para>
-
- </para>
- </section>
-
- <section id="extend.client.deployment.applicationachivegenerator">
- <title>ApplicatonArchiveGenerator</title>
- <para></para>
-
-<!--
- <section id="extend.client.deployment">
- <title>@Deployment</title>
- <para>
-
- </para>
- </section>
--->
- </section>
-
- <section id="extend.client.deployment.applicationarchiveprocessor">
- <title>ApplicationArchiveProcessor</title>
- <para>
- A post processor for the Application generated archive. Used for application packaging enhancements.
- </para>
- </section>
-
- <section id="extend.client.deployment.deploymentpackager">
- <title>DeploymentPackager</title>
- <para>Responsible for creating the deployable archive.</para>
- </section>
-
- <section id="extend.client.container">
- <title>DeployableContainers</title>
- <para>Container integration, life cycle control.</para>
- </section>
-
- <section id="extend.client.methodexecutor">
- <title>ContainerMethodExecutor</title>
- <para>Communication with the TestRunner inside the Container</para>
- </section>
-
- </section>
-
- <section id="extend.container">
- <title>Container Side</title>
-
- <section id="extend.container.testenrichers">
- <title>TestEnrichers</title>
- <para>Instance injection, @EJB/@Resource/@Inject.</para>
- </section>
-
- <section id="extend.container.testrunners">
- <title>TestRunners</title>
- <para>Execute the test case inside the container</para>
- <section id="extend.container.testrunners.testng">
- <title>TestNG</title>
- <para>..</para>
- </section>
- <section id="extend.container.testrunners.junit">
- <title>JUnit</title>
- <para>..</para>
- </section>
- </section>
-
- </section>
+<!-- <para>-->
+<!-- This chapter will identify each of the SPIs and the purpose it serves.-->
+<!-- </para>-->
+<!---->
+<!-- <para>-->
+<!-- TODO: Finish me-->
+<!-- </para>-->
+<!---->
+<!-- <section id="extend.deployment">-->
+<!-- <title>@Deployment</title>-->
+<!-- <para></para>-->
+<!-- </section>-->
+<!---->
+<!-- <section id="extend.client">-->
+<!-- <title>Client Side</title>-->
+<!-- -->
+<!-- <section id="extend.client.deployment.auxiliaryarchivetappender">-->
+<!-- <title>AuxiliaryArchiveAppender</title>-->
+<!-- <para>-->
+<!-- Appending auxiliary archives to the final deployment.-->
+<!-- </para>-->
+<!-- </section>-->
+<!---->
+<!-- <section id="extend.client.deployment.auxiliaryarchiveprocessor">-->
+<!-- <title>AuxiliarArchiveProcessor</title>-->
+<!-- <para>-->
+<!-- -->
+<!-- </para>-->
+<!-- </section>-->
+<!---->
+<!-- <section id="extend.client.deployment.applicationachivegenerator">-->
+<!-- <title>ApplicatonArchiveGenerator</title>-->
+<!-- <para></para>-->
+<!---->
+<!-- -->
+<!-- <section id="extend.client.deployment">-->
+<!-- <title>@Deployment</title>-->
+<!-- <para>-->
+<!-- -->
+<!-- </para>-->
+<!-- </section>-->
+<!---->
+<!-- </section>-->
+<!---->
+<!-- <section id="extend.client.deployment.applicationarchiveprocessor">-->
+<!-- <title>ApplicationArchiveProcessor</title>-->
+<!-- <para>-->
+<!-- A post processor for the Application generated archive. Used for application packaging enhancements. -->
+<!-- </para>-->
+<!-- </section>-->
+<!---->
+<!-- <section id="extend.client.deployment.deploymentpackager">-->
+<!-- <title>DeploymentPackager</title>-->
+<!-- <para>Responsible for creating the deployable archive.</para>-->
+<!-- </section>-->
+<!---->
+<!-- <section id="extend.client.container">-->
+<!-- <title>DeployableContainers</title>-->
+<!-- <para>Container integration, life cycle control.</para>-->
+<!-- </section>-->
+<!-- -->
+<!-- <section id="extend.client.methodexecutor">-->
+<!-- <title>ContainerMethodExecutor</title>-->
+<!-- <para>Communication with the TestRunner inside the Container</para>-->
+<!-- </section>-->
+<!---->
+<!-- </section>-->
+<!-- -->
+<!-- <section id="extend.container">-->
+<!-- <title>Container Side</title>-->
+<!-- -->
+<!-- <section id="extend.container.testenrichers">-->
+<!-- <title>TestEnrichers</title>-->
+<!-- <para>Instance injection, @EJB/@Resource/@Inject.</para>-->
+<!-- </section>-->
+<!-- -->
+<!-- <section id="extend.container.testrunners">-->
+<!-- <title>TestRunners</title>-->
+<!-- <para>Execute the test case inside the container</para>-->
+<!-- <section id="extend.container.testrunners.testng">-->
+<!-- <title>TestNG</title>-->
+<!-- <para>..</para>-->
+<!-- </section>-->
+<!-- <section id="extend.container.testrunners.junit">-->
+<!-- <title>JUnit</title>-->
+<!-- <para>..</para>-->
+<!-- </section>-->
+<!-- </section>-->
+<!-- -->
+<!-- </section>-->
<!--
vim:et:ts=3:sw=3:tw=120
-->
@@ -116,7 +116,7 @@
return ((f - 32) * 5 / 9);
}
- public double convertToFarenheight(double c) {
+ public double convertToFarenheit(double c) {
return ((c * 9 / 5) + 32);
}
@@ -206,9 +206,9 @@ public class TemperatureConverterTest {
}
@Test
- public void testConvertToFarenheight() {
- Assert.assertEquals(converter.convertToFarenheight(0d), 32d);
- Assert.assertEquals(converter.convertToFarenheight(100d), 212d);
+ public void testConvertToFarenheit() {
+ Assert.assertEquals(converter.convertToFarenheit(0d), 32d);
+ Assert.assertEquals(converter.convertToFarenheit(100d), 212d);
}
}]]></programlisting>
@@ -238,9 +238,9 @@ public class TemperatureConverterTest {
}
@Test
- public void testConvertToFarenheight() {
- Assert.assertEquals(converter.convertToFarenheight(0d), 32d);
- Assert.assertEquals(converter.convertToFarenheight(100d), 212d);
+ public void testConvertToFarenheit() {
+ Assert.assertEquals(converter.convertToFarenheit(0d), 32d);
+ Assert.assertEquals(converter.convertToFarenheit(100d), 212d);
}
}]]></programlisting>
@@ -265,7 +265,7 @@ public class TemperatureConverterTest {
<para>
If you haven't already, download the latest version of JBoss AS 6.0 from the <ulink
- src="http://www.jboss.org/jbossas/downloads/">JBoss AS download page</ulink>, extract the distribution and
+ url="http://www.jboss.org/jbossas/downloads/">JBoss AS download page</ulink>, extract the distribution and
start the container.
</para>
@@ -371,7 +371,10 @@ Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
</para>
<mediaobject>
- <imageobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/maven-properties-screen.png" format="PNG" align="center" scalefit="1"/>
+ </imageobject>
+ <imageobject role="html">
<imagedata fileref="images/maven-properties-screen.png" format="PNG" align="center"/>
</imageobject>
<caption>
@@ -391,7 +394,10 @@ Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
</para>
<mediaobject>
- <imageobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/junit-run-test.png" format="PNG" align="center" scalefit="1"/>
+ </imageobject>
+ <imageobject role="html">
<imagedata fileref="images/junit-run-test.png" format="PNG" align="center"/>
</imageobject>
<caption>
@@ -416,7 +422,10 @@ Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
</para>
<mediaobject>
- <imageobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/netbeans-project-configuration.png" format="PNG" align="center" scalefit="1"/>
+ </imageobject>
+ <imageobject role="html">
<imagedata fileref="images/netbeans-project-configuration.png" format="PNG" align="center"/>
</imageobject>
<caption>
@@ -431,7 +440,10 @@ Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
</para>
<mediaobject>
- <imageobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/netbeans-green-bar.png" format="PNG" align="center" scale="75"/>
+ </imageobject>
+ <imageobject role="html">
<imagedata fileref="images/netbeans-green-bar.png" format="PNG" align="center"/>
</imageobject>
<caption>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -80,7 +80,10 @@
</para>
<mediaobject>
- <imageobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/architecture-overview.png" format="PNG" align="center" scale="75"/>
+ </imageobject>
+ <imageobject role="html">
<imagedata fileref="images/architecture-overview.png" format="PNG" align="center"/>
</imageobject>
<caption>
@@ -2,8 +2,12 @@
import javax.ejb.Local;
-public @Local interface TemperatureConverter {
- double convertToCelcius(double f);
- double convertToFarenheight(double c);
+public @Local
+interface TemperatureConverter
+{
+ double convertToCelsius(double f);
+
+ double convertToFarenheit(double c);
+
boolean isTransactional();
}
@@ -10,12 +10,12 @@
@Resource EJBContext ctx;
@Override
- public double convertToCelcius(double f) {
+ public double convertToCelsius(double f) {
return ((f - 32) * 5 / 9);
}
@Override
- public double convertToFarenheight(double c) {
+ public double convertToFarenheit(double c) {
return ((c * 9 / 5) + 32);
}
@@ -18,14 +18,13 @@
import javax.inject.Inject;
-import junit.framework.Assert;
-
import org.jboss.arquillian.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ArchivePaths;
import org.jboss.shrinkwrap.api.Archives;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.shrinkwrap.impl.base.asset.ByteArrayAsset;
+import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
Oops, something went wrong.

0 comments on commit 936ede6

Please sign in to comment.