You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2018/08/16 20:08:05 UTC

tomee git commit: Fixed MP Config tests.

Repository: tomee
Updated Branches:
  refs/heads/master 90653e667 -> 2bb880c82


Fixed MP Config tests.


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/2bb880c8
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/2bb880c8
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/2bb880c8

Branch: refs/heads/master
Commit: 2bb880c8205220c86639c03e7c7e94a5f335e8de
Parents: 90653e6
Author: Roberto Cortez <ra...@yahoo.com>
Authored: Thu Aug 16 20:43:27 2018 +0100
Committer: Roberto Cortez <ra...@yahoo.com>
Committed: Thu Aug 16 20:43:27 2018 +0100

----------------------------------------------------------------------
 .../config/MicroProfileConfigTCKArchiveProcessor.java    | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/2bb880c8/tck/microprofile-tck/config/src/test/java/org/apache/tomee/microprofile/tck/config/MicroProfileConfigTCKArchiveProcessor.java
----------------------------------------------------------------------
diff --git a/tck/microprofile-tck/config/src/test/java/org/apache/tomee/microprofile/tck/config/MicroProfileConfigTCKArchiveProcessor.java b/tck/microprofile-tck/config/src/test/java/org/apache/tomee/microprofile/tck/config/MicroProfileConfigTCKArchiveProcessor.java
index 6679804..c2368f3 100644
--- a/tck/microprofile-tck/config/src/test/java/org/apache/tomee/microprofile/tck/config/MicroProfileConfigTCKArchiveProcessor.java
+++ b/tck/microprofile-tck/config/src/test/java/org/apache/tomee/microprofile/tck/config/MicroProfileConfigTCKArchiveProcessor.java
@@ -1,11 +1,13 @@
 package org.apache.tomee.microprofile.tck.config;
 
+import org.eclipse.microprofile.config.tck.converters.UpperCaseDuckConverter;
 import org.hamcrest.object.HasToString;
 import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor;
 import org.jboss.arquillian.test.spi.TestClass;
 import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
 import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.junit.Assert;
 
 import static org.apache.openejb.loader.JarLocation.jarLocation;
 
@@ -14,7 +16,12 @@ public class MicroProfileConfigTCKArchiveProcessor implements ApplicationArchive
     public void process(final Archive<?> archive, final TestClass testClass) {
         if (archive instanceof WebArchive) {
             final WebArchive war = WebArchive.class.cast(archive);
-            war.addAsLibrary(jarLocation(Assert.class));
+
+            // TODO - this could be fixed in the TCK by adding UpperCaseDuckConverter into org.eclipse.microprofile.config.tck.ConverterTest
+            final JavaArchive configJar = ShrinkWrap.create(JavaArchive.class, "config-tck-additional.jar")
+                                                    .addClass(UpperCaseDuckConverter.class);
+
+            war.addAsLibraries(configJar);
             war.addAsLibrary(jarLocation(HasToString.class));
         }
     }