deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rafab...@apache.org
Subject git commit: DELTASPIKE-370 - Add test-utils dependencies (maven-artifact) as an AuxiliaryArchiveAppender
Date Wed, 04 Jun 2014 19:24:11 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 5b2d19379 -> 38a17fe52


DELTASPIKE-370 - Add test-utils dependencies (maven-artifact) as an AuxiliaryArchiveAppender


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/38a17fe5
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/38a17fe5
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/38a17fe5

Branch: refs/heads/master
Commit: 38a17fe52aff949517aa88ff42732034e0f18437
Parents: 5b2d193
Author: Rafael Benevides <rafabene@gmail.com>
Authored: Wed Jun 4 16:23:53 2014 -0300
Committer: Rafael Benevides <rafabene@gmail.com>
Committed: Wed Jun 4 16:23:53 2014 -0300

----------------------------------------------------------------------
 .../arquillian/DeltaSpikeTestUtilExtension.java |  1 +
 .../TestUtilDependenciesAppender.java           | 33 ++++++++++++++++++++
 2 files changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/38a17fe5/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/DeltaSpikeTestUtilExtension.java
----------------------------------------------------------------------
diff --git a/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/DeltaSpikeTestUtilExtension.java
b/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/DeltaSpikeTestUtilExtension.java
index ee795be..ffc9e0f 100644
--- a/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/DeltaSpikeTestUtilExtension.java
+++ b/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/DeltaSpikeTestUtilExtension.java
@@ -27,5 +27,6 @@ public class DeltaSpikeTestUtilExtension implements LoadableExtension
     public void register(final ExtensionBuilder extensionBuilder)
     {
         extensionBuilder.service(AuxiliaryArchiveAppender.class, DeltaSpikeServerUtilAppender.class);
+        extensionBuilder.service(AuxiliaryArchiveAppender.class, TestUtilDependenciesAppender.class);
     }
 }

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/38a17fe5/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/TestUtilDependenciesAppender.java
----------------------------------------------------------------------
diff --git a/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/TestUtilDependenciesAppender.java
b/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/TestUtilDependenciesAppender.java
new file mode 100644
index 0000000..9c7373d
--- /dev/null
+++ b/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/arquillian/TestUtilDependenciesAppender.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.deltaspike.test.arquillian;
+
+import org.jboss.arquillian.container.test.spi.client.deployment.CachedAuxilliaryArchiveAppender;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
+
+public class TestUtilDependenciesAppender extends CachedAuxilliaryArchiveAppender
+{
+    @Override
+    protected Archive<?> buildArchive()
+    {
+        return ShrinkWrap.create(JavaArchive.class, "maven-artifact").addPackage("org.apache.maven.artifact.versioning");
+    }
+}


Mime
View raw message