ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1488280 - in /ace/trunk/org.apache.ace.deployment.rp.autoconf.itest: ./ .settings/ src/ src/org/ src/org/apache/ src/org/apache/ace/ src/org/apache/ace/deployment/ src/org/apache/ace/deployment/rp/ src/org/apache/ace/deployment/rp/autoconf/
Date Fri, 31 May 2013 15:41:50 GMT
Author: bramk
Date: Fri May 31 15:41:50 2013
New Revision: 1488280

URL: http://svn.apache.org/r1488280
Log:
ACE-358 Added ACE Autoconf ResourceProcessor itest

Added:
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.classpath
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.gitignore
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.project
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.settings/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.settings/org.eclipse.jdt.core.prefs
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/bnd.bnd
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/build.xml
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/deployment/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/deployment/rp/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/deployment/rp/autoconf/
    ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/deployment/rp/autoconf/AutoConfTest.java

Added: ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.classpath
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.classpath?rev=1488280&view=auto
==============================================================================
--- ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.classpath (added)
+++ ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.classpath Fri May 31 15:41:50 2013
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="bin" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="aQute.bnd.classpath.container"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Added: ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.gitignore
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.gitignore?rev=1488280&view=auto
==============================================================================
--- ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.gitignore (added)
+++ ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.gitignore Fri May 31 15:41:50 2013
@@ -0,0 +1,2 @@
+/bin/
+/generated/

Added: ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.project
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.project?rev=1488280&view=auto
==============================================================================
--- ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.project (added)
+++ ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.project Fri May 31 15:41:50 2013
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.apache.ace.deployment.rp.autoconf.itest</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>bndtools.core.bndbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>bndtools.core.bndnature</nature>
+	</natures>
+</projectDescription>

Added: ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.settings/org.eclipse.jdt.core.prefs?rev=1488280&view=auto
==============================================================================
--- ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.settings/org.eclipse.jdt.core.prefs
(added)
+++ ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/.settings/org.eclipse.jdt.core.prefs
Fri May 31 15:41:50 2013
@@ -0,0 +1,11 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6

Added: ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/bnd.bnd
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/bnd.bnd?rev=1488280&view=auto
==============================================================================
--- ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/bnd.bnd (added)
+++ ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/bnd.bnd Fri May 31 15:41:50 2013
@@ -0,0 +1,25 @@
+Test-Cases: ${classes;CONCRETE;EXTENDS;junit.framework.TestCase}
+-runbundles: org.mockito.mockito-all,\
+	org.apache.ace.deployment.rp.autoconf;version=latest,\
+	org.apache.ace.managementagent;version=latest,\
+	org.apache.ace.test;version=latest,\
+	org.apache.felix.metatype,\
+	org.apache.felix.dependencymanager,\
+	org.apache.felix.gogo.command,\
+	org.apache.felix.gogo.runtime,\
+	org.apache.felix.gogo.shell,\
+	org.apache.felix.configadmin
+-runee: JavaSE-1.6
+-runvm: -ea
+-runfw: org.apache.felix.framework
+-buildpath: osgi.core;version='[4.2,5)',\
+	osgi.cmpn,\
+	junit.osgi,\
+	org.mockito.mockito-all,\
+	org.apache.ace.test;version=latest
+-runsystempackages: sun.reflect
+
+# Wire against the management agent's packages
+Private-Package: org.apache.ace.deployment.rp.autoconf
+Import-Package: org.osgi.service.deploymentadmin.spi;managementagent=true,\
+	*
\ No newline at end of file

Added: ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/build.xml
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/build.xml?rev=1488280&view=auto
==============================================================================
--- ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/build.xml (added)
+++ ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/build.xml Fri May 31 15:41:50 2013
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="project" default="build">
+
+	<!-- -->
+
+	<import file="../cnf/build.xml" />
+</project>

Added: ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/deployment/rp/autoconf/AutoConfTest.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/deployment/rp/autoconf/AutoConfTest.java?rev=1488280&view=auto
==============================================================================
--- ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/deployment/rp/autoconf/AutoConfTest.java
(added)
+++ ace/trunk/org.apache.ace.deployment.rp.autoconf.itest/src/org/apache/ace/deployment/rp/autoconf/AutoConfTest.java
Fri May 31 15:41:50 2013
@@ -0,0 +1,36 @@
+/*
+ * 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.ace.deployment.rp.autoconf;
+
+import org.apache.ace.it.IntegrationTestBase;
+import org.osgi.framework.Constants;
+import org.osgi.service.deploymentadmin.spi.ResourceProcessor;
+
+public class AutoConfTest extends IntegrationTestBase {
+
+    /**
+     * A basic test that validates the rp is available and thus everything resolved.
+     * 
+     * @throws Exception
+     */
+    public void testAvailable() throws Exception {
+        ResourceProcessor rp = getService(ResourceProcessor.class, "(" + Constants.SERVICE_PID
+ "=org.osgi.deployment.rp.autoconf)");
+        assertNotNull("Expected to be able to locate the Autoconf ResourceProcessor", rp);
+    }
+}



Mime
View raw message