[jboss-svn-commits] JBoss Common SVN: r4543 - in arquillian/trunk: build and 4 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jun 24 04:39:47 EDT 2010


Author: thomas.diesler at jboss.com
Date: 2010-06-24 04:39:47 -0400 (Thu, 24 Jun 2010)
New Revision: 4543

Added:
   arquillian/trunk/examples/junit/src/test/java/com/acme/osgi/
   arquillian/trunk/examples/junit/src/test/java/com/acme/osgi/SimpleBundleTestCase.java
Modified:
   arquillian/trunk/.gitignore
   arquillian/trunk/build/pom.xml
   arquillian/trunk/containers/jbossas-remote-60/src/main/java/org/jboss/arquillian/jbossas/remote60/JBossASRemoteContainer.java
   arquillian/trunk/examples/junit/pom.xml
Log:
OSGi: Add a simple test case

Modified: arquillian/trunk/.gitignore
===================================================================
--- arquillian/trunk/.gitignore	2010-06-24 08:39:00 UTC (rev 4542)
+++ arquillian/trunk/.gitignore	2010-06-24 08:39:47 UTC (rev 4543)
@@ -1,10 +1,20 @@
+.project
+.settings/
+api/.classpath
+api/.project
+api/.settings/
 api/target
+build/.project
+build/.settings/
 containers/glassfish-embedded-30/target
 containers/jbossas-embedded-60/target
 containers/jbossas-local-51/target
 containers/jbossas-local-60/target
 containers/jbossas-remote-50/target
 containers/jbossas-remote-51/target
+containers/jbossas-remote-60/.classpath
+containers/jbossas-remote-60/.project
+containers/jbossas-remote-60/.settings/
 containers/jbossas-remote-60/target
 containers/openejb/target
 containers/openwebbeans-embedded/target
@@ -12,17 +22,37 @@
 containers/weld-ee-embedded/target
 containers/weld-embedded/target
 doc/reference/target
+examples/.project
+examples/.settings/
+examples/domain/.classpath
+examples/domain/.project
+examples/domain/.settings/
 examples/domain/target
+examples/junit/.classpath
+examples/junit/.project
+examples/junit/.settings/
 examples/junit/target
 examples/testng/target
 frameworks/jsfunit/target
+impl-base/.classpath
+impl-base/.project
+impl-base/.settings/
 impl-base/target
+junit/.classpath
+junit/.project
+junit/.settings/
 junit/target
 packagers/applicationarchive/target
+packagers/javaee/.classpath
+packagers/javaee/.project
+packagers/javaee/.settings/
 packagers/javaee/target
 protocols/local/target
 protocols/servlet-ee5/target
 protocols/servlet-ee6/target
+spi/.classpath
+spi/.project
+spi/.settings/
 spi/target
 testenrichers/cdi/target
 testenrichers/ejb/target

Modified: arquillian/trunk/build/pom.xml
===================================================================
--- arquillian/trunk/build/pom.xml	2010-06-24 08:39:00 UTC (rev 4542)
+++ arquillian/trunk/build/pom.xml	2010-06-24 08:39:47 UTC (rev 4543)
@@ -1,298 +1,301 @@
 <?xml version="1.0" encoding="UTF-8"?>
-	<!--
-  vi:ts=2:sw=2:expandtab:
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<!-- vi:ts=2:sw=2:expandtab: -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 
-	<!-- Parent -->
-	<parent>
-		<groupId>org.jboss</groupId>
-		<artifactId>jboss-parent</artifactId>
-		<version>5</version>
-		<relativePath />
-	</parent>
+  <!-- Parent -->
+  <parent>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-parent</artifactId>
+    <version>5</version>
+    <relativePath />
+  </parent>
 
-	<!-- Model Version -->
-	<modelVersion>4.0.0</modelVersion>
+  <!-- Model Version -->
+  <modelVersion>4.0.0</modelVersion>
 
