Author: antelder
Date: Tue Apr 21 11:07:41 2009
New Revision: 767113
URL: http://svn.apache.org/viewvc?rev=767113&view=rev
Log:
Start of a testcase which show implemntation.jee pointing at an ear is
processed correctly
Added:
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/org/apache/tuscany/sca/implementation/jee/xml/JeeTestCaseFIXME.java
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/Helloworld.java
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/MockImplementationProviderFactory.java
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/META-INF/
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/META-INF/services/
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/myarchive.ear
(with props)
Added:
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/org/apache/tuscany/sca/implementation/jee/xml/JeeTestCaseFIXME.java
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/org/apache/tuscany/sca/implementation/jee/xml/JeeTestCaseFIXME.java?rev=767113&view=auto
==============================================================================
---
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/org/apache/tuscany/sca/implementation/jee/xml/JeeTestCaseFIXME.java
(added)
+++
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/org/apache/tuscany/sca/implementation/jee/xml/JeeTestCaseFIXME.java
Tue Apr 21 11:07:41 2009
@@ -0,0 +1,53 @@
+/*
+ * 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.tuscany.sca.implementation.jee.xml;
+
+import static org.junit.Assert.assertEquals;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import test.Helloworld;
+
+/**
+ */
+public class JeeTestCaseFIXME {
+
+
+ @Before
+ public void init() {
+ }
+
+ @Test
+ public void testSayHello() throws Exception {
+ SCADomain scaDomain = SCADomain.newInstance("http://localhost", "/",
"org/apache/tuscany/sca/implementation/jee/xml/TestJEE.composite");
+
+ Helloworld service = scaDomain.getService(Helloworld.class,
"TestJEE/HelloworldServiceBean_HelloworldService");
+
+ //assertEquals("hello beate", service.getGreetings("beate"));
+
+ scaDomain.close();
+ }
+
+ @After
+ public void end() {
+ }
+}
Added:
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/Helloworld.java
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/Helloworld.java?rev=767113&view=auto
==============================================================================
---
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/Helloworld.java
(added)
+++
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/Helloworld.java
Tue Apr 21 11:07:41 2009
@@ -0,0 +1,25 @@
+/*
+ * 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 test;
+
+public interface Helloworld {
+
+ String getGreetings(String name);
+}
Added:
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/MockImplementationProviderFactory.java
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/MockImplementationProviderFactory.java?rev=767113&view=auto
==============================================================================
---
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/MockImplementationProviderFactory.java
(added)
+++
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/java/test/MockImplementationProviderFactory.java
Tue Apr 21 11:07:41 2009
@@ -0,0 +1,44 @@
+/*
+ * 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 test;
+
+import org.apache.tuscany.sca.core.ExtensionPointRegistry;
+import org.apache.tuscany.sca.implementation.jee.JEEImplementation;
+import org.apache.tuscany.sca.provider.ImplementationProvider;
+import org.apache.tuscany.sca.provider.ImplementationProviderFactory;
+import org.apache.tuscany.sca.runtime.RuntimeComponent;
+
+public class MockImplementationProviderFactory implements
ImplementationProviderFactory<JEEImplementation>{
+
+ public MockImplementationProviderFactory(ExtensionPointRegistry
extensionPoints) {
+
+ }
+
+
+ public ImplementationProvider
createImplementationProvider(RuntimeComponent component,
+
JEEImplementation Implementation) {
+ return null;
+ }
+
+ public Class<JEEImplementation> getModelType() {
+ return null;
+ }
+
+}
Added:
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory?rev=767113&view=auto
==============================================================================
---
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory
(added)
+++
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory
Tue Apr 21 11:07:41 2009
@@ -0,0 +1,19 @@
+# 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.
+
+# Implementation class for the implementation extension
+test.MockImplementationProviderFactory;model=org.apache.tuscany.sca.implementation.jee.JEEImplementation
Added:
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/myarchive.ear
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/myarchive.ear?rev=767113&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
tuscany/branches/sca-java-1.x/modules/implementation-jee/src/test/resources/myarchive.ear
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream