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/15 15:42:08 UTC
[17/26] tomee git commit: Consistent package names for MP Rest Client
TCK.
Consistent package names for MP Rest Client TCK.
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/8ca673d5
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/8ca673d5
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/8ca673d5
Branch: refs/heads/master
Commit: 8ca673d5b068a53f9b802c359ae78673c86e6738
Parents: 8e46661
Author: Roberto Cortez <ra...@yahoo.com>
Authored: Wed Aug 8 19:18:23 2018 +0100
Committer: Roberto Cortez <ra...@yahoo.com>
Committed: Mon Aug 13 16:36:35 2018 +0100
----------------------------------------------------------------------
...croProfileRestClientTCKArchiveProcessor.java | 71 --------------------
.../MicroProfileRestClientTCKExtension.java | 27 --------
...croProfileRestClientTCKArchiveProcessor.java | 71 ++++++++++++++++++++
.../MicroProfileRestClientTCKExtension.java | 27 ++++++++
....jboss.arquillian.core.spi.LoadableExtension | 2 +-
5 files changed, 99 insertions(+), 99 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/8ca673d5/tck/microprofile-tck/rest-client/src/test/java/com/apache/openejb/tck/microprofile/rest/client/MicroProfileRestClientTCKArchiveProcessor.java
----------------------------------------------------------------------
diff --git a/tck/microprofile-tck/rest-client/src/test/java/com/apache/openejb/tck/microprofile/rest/client/MicroProfileRestClientTCKArchiveProcessor.java b/tck/microprofile-tck/rest-client/src/test/java/com/apache/openejb/tck/microprofile/rest/client/MicroProfileRestClientTCKArchiveProcessor.java
deleted file mode 100644
index f8692ab..0000000
--- a/tck/microprofile-tck/rest-client/src/test/java/com/apache/openejb/tck/microprofile/rest/client/MicroProfileRestClientTCKArchiveProcessor.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * 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 com.apache.openejb.tck.microprofile.rest.client;
-
-import org.eclipse.microprofile.rest.client.tck.WiremockArquillianTest;
-import org.eclipse.microprofile.rest.client.tck.interfaces.BaseClient;
-import org.eclipse.microprofile.rest.client.tck.interfaces.ChildClient;
-import org.eclipse.microprofile.rest.client.tck.interfaces.CustomHttpMethod;
-import org.eclipse.microprofile.rest.client.tck.interfaces.InterfaceUsingBeanParam;
-import org.eclipse.microprofile.rest.client.tck.interfaces.MissingPathParam;
-import org.eclipse.microprofile.rest.client.tck.interfaces.MissingPathParamSub;
-import org.eclipse.microprofile.rest.client.tck.interfaces.MissingUriTemplate;
-import org.eclipse.microprofile.rest.client.tck.interfaces.MultipleHTTPMethodAnnotations;
-import org.eclipse.microprofile.rest.client.tck.interfaces.MyBean;
-import org.eclipse.microprofile.rest.client.tck.interfaces.RootResource;
-import org.eclipse.microprofile.rest.client.tck.interfaces.SubResource;
-import org.eclipse.microprofile.rest.client.tck.interfaces.TemplateMismatch;
-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;
-
-public class MicroProfileRestClientTCKArchiveProcessor implements ApplicationArchiveProcessor {
- @Override
- public void process(final Archive<?> archive, final TestClass testClass) {
- if (archive instanceof WebArchive) {
- final WebArchive war = WebArchive.class.cast(archive);
-
- // TODO - this could be fixed in the TCK by adding the missing classes in the test archives
- JavaArchive restClientJar = ShrinkWrap
- .create(JavaArchive.class, "rest-client-tck-additional.jar")
- .addClass(WiremockArquillianTest.class)
- // missing in BeanParamTest
- .addClass(MyBean.class)
- .addClass(InterfaceUsingBeanParam.class)
- // missing in CustomHttpMethodTest
- .addClass(CustomHttpMethod.class)
- // missing in InheritanceTest
- .addClass(BaseClient.class)
- .addClass(ChildClient.class)
- // missing in InvalidInterfaceTest
- .addClass(MultipleHTTPMethodAnnotations.class)
- .addClass(MissingPathParam.class)
- .addClass(MissingPathParamSub.class)
- .addClass(MissingUriTemplate.class)
- .addClass(TemplateMismatch.class)
- // missing in SubResourceTest
- .addClass(RootResource.class)
- .addClass(SubResource.class)
- ;
-
- war.addAsLibraries(restClientJar);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/tomee/blob/8ca673d5/tck/microprofile-tck/rest-client/src/test/java/com/apache/openejb/tck/microprofile/rest/client/MicroProfileRestClientTCKExtension.java
----------------------------------------------------------------------
diff --git a/tck/microprofile-tck/rest-client/src/test/java/com/apache/openejb/tck/microprofile/rest/client/MicroProfileRestClientTCKExtension.java b/tck/microprofile-tck/rest-client/src/test/java/com/apache/openejb/tck/microprofile/rest/client/MicroProfileRestClientTCKExtension.java
deleted file mode 100644
index 80bdf39..0000000
--- a/tck/microprofile-tck/rest-client/src/test/java/com/apache/openejb/tck/microprofile/rest/client/MicroProfileRestClientTCKExtension.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * 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 com.apache.openejb.tck.microprofile.rest.client;
-
-import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor;
-import org.jboss.arquillian.core.spi.LoadableExtension;
-
-public class MicroProfileRestClientTCKExtension implements LoadableExtension {
- @Override
- public void register(final LoadableExtension.ExtensionBuilder extensionBuilder) {
- extensionBuilder.service(ApplicationArchiveProcessor.class, MicroProfileRestClientTCKArchiveProcessor.class);
- }
-}
http://git-wip-us.apache.org/repos/asf/tomee/blob/8ca673d5/tck/microprofile-tck/rest-client/src/test/java/com/apache/tomee/microprofile/tck/rest.client/MicroProfileRestClientTCKArchiveProcessor.java
----------------------------------------------------------------------
diff --git a/tck/microprofile-tck/rest-client/src/test/java/com/apache/tomee/microprofile/tck/rest.client/MicroProfileRestClientTCKArchiveProcessor.java b/tck/microprofile-tck/rest-client/src/test/java/com/apache/tomee/microprofile/tck/rest.client/MicroProfileRestClientTCKArchiveProcessor.java
new file mode 100644
index 0000000..db55416
--- /dev/null
+++ b/tck/microprofile-tck/rest-client/src/test/java/com/apache/tomee/microprofile/tck/rest.client/MicroProfileRestClientTCKArchiveProcessor.java
@@ -0,0 +1,71 @@
+/*
+ * 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 com.apache.tomee.microprofile.tck.rest.client;
+
+import org.eclipse.microprofile.rest.client.tck.WiremockArquillianTest;
+import org.eclipse.microprofile.rest.client.tck.interfaces.BaseClient;
+import org.eclipse.microprofile.rest.client.tck.interfaces.ChildClient;
+import org.eclipse.microprofile.rest.client.tck.interfaces.CustomHttpMethod;
+import org.eclipse.microprofile.rest.client.tck.interfaces.InterfaceUsingBeanParam;
+import org.eclipse.microprofile.rest.client.tck.interfaces.MissingPathParam;
+import org.eclipse.microprofile.rest.client.tck.interfaces.MissingPathParamSub;
+import org.eclipse.microprofile.rest.client.tck.interfaces.MissingUriTemplate;
+import org.eclipse.microprofile.rest.client.tck.interfaces.MultipleHTTPMethodAnnotations;
+import org.eclipse.microprofile.rest.client.tck.interfaces.MyBean;
+import org.eclipse.microprofile.rest.client.tck.interfaces.RootResource;
+import org.eclipse.microprofile.rest.client.tck.interfaces.SubResource;
+import org.eclipse.microprofile.rest.client.tck.interfaces.TemplateMismatch;
+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;
+
+public class MicroProfileRestClientTCKArchiveProcessor implements ApplicationArchiveProcessor {
+ @Override
+ public void process(final Archive<?> archive, final TestClass testClass) {
+ if (archive instanceof WebArchive) {
+ final WebArchive war = WebArchive.class.cast(archive);
+
+ // TODO - this could be fixed in the TCK by adding the missing classes in the test archives
+ JavaArchive restClientJar = ShrinkWrap
+ .create(JavaArchive.class, "rest-client-tck-additional.jar")
+ .addClass(WiremockArquillianTest.class)
+ // missing in BeanParamTest
+ .addClass(MyBean.class)
+ .addClass(InterfaceUsingBeanParam.class)
+ // missing in CustomHttpMethodTest
+ .addClass(CustomHttpMethod.class)
+ // missing in InheritanceTest
+ .addClass(BaseClient.class)
+ .addClass(ChildClient.class)
+ // missing in InvalidInterfaceTest
+ .addClass(MultipleHTTPMethodAnnotations.class)
+ .addClass(MissingPathParam.class)
+ .addClass(MissingPathParamSub.class)
+ .addClass(MissingUriTemplate.class)
+ .addClass(TemplateMismatch.class)
+ // missing in SubResourceTest
+ .addClass(RootResource.class)
+ .addClass(SubResource.class)
+ ;
+
+ war.addAsLibraries(restClientJar);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/tomee/blob/8ca673d5/tck/microprofile-tck/rest-client/src/test/java/com/apache/tomee/microprofile/tck/rest.client/MicroProfileRestClientTCKExtension.java
----------------------------------------------------------------------
diff --git a/tck/microprofile-tck/rest-client/src/test/java/com/apache/tomee/microprofile/tck/rest.client/MicroProfileRestClientTCKExtension.java b/tck/microprofile-tck/rest-client/src/test/java/com/apache/tomee/microprofile/tck/rest.client/MicroProfileRestClientTCKExtension.java
new file mode 100644
index 0000000..56fe764
--- /dev/null
+++ b/tck/microprofile-tck/rest-client/src/test/java/com/apache/tomee/microprofile/tck/rest.client/MicroProfileRestClientTCKExtension.java
@@ -0,0 +1,27 @@
+/*
+ * 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 com.apache.tomee.microprofile.tck.rest.client;
+
+import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor;
+import org.jboss.arquillian.core.spi.LoadableExtension;
+
+public class MicroProfileRestClientTCKExtension implements LoadableExtension {
+ @Override
+ public void register(final LoadableExtension.ExtensionBuilder extensionBuilder) {
+ extensionBuilder.service(ApplicationArchiveProcessor.class, MicroProfileRestClientTCKArchiveProcessor.class);
+ }
+}
http://git-wip-us.apache.org/repos/asf/tomee/blob/8ca673d5/tck/microprofile-tck/rest-client/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
----------------------------------------------------------------------
diff --git a/tck/microprofile-tck/rest-client/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension b/tck/microprofile-tck/rest-client/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
index 1af67c7..1edb9bf 100644
--- a/tck/microprofile-tck/rest-client/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
+++ b/tck/microprofile-tck/rest-client/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
@@ -1 +1 @@
-com.apache.openejb.tck.microprofile.rest.client.MicroProfileRestClientTCKExtension
+com.apache.tomee.microprofile.tck.rest.client.MicroProfileRestClientTCKExtension