-	<!-- Artifact Configuration -->
-	<groupId>org.jboss.arquillian</groupId>
-	<artifactId>arquillian-build</artifactId>
-	<version>1.0.0-SNAPSHOT</version>
-	<name>Arquillian Build</name>
-	<description>Arquillian Build Configuration</description>
-	<packaging>pom</packaging>
+  <!-- Artifact Configuration -->
+  <groupId>org.jboss.arquillian</groupId>
+  <artifactId>arquillian-build</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <name>Arquillian Build</name>
+  <description>Arquillian Build Configuration</description>
+  <packaging>pom</packaging>
 
-	<!-- Properties -->
-	<properties>
+  <!-- Properties -->
+  <properties>
 
-		<!-- Versioning -->
-		<version.junit_junit>4.6</version.junit_junit>
-		<version.testng_testng>5.12.1</version.testng_testng>
-		<version.shrinkwrap_shrinkwrap>1.0.0-alpha-9</version.shrinkwrap_shrinkwrap>
-		<version.jboss_embedded>1.0.0-alpha-1</version.jboss_embedded>
-		<version.javaee_api>6.0</version.javaee_api>
-		<version.jetty_jetty>6.1.9</version.jetty_jetty>
-		<version.mockito_all>1.8.3</version.mockito_all>
+    <!-- Versioning -->
+    <version.javaee_api>6.0</version.javaee_api>
+    <version.jboss_embedded>1.0.0-alpha-1</version.jboss_embedded>
+    <version.jboss_osgi_spi>1.0.7-SNAPSHOT</version.jboss_osgi_spi>
+    <version.jetty_jetty>6.1.9</version.jetty_jetty>
+    <version.junit_junit>4.6</version.junit_junit>
+    <version.mockito_all>1.8.3</version.mockito_all>
+    <version.shrinkwrap_shrinkwrap>1.0.0-alpha-9</version.shrinkwrap_shrinkwrap>
+    <version.testng_testng>5.12.1</version.testng_testng>
 
-	</properties>
+  </properties>
 
-	<!-- Maven 2 Repositories -->
-	<repositories>
-		<repository>
-			<id>jboss-public-repository-group</id>
-			<name>JBoss Public Repository Group</name>
-			<url>http://repository.jboss.org/nexus/content/groups/public/</url>
-			<layout>default</layout>
-			<releases>
-				<enabled>true</enabled>
-				<updatePolicy>never</updatePolicy>
-			</releases>
-			<snapshots>
-				<enabled>true</enabled>
-				<updatePolicy>never</updatePolicy>
-			</snapshots>
-		</repository>
-		<repository>
-			<id>jboss-deprecated</id>
-			<name>JBoss Deprecated</name>
-			<url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
-			<layout>default</layout>
-			<releases>
-				<enabled>true</enabled>
-				<updatePolicy>never</updatePolicy>
-			</releases>
-			<snapshots>
-				<enabled>false</enabled>
-			</snapshots>
-		</repository>
-	</repositories>
-	<pluginRepositories>
-		<pluginRepository>
-			<id>jboss-public-repository-group</id>
-			<name>JBoss Public Repository Group</name>
-			<url>http://repository.jboss.org/nexus/content/groups/public/</url>
-			<releases>
-				<enabled>true</enabled>
-			</releases>
-			<snapshots>
-				<enabled>true</enabled>
-			</snapshots>
-		</pluginRepository>
-	</pluginRepositories>
+  <!-- Maven 2 Repositories -->
+  <repositories>
+    <repository>
+      <id>jboss-public-repository-group</id>
+      <name>JBoss Public Repository Group</name>
+      <url>http://repository.jboss.org/nexus/content/groups/public/</url>
+      <layout>default</layout>
+      <releases>
+        <enabled>true</enabled>
+        <updatePolicy>never</updatePolicy>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+        <updatePolicy>never</updatePolicy>
+      </snapshots>
+    </repository>
+    <repository>
+      <id>jboss-deprecated</id>
+      <name>JBoss Deprecated</name>
+      <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
+      <layout>default</layout>
+      <releases>
+        <enabled>true</enabled>
+        <updatePolicy>never</updatePolicy>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+  <pluginRepositories>
+    <pluginRepository>
+      <id>jboss-public-repository-group</id>
+      <name>JBoss Public Repository Group</name>
+      <url>http://repository.jboss.org/nexus/content/groups/public/</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </pluginRepository>
+  </pluginRepositories>
 
