You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/01/08 02:54:31 UTC

svn commit: r732590 - in /activemq/camel/trunk/components/camel-osgi/src/test: ./ java/ java/org/ java/org/apache/ java/org/apache/camel/ java/org/apache/camel/osgi/ java/org/apache/camel/osgi/converter/ resources/ resources/META-INF/ resources/META-IN...

Author: ningjiang
Date: Wed Jan  7 17:54:30 2009
New Revision: 732590

URL: http://svn.apache.org/viewvc?rev=732590&view=rev
Log:
CAMEL-1231 Added unit tests for camel-osgi component 

Added:
    activemq/camel/trunk/components/camel-osgi/src/test/
    activemq/camel/trunk/components/camel-osgi/src/test/java/
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/ActivatorTest.java   (with props)
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelMockBundle.java   (with props)
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelOsgiTestSupport.java   (with props)
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/OsgiFactoryFinderTest.java   (with props)
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/converter/
    activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/converter/MyTypeConverter.java   (with props)
    activemq/camel/trunk/components/camel-osgi/src/test/resources/
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/TypeConverter
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/file_test
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/timer_test
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/bean_test
    activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/file_test
    activemq/camel/trunk/components/camel-osgi/src/test/resources/log4j.properties   (with props)

Added: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/ActivatorTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/ActivatorTest.java?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/ActivatorTest.java (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/ActivatorTest.java Wed Jan  7 17:54:30 2009
@@ -0,0 +1,57 @@
+/**
+ * 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.camel.osgi;
+import junit.framework.TestCase;
+import org.springframework.osgi.mock.MockBundle;
+import org.springframework.osgi.mock.MockBundleContext;
+
+
+public class ActivatorTest extends CamelOsgiTestSupport {    
+       
+    public void testGetComponent() throws Exception {
+        Class clazz = Activator.getComponent("timer");
+        assertNull("Here should not find the timer component", clazz);
+        
+        clazz = null;
+        clazz = Activator.getComponent("timer_test");
+        assertNotNull("The timer_test component should not be null", clazz);
+        
+    }
+    
+    public void testGetLanaguge() throws Exception {
+        Class clazz = Activator.getLanguage("bean_test");
+        assertNotNull("The bean_test component should not be null", clazz);
+    }
+    
+    private boolean containsPackageName(String packageName, String[] packages) {
+        for (String name : packages) {
+            if (name.equals(packageName)) {
+                return true;
+            }
+        }
+        return false;
+    }
+    
+    public void testFindTypeConverterPackageNames() throws Exception {
+        String[] packages = Activator.findTypeConverterPackageNames();
+        assertEquals("We should find three converter package here", 3, packages.length);
+        
+        assertTrue("Here should contains org.apache.camel.osgi.coverter", containsPackageName("org.apache.camel.osgi.coverter", packages));
+    }
+
+}

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/ActivatorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/ActivatorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelMockBundle.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelMockBundle.java?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelMockBundle.java (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelMockBundle.java Wed Jan  7 17:54:30 2009
@@ -0,0 +1,79 @@
+/**
+ * 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.camel.osgi;
+
+import java.io.IOException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+
+import org.springframework.osgi.mock.MockBundle;
+
+
+/**
+ *  The mock bundle will make up a normal camel-components bundle
+ */
+public class CamelMockBundle extends MockBundle {
+    
+    private class ListEnumeration implements Enumeration {
+        private final List list;                    
+        private int index;
+        
+        public ListEnumeration(List list) {
+            this.list = list;
+        }
+
+        public boolean hasMoreElements() {
+            return list == null ? false : index < list.size();
+        }
+
+        public Object nextElement() {
+            Object result = null;
+            if (list != null) { 
+                result =  list.get(index);
+                index++;
+            } 
+            return result;         
+        }
+        
+    }
+    
+    private Enumeration getListEnumeration(String prefix, String entrys[]) {
+        List<String> list = new ArrayList<String>();
+        for (String entry : entrys) {            
+            list.add(prefix + entry);
+        }
+        return new ListEnumeration(list);
+    }
+
+    public Enumeration getEntryPaths(String path) {
+        Enumeration result = null;
+        if (Activator.META_INF_COMPONENT.equals(path)) {
+            String[] entries = new String[] {"timer_test", "file_test"};
+            result = getListEnumeration(Activator.META_INF_COMPONENT, entries);
+        }
+        if (Activator.META_INF_LANGUAGE.equals(path)) {
+            String[] entries = new String[] {"bean_test", "file_test"};
+            result = getListEnumeration(Activator.META_INF_LANGUAGE, entries);
+        }
+
+        return result;
+
+    }
+}

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelMockBundle.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelMockBundle.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelOsgiTestSupport.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelOsgiTestSupport.java?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelOsgiTestSupport.java (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelOsgiTestSupport.java Wed Jan  7 17:54:30 2009
@@ -0,0 +1,42 @@
+/**
+ * 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.camel.osgi;
+
+import junit.framework.TestCase;
+import org.springframework.osgi.mock.MockBundle;
+import org.springframework.osgi.mock.MockBundleContext;
+
+public class CamelOsgiTestSupport extends TestCase {
+    private Activator testActivator;
+    private MockBundleContext bundleContext = new MockBundleContext();
+    private MockBundle bundle = new CamelMockBundle();
+    
+    public void setUp() throws Exception {        
+        bundleContext.setBundle(bundle);
+        testActivator = new Activator();
+        testActivator.start(bundleContext);
+    }
+    
+    public void tearDown() throws Exception {
+        testActivator.stop(bundleContext);
+    }
+    
+    public Activator getActivator() {
+        return testActivator;
+    }
+
+}

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelOsgiTestSupport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/CamelOsgiTestSupport.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/OsgiFactoryFinderTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/OsgiFactoryFinderTest.java?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/OsgiFactoryFinderTest.java (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/OsgiFactoryFinderTest.java Wed Jan  7 17:54:30 2009
@@ -0,0 +1,45 @@
+/**
+ * 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.camel.osgi;
+
+import java.io.IOException;
+
+import org.apache.camel.util.NoFactoryAvailableException;
+
+public class OsgiFactoryFinderTest extends CamelOsgiTestSupport {
+    public void testFindClass() throws Exception {
+        OsgiFactoryFinder finder = new OsgiFactoryFinder("META-INF/services/org/apache/camel/component/");
+        Class clazz = finder.findClass("file_test", "strategy.factory.");
+        assertNotNull("We should get the file strategy factory here", clazz);
+        
+        try {
+            clazz = finder.findClass("nofile", "strategy.factory.");
+            fail("We should get exception here");
+        } catch (Exception ex) {
+            assertTrue("Should get NoFactoryAvailableException", ex instanceof NoFactoryAvailableException);
+        }
+        
+        try {
+            clazz = finder.findClass("file_test", "nostrategy.factory.");
+            fail("We should get exception here");
+        } catch (Exception ex) {
+            assertTrue("Should get IOException", ex instanceof IOException);
+        }
+    }
+
+}

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/OsgiFactoryFinderTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/OsgiFactoryFinderTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/converter/MyTypeConverter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/converter/MyTypeConverter.java?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/converter/MyTypeConverter.java (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/converter/MyTypeConverter.java Wed Jan  7 17:54:30 2009
@@ -0,0 +1,57 @@
+/**
+ * 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.camel.osgi.converter;
+
+import java.util.Collection;
+
+import org.apache.camel.Converter;
+import org.apache.camel.util.ObjectHelper;
+
+public final class MyTypeConverter {
+
+    /**
+     * Utility classes should not have a public constructor.
+     */
+    private MyTypeConverter() {
+    }
+    
+    /**
+     * Converts the given value to a boolean, handling strings or Boolean
+     * objects; otherwise returning false if the value could not be converted to
+     * a boolean
+     */
+    @Converter
+    public static boolean toBool(Object value) {
+        Boolean answer = toBoolean(value);
+        if (answer != null) {
+            return answer.booleanValue();
+        }
+        return false;
+    }
+    
+    /**
+     * Converts the given value to a Boolean, handling strings or Boolean
+     * objects; otherwise returning null if the value cannot be converted to a
+     * boolean
+     */
+    @Converter
+    public static Boolean toBoolean(Object value) {
+        return ObjectHelper.toBoolean(value);
+    }
+
+
+}

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/converter/MyTypeConverter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/java/org/apache/camel/osgi/converter/MyTypeConverter.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/TypeConverter
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/TypeConverter?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/TypeConverter (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/TypeConverter Wed Jan  7 17:54:30 2009
@@ -0,0 +1,18 @@
+#
+# 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.
+#
+
+org.apache.camel.osgi.coverter
\ No newline at end of file

Added: activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/file_test
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/file_test?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/file_test (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/file_test Wed Jan  7 17:54:30 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.
+#
+
+class=org.apache.camel.component.file.FileComponent
+strategy.factory.class=org.apache.camel.component.file.strategy.FileProcessStrategyFactory
\ No newline at end of file

Added: activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/timer_test
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/timer_test?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/timer_test (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/component/timer_test Wed Jan  7 17:54:30 2009
@@ -0,0 +1,18 @@
+#
+# 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.
+#
+
+class=org.apache.camel.component.timer.TimerComponent

Added: activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/bean_test
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/bean_test?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/bean_test (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/bean_test Wed Jan  7 17:54:30 2009
@@ -0,0 +1,18 @@
+#
+# 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.
+#
+
+class=org.apache.camel.language.bean.BeanLanguage

Added: activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/file_test
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/file_test?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/file_test (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/resources/META-INF/services/org/apache/camel/language/file_test Wed Jan  7 17:54:30 2009
@@ -0,0 +1,18 @@
+#
+# 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.
+#
+
+class=org.apache.camel.language.simple.FileLanguage
\ No newline at end of file

Added: activemq/camel/trunk/components/camel-osgi/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-osgi/src/test/resources/log4j.properties?rev=732590&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-osgi/src/test/resources/log4j.properties (added)
+++ activemq/camel/trunk/components/camel-osgi/src/test/resources/log4j.properties Wed Jan  7 17:54:30 2009
@@ -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.
+## ------------------------------------------------------------------------
+
+#
+# The logging properties used for eclipse testing, We want to see debug output on the console.
+#
+log4j.rootLogger=INFO, file
+
+# uncomment the following to enable camel debugging
+#log4j.logger.org.apache.camel=DEBUG
+
+# CONSOLE appender not used by default
+log4j.appender.out=org.apache.log4j.ConsoleAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+#log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
+log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+# File appender
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+log4j.appender.file.file=target/camel-ognl-test.log
\ No newline at end of file

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/resources/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/resources/log4j.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: activemq/camel/trunk/components/camel-osgi/src/test/resources/log4j.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain