Auto stash before revert of "Preparation for Microprofile"

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

Branch: refs/heads/master
Commit: f39497febab7a1edff4b9e96931a570dfbda5939
Parents: bcce708
Author: Andy Gumbrecht <agumbre...@tomitribe.com>
Authored: Mon Feb 12 21:23:20 2018 +0100
Committer: Andy Gumbrecht <agumbre...@tomitribe.com>
Committed: Mon Feb 12 21:23:20 2018 +0100

----------------------------------------------------------------------
 microprofile/microprofile-config/pom.xml        | 41 +++++++++++++++++
 .../config/MicroprofileConfigTest.java          | 37 ++++++++++++++++
 .../java/org/superbiz/config/BeanAppScoped.java | 20 +++++++++
 .../src/test/resources/arquillian.xml           | 33 ++++++++++++++
 microprofile/pom.xml                            | 46 ++++++++++++++++++++
 5 files changed, 177 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/f39497fe/microprofile/microprofile-config/pom.xml
----------------------------------------------------------------------
diff --git a/microprofile/microprofile-config/pom.xml 
b/microprofile/microprofile-config/pom.xml
new file mode 100644
index 0000000..cce11b2
--- /dev/null
+++ b/microprofile/microprofile-config/pom.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+-->
+<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/xsd/maven-4.0.0.xsd";>
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>microprofile</artifactId>
+    <groupId>org.apache.tomee</groupId>
+    <version>7.0.5-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>microprofile-config</artifactId>
+  <name>Microprofile :: Config</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.geronimo.config</groupId>
+      <artifactId>geronimo-config-impl</artifactId>
+    </dependency>
+  </dependencies>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tomee/blob/f39497fe/microprofile/microprofile-config/src/test/java/org/apache/tomee/microprofile/config/MicroprofileConfigTest.java
----------------------------------------------------------------------
diff --git 
a/microprofile/microprofile-config/src/test/java/org/apache/tomee/microprofile/config/MicroprofileConfigTest.java
 
b/microprofile/microprofile-config/src/test/java/org/apache/tomee/microprofile/config/MicroprofileConfigTest.java
new file mode 100644
index 0000000..25f2fc0
--- /dev/null
+++ 
b/microprofile/microprofile-config/src/test/java/org/apache/tomee/microprofile/config/MicroprofileConfigTest.java
@@ -0,0 +1,37 @@
+package org.apache.tomee.microprofile.config;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.EmptyAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.superbiz.config.BeanAppScoped;
+
+import java.net.URL;
+
+@RunWith(Arquillian.class)
+public class MicroprofileConfigTest {
+
+    @Deployment
+    public static Archive createDeployment() {
+        final WebArchive war = ShrinkWrap.create(WebArchive.class)
+                .addClass(BeanAppScoped.class)
+                .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
+
+        System.out.println(war.toString(true));
+        return war;
+    }
+
+    @ArquillianResource
+    private URL url;
+
+    @Test
+    public void should_get_config_parameter() {
+        Assert.fail("Not yet implemented for " + url);
+    }
+}

http://git-wip-us.apache.org/repos/asf/tomee/blob/f39497fe/microprofile/microprofile-config/src/test/java/org/superbiz/config/BeanAppScoped.java
----------------------------------------------------------------------
diff --git 
a/microprofile/microprofile-config/src/test/java/org/superbiz/config/BeanAppScoped.java
 
b/microprofile/microprofile-config/src/test/java/org/superbiz/config/BeanAppScoped.java
new file mode 100644
index 0000000..efe40ff
--- /dev/null
+++ 
b/microprofile/microprofile-config/src/test/java/org/superbiz/config/BeanAppScoped.java
@@ -0,0 +1,20 @@
+package org.superbiz.config;
+
+import org.eclipse.microprofile.config.inject.ConfigProperty;
+import javax.enterprise.context.ApplicationScoped;
+import org.jboss.arquillian.core.api.annotation.Inject;
+
+import javax.annotation.PostConstruct;
+
+@ApplicationScoped
+public class BeanAppScoped {
+
+    @PostConstruct
+    public void postConstruct() {
+        System.out.println("BeanAppScoped created");
+    }
+
+    @Inject
+    @ConfigProperty(name="my.string.value", defaultValue = "nothing")
+    private String myString;
+}

http://git-wip-us.apache.org/repos/asf/tomee/blob/f39497fe/microprofile/microprofile-config/src/test/resources/arquillian.xml
----------------------------------------------------------------------
diff --git a/microprofile/microprofile-config/src/test/resources/arquillian.xml 
b/microprofile/microprofile-config/src/test/resources/arquillian.xml
new file mode 100644
index 0000000..588506e
--- /dev/null
+++ b/microprofile/microprofile-config/src/test/resources/arquillian.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+
+    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.
+-->
+<arquillian xmlns="http://jboss.org/schema/arquillian";
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+            xsi:schemaLocation="http://jboss.org/schema/arquillian 
http://jboss.org/schema/arquillian/arquillian_1_0.xsd";>
+  <container qualifier="tomee" default="true">
+    <configuration>
+      <property name="httpPort">-1</property>
+      <property name="stopPort">-1</property>
+      <property name="dir">target/microprofile-config</property>
+      <property name="appWorkingDir">target/microprofile-config-work</property>
+      <property name="properties">
+        openejb.descriptors.output=true
+      </property>
+    </configuration>
+  </container>
+</arquillian>

http://git-wip-us.apache.org/repos/asf/tomee/blob/f39497fe/microprofile/pom.xml
----------------------------------------------------------------------
diff --git a/microprofile/pom.xml b/microprofile/pom.xml
new file mode 100644
index 0000000..3898810
--- /dev/null
+++ b/microprofile/pom.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+-->
+<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/xsd/maven-4.0.0.xsd";>
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>tomee-project</artifactId>
+    <groupId>org.apache.tomee</groupId>
+    <version>7.0.5-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>microprofile</artifactId>
+  <packaging>pom</packaging>
+  <name>Microprofile</name>
+
+  <modules>
+    <module>microprofile-config</module>
+    <module>microprofile-open-api</module>
+    <module>microprofile-fault-tolerance</module>
+    <module>microprofile-health</module>
+    <module>microprofile-jwt-auth</module>
+    <module>microprofile-metrics</module>
+    <module>microprofile-rest-client</module>
+    <module>microprofile-opentracing</module>
+  </modules>
+
+</project>
\ No newline at end of file

Reply via email to