-	<!-- SCM -->
-	<scm>
-		<connection>scm:svn:http://anonsvn.jboss.org/repos/common/arquillian/trunk</connection>
-		<developerConnection>scm:svn:https://svn.jboss.org/repos/common/arquillian/trunk</developerConnection>
-		<url>http://anonsvn.jboss.org/repos/common/arquillian/trunk</url>
-	</scm>
+  <!-- SCM -->
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/common/arquillian/trunk</connection>
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/common/arquillian/trunk</developerConnection>
+    <url>http://anonsvn.jboss.org/repos/common/arquillian/trunk</url>
+  </scm>
 
-	<!-- Issues -->
-	<issueManagement>
-		<system>jira</system>
-		<url>http://jira.jboss.com/jira/browse/ARQ</url>
-	</issueManagement>
+  <!-- Issues -->
+  <issueManagement>
+    <system>jira</system>
+    <url>http://jira.jboss.com/jira/browse/ARQ</url>
+  </issueManagement>
 
-	<!-- Licenses -->
-	<licenses>
-		<license>
-			<name>Apache License, Version 2.0</name>
-			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-		</license>
-	</licenses>
+  <!-- Licenses -->
+  <licenses>
+    <license>
+      <name>Apache License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+    </license>
+  </licenses>
 
-	<!-- Build -->
-	<build>
-		<plugins>
+  <!-- Build -->
+  <build>
+    <plugins>
 
-			<!-- JBoss-specific Packaging -->
-			<plugin>
-				<groupId>org.codehaus.mojo</groupId>
-				<artifactId>jboss-packaging-maven-plugin</artifactId>
-				<version>2.0-beta-1</version>
-				<extensions>true</extensions>
-			</plugin>
+      <!-- JBoss-specific Packaging -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>jboss-packaging-maven-plugin</artifactId>
+        <version>2.0-beta-1</version>
+        <extensions>true</extensions>
+      </plugin>
 
-			<!-- Compiler -->
-			<plugin>
-				<artifactId>maven-compiler-plugin</artifactId>
-				<inherited>true</inherited>
-				<configuration>
-					<source>1.5</source>
-					<target>1.5</target>
-					<showDeprecation>false</showDeprecation>
-					<showWarnings>true</showWarnings>
-					<optimize>true</optimize>
-					<compilerVersion>1.6</compilerVersion>
-					<fork>true</fork>
-					<argLine>-Xmx512M</argLine>
-					<executable>${JAVA_HOME}/bin/javac</executable>
-				</configuration>
-			</plugin>
+      <!-- Compiler -->
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <inherited>true</inherited>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+          <showDeprecation>false</showDeprecation>
+          <showWarnings>true</showWarnings>
+          <optimize>true</optimize>
+          <compilerVersion>1.6</compilerVersion>
+          <fork>true</fork>
+          <argLine>-Xmx512M</argLine>
+          <executable>${JAVA_HOME}/bin/javac</executable>
+        </configuration>
+      </plugin>
 
-			<!-- Surefire -->
-			<plugin>
-				<artifactId>maven-surefire-plugin</artifactId>
-				<configuration>
-					<redirectTestOutputToFile>true</redirectTestOutputToFile>
-					<trimStackTrace>false</trimStackTrace>
-					<printSummary>true</printSummary>
-					<includes>
-						<include>**/*TestCase.java</include>
-						<include>**/*TestSuite.java</include>
-					</includes>
-					<useFile>true</useFile>
-				</configuration>
-			</plugin>
+      <!-- Surefire -->
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+          <trimStackTrace>false</trimStackTrace>
+          <printSummary>true</printSummary>
+          <includes>
+            <include>**/*TestCase.java</include>
+            <include>**/*TestSuite.java</include>
+          </includes>
+          <useFile>true</useFile>
+        </configuration>
+      </plugin>
 
-			<!-- Maven Release Plugin Configuration -->
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-release-plugin</artifactId>
-				<configuration>
-					<tagBase>https://svn.jboss.org/repos/common/arquillian/tags</tagBase>
-				</configuration>
-			</plugin>
+      <!-- Maven Release Plugin Configuration -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-release-plugin</artifactId>
+        <configuration>
+          <tagBase>https://svn.jboss.org/repos/common/arquillian/tags</tagBase>
+        </configuration>
+      </plugin>
 
-			<!-- Enforce Maven Environment -->
-			<plugin>
-				<artifactId>maven-enforcer-plugin</artifactId>
-				<executions>
-					<execution>
-						<id>enforce-maven-environment</id>
-						<goals>
-							<goal>enforce</goal>
-						</goals>
-					</execution>
-				</executions>
-				<configuration>
-					<rules>
-						<requireMavenVersion>
-							<version>[2.0.9,)</version> <!-- Must be Maven 2.0.9 >= x > 2.1  -->
-						</requireMavenVersion>
-						<requireJavaVersion>
-							<version>1.6.0</version> <!-- Must be JDK6 -->
-						</requireJavaVersion>
-					</rules>
-				</configuration>
-			</plugin>
+      <!-- Enforce Maven Environment -->
+      <plugin>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-maven-environment</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <rules>
+            <requireMavenVersion>
+              <version>[2.0.9,)</version> <!-- Must be Maven 2.0.9 >= x > 2.1 -->
+            </requireMavenVersion>
+            <requireJavaVersion>
+              <version>1.6.0</version> <!-- Must be JDK6 -->
+            </requireJavaVersion>
+          </rules>
+        </configuration>
+      </plugin>
 
-		</plugins>
-	</build>
+    </plugins>
+  </build>
 
-	<!-- Dependency Management -->
-	<dependencyManagement>
-		<dependencies>
-			<dependency>
-				<groupId>org.jboss.shrinkwrap</groupId>
-				<artifactId>shrinkwrap-api</artifactId>
-				<version>${version.shrinkwrap_shrinkwrap}</version>
-			</dependency>
-			<dependency>
-				<groupId>org.jboss.shrinkwrap</groupId>
-				<artifactId>shrinkwrap-spi</artifactId>
-				<version>${version.shrinkwrap_shrinkwrap}</version>
-			</dependency>
-			<dependency>
-				<groupId>org.jboss.shrinkwrap</groupId>
-				<artifactId>shrinkwrap-impl-base</artifactId>
-				<version>${version.shrinkwrap_shrinkwrap}</version>
-			</dependency>
-			<dependency>
-				<groupId>org.jboss.shrinkwrap</groupId>
-				<artifactId>shrinkwrap-extension-glassfish</artifactId>
-				<version>${version.shrinkwrap_shrinkwrap}</version>
-			</dependency>
-			<dependency>
-				<groupId>org.jboss.shrinkwrap</groupId>
-				<artifactId>shrinkwrap-extension-vfs3</artifactId>
-				<version>${version.shrinkwrap_shrinkwrap}</version>
-			</dependency>
-			<dependency>
-				<groupId>javax</groupId>
-				<artifactId>javaee-api</artifactId>
-				<version>${version.javaee_api}</version>
-			</dependency>
-			<dependency>
-				<groupId>junit</groupId>
-				<artifactId>junit</artifactId>
-				<version>${version.junit_junit}</version>
-			</dependency>
-			<dependency>
-				<groupId>org.testng</groupId>
-				<artifactId>testng</artifactId>
-				<version>${version.testng_testng}</version>
-			</dependency>
+  <!-- Dependency Management -->
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.jboss.osgi</groupId>
+        <artifactId>jboss-osgi-spi</artifactId>
+        <version>${version.jboss_osgi_spi}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.shrinkwrap</groupId>
+        <artifactId>shrinkwrap-api</artifactId>
+        <version>${version.shrinkwrap_shrinkwrap}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.shrinkwrap</groupId>
+        <artifactId>shrinkwrap-spi</artifactId>
+        <version>${version.shrinkwrap_shrinkwrap}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.shrinkwrap</groupId>
+        <artifactId>shrinkwrap-impl-base</artifactId>
+        <version>${version.shrinkwrap_shrinkwrap}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.shrinkwrap</groupId>
+        <artifactId>shrinkwrap-extension-glassfish</artifactId>
+        <version>${version.shrinkwrap_shrinkwrap}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.shrinkwrap</groupId>
+        <artifactId>shrinkwrap-extension-vfs3</artifactId>
+        <version>${version.shrinkwrap_shrinkwrap}</version>
+      </dependency>
+      <dependency>
+        <groupId>javax</groupId>
+        <artifactId>javaee-api</artifactId>
+        <version>${version.javaee_api}</version>
+      </dependency>
+      <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <version>${version.junit_junit}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.testng</groupId>
+        <artifactId>testng</artifactId>
+        <version>${version.testng_testng}</version>
+      </dependency>
 
-			<dependency>
-				<groupId>org.mortbay.jetty</groupId>
-				<artifactId>jetty-embedded</artifactId>
-				<version>${version.jetty_jetty}</version>
-			</dependency>
-			<dependency>
-				<groupId>org.mockito</groupId>
-				<artifactId>mockito-all</artifactId>
-				<version>${version.mockito_all}</version>
-			</dependency>
+      <dependency>
+        <groupId>org.mortbay.jetty</groupId>
+        <artifactId>jetty-embedded</artifactId>
+        <version>${version.jetty_jetty}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.mockito</groupId>
+        <artifactId>mockito-all</artifactId>
+        <version>${version.mockito_all}</version>
+      </dependency>
 
-		</dependencies>
-	</dependencyManagement>
+    </dependencies>
+  </dependencyManagement>
 
-	<!-- Reporting -->
-	<reporting>
-		<plugins>
+  <!-- Reporting -->
+  <reporting>
+    <plugins>
 
-			<!-- Cobertura (Code Coverage) -->
-			<plugin>
-				<groupId>org.codehaus.mojo</groupId>
-				<artifactId>cobertura-maven-plugin</artifactId>
-				<version>2.3</version>
-				<configuration>
-					<formats>
-						<format>html</format>
-						<format>xml</format>
-					</formats>
-				</configuration>
-			</plugin>
+      <!-- Cobertura (Code Coverage) -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>cobertura-maven-plugin</artifactId>
+        <version>2.3</version>
+        <configuration>
+          <formats>
+            <format>html</format>
+            <format>xml</format>
+          </formats>
+        </configuration>
+      </plugin>
 
-			<!-- FindBugs -->
-			<plugin>
-				<groupId>org.codehaus.mojo</groupId>
-				<artifactId>findbugs-maven-plugin</artifactId>
-				<version>2.2</version>
-				<configuration>
-					<xmlOutput>true</xmlOutput>
-					<findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>
-				</configuration>
-			</plugin>
+      <!-- FindBugs -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>findbugs-maven-plugin</artifactId>
+        <version>2.2</version>
+        <configuration>
+          <xmlOutput>true</xmlOutput>
+          <findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>
+        </configuration>
+      </plugin>
 
-			<!-- JavaDoc / APIViz -->
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-javadoc-plugin</artifactId>
-				<version>2.5</version>
-				<configuration>
-					<doclet>org.jboss.apiviz.APIviz</doclet>
-					<docletArtifact>
-						<groupId>org.jboss.apiviz</groupId>
-						<artifactId>apiviz</artifactId>
-						<version>1.3.0.GA</version>
-					</docletArtifact>
-					<useStandardDocletOptions>true</useStandardDocletOptions>
-					<charset>UTF-8</charset>
-					<encoding>UTF-8</encoding>
-					<docencoding>UTF-8</docencoding>
-					<breakiterator>true</breakiterator>
-					<version>true</version>
-					<author>true</author>
-					<keywords>true</keywords>
-					<additionalparam>-sourceclasspath
-						${project.build.outputDirectory}</additionalparam>
-				</configuration>
-			</plugin>
+      <!-- JavaDoc / APIViz -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>2.5</version>
+        <configuration>
+          <doclet>org.jboss.apiviz.APIviz</doclet>
+          <docletArtifact>
+            <groupId>org.jboss.apiviz</groupId>
+            <artifactId>apiviz</artifactId>
+            <version>1.3.0.GA</version>
+          </docletArtifact>
+          <useStandardDocletOptions>true</useStandardDocletOptions>
+          <charset>UTF-8</charset>
+          <encoding>UTF-8</encoding>
+          <docencoding>UTF-8</docencoding>
+          <breakiterator>true</breakiterator>
+          <version>true</version>
+          <author>true</author>
+          <keywords>true</keywords>
+          <additionalparam>-sourceclasspath
+            ${project.build.outputDirectory}</additionalparam>
+        </configuration>
+      </plugin>
 
-		</plugins>
-	</reporting>
+    </plugins>
+  </reporting>
 </project>

Modified: arquillian/trunk/containers/jbossas-remote-60/src/main/java/org/jboss/arquillian/jbossas/remote60/JBossASRemoteContainer.java
===================================================================
--- arquillian/trunk/containers/jbossas-remote-60/src/main/java/org/jboss/arquillian/jbossas/remote60/JBossASRemoteContainer.java	2010-06-24 08:39:00 UTC (rev 4542)
+++ arquillian/trunk/containers/jbossas-remote-60/src/main/java/org/jboss/arquillian/jbossas/remote60/JBossASRemoteContainer.java	2010-06-24 08:39:47 UTC (rev 4543)
@@ -162,7 +162,7 @@
       }
       if (failure != null)
       {
-         throw new DeploymentException("Failed to deply " + deploymentName, failure);
+         throw new DeploymentException("Failed to deploy " + deploymentName, failure);
       }
       try 
       {

Modified: arquillian/trunk/examples/junit/pom.xml
===================================================================
--- arquillian/trunk/examples/junit/pom.xml	2010-06-24 08:39:00 UTC (rev 4542)
+++ arquillian/trunk/examples/junit/pom.xml	2010-06-24 08:39:47 UTC (rev 4543)
@@ -552,6 +552,11 @@
          <version>1.4.1</version> 
          <scope>test</scope>
       </dependency>
+      <dependency>
+        <groupId>org.jboss.osgi</groupId>
+        <artifactId>jboss-osgi-spi</artifactId>
+         <scope>test</scope>
+      </dependency>
       
       <dependency>
          <groupId>junit</groupId>

Added: arquillian/trunk/examples/junit/src/test/java/com/acme/osgi/SimpleBundleTestCase.java
===================================================================
--- arquillian/trunk/examples/junit/src/test/java/com/acme/osgi/SimpleBundleTestCase.java	                        (rev 0)
+++ arquillian/trunk/examples/junit/src/test/java/com/acme/osgi/SimpleBundleTestCase.java	2010-06-24 08:39:47 UTC (rev 4543)
@@ -0,0 +1,37 @@
+package com.acme.osgi;
+
+import java.io.InputStream;
+
+import org.jboss.arquillian.api.Deployment;
+import org.jboss.osgi.testing.OSGiManifestBuilder;
+import org.jboss.shrinkwrap.api.Asset;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+ at RunWith(org.jboss.arquillian.junit.Arquillian.class)
+public class SimpleBundleTestCase
+{
+   @Deployment
+   public static JavaArchive createTestArchive()
+   {
+      final JavaArchive archive = ShrinkWrap.create("example-bundle.jar", JavaArchive.class);
+      archive.setManifest(new Asset()
+      {
+         public InputStream openStream()
+         {
+            OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
+            builder.addBundleSymbolicName(archive.getName());
+            builder.addBundleManifestVersion(2);
+            return builder.openStream();
+         }
+      });
+      return archive;
+   }
+
+   @Test
+   public void testBundleAccess()
+   {
+   }
+}



More information about the jboss-svn-commits mailing list