Return-Path: Delivered-To: apmail-camel-commits-archive@www.apache.org Received: (qmail 90204 invoked from network); 29 Jan 2009 07:29:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2009 07:29:44 -0000 Received: (qmail 59903 invoked by uid 500); 29 Jan 2009 07:29:44 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 59879 invoked by uid 500); 29 Jan 2009 07:29:44 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 59870 invoked by uid 99); 29 Jan 2009 07:29:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jan 2009 23:29:44 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2009 07:29:33 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C1C682388B54; Thu, 29 Jan 2009 07:29:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r738783 [4/4] - in /camel/trunk: ./ apache-camel/ apache-camel/bundle/ components/ components/camel-bindy/ components/camel-bindy/src/ components/camel-bindy/src/main/ components/camel-bindy/src/main/java/ components/camel-bindy/src/main/ja... Date: Thu, 29 Jan 2009 07:29:08 -0000 To: commits@camel.apache.org From: davsclaus@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090129072910.C1C682388B54@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Propchange: camel/trunk/components/camel-bindy/src/test/data/big/csv.txt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/data/big/csv.txt ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/data/big/csv.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: camel/trunk/components/camel-bindy/src/test/data/csv.txt URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/data/csv.txt?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/data/csv.txt (added) +++ camel/trunk/components/camel-bindy/src/test/data/csv.txt Thu Jan 29 07:29:06 2009 @@ -0,0 +1,14 @@ + +01,,Albert,Cartier,BE12345678,Belgacom Ventage 10/10,1500,EUR,08-01-2009 +02,B,,Preud'Homme,XD12345678,Fortis Dynamic 15/15,2500,USD,08-01-2009 +03,C,Jacques,,BE12345678,Belgacom Ventage 10/10,1500,EUR,08-01-2009 +04,D,Michel,Dupond,,Fortis Dynamic 15/15,2500,USD,08-01-2009 +05,E,Annie,Dutronc,BE12345678,,1500,EUR,08-01-2009 +06,F,André,Rieux,XD12345678,Fortis Dynamic 15/15,,USD,08-01-2009 +07,G,Mylène,Farmer,BE12345678,Belgacom Ventage 10/10,1500,,08-01-2009 +08,H,Eva,Longoria,XD12345678,Fortis Dynamic 15/15,2500,USD, +,,,D,BE12345678,Belgacom Ventage 10/10,1500,,08-01-2009 +,,,D,BE12345678,,,,08-01-2009 +,,,D,BE12345678,,,, +10,J,Pauline,M,XD12345678,Fortis Dynamic 15/15,2500,USD,08-01-2009 +10,J,Pauline,M,XD12345678,Fortis Dynamic 15/15,2500.45,USD,08-01-2009 \ No newline at end of file Propchange: camel/trunk/components/camel-bindy/src/test/data/csv.txt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/data/csv.txt ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/data/csv.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: camel/trunk/components/camel-bindy/src/test/data2/csv.txt URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/data2/csv.txt?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/data2/csv.txt (added) +++ camel/trunk/components/camel-bindy/src/test/data2/csv.txt Thu Jan 29 07:29:06 2009 @@ -0,0 +1,14 @@ +order nr,client ref,first name, last name, isin code, instrument name, quantity,currency,date +01,,Albert,Cartier,BE12345678,Belgacom Ventage 10/10,1500,EUR,08-01-2009 +02,B,,Preud'Homme,XD12345678,Fortis Dynamic 15/15,2500,USD,08-01-2009 +03,C,Jacques,,BE12345678,Belgacom Ventage 10/10,1500,EUR,08-01-2009 +04,D,Michel,Dupond,,Fortis Dynamic 15/15,2500,USD,08-01-2009 +05,E,Annie,Dutronc,BE12345678,,1500,EUR,08-01-2009 +06,F,André,Rieux,XD12345678,Fortis Dynamic 15/15,,USD,08-01-2009 +07,G,Mylène,Farmer,BE12345678,Belgacom Ventage 10/10,1500,,08-01-2009 +08,H,Eva,Longoria,XD12345678,Fortis Dynamic 15/15,2500,USD, +,,,D,BE12345678,Belgacom Ventage 10/10,1500,,08-01-2009 +,,,D,BE12345678,,,,08-01-2009 +,,,D,BE12345678,,,, +10,J,Pauline,M,XD12345678,Fortis Dynamic 15/15,2500,USD,08-01-2009 +10,J,Pauline,M,XD12345678,Fortis Dynamic 15/15,2500,USD,08-01-2009 \ No newline at end of file Propchange: camel/trunk/components/camel-bindy/src/test/data2/csv.txt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/data2/csv.txt ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/data2/csv.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvMarshallTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvMarshallTest.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvMarshallTest.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvMarshallTest.java Thu Jan 29 07:29:06 2009 @@ -0,0 +1,108 @@ +/** + * 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.dataformat.bindy.csv; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.GregorianCalendar; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.camel.EndpointInject; +import org.apache.camel.Produce; +import org.apache.camel.ProducerTemplate; +import org.apache.camel.dataformat.bindy.model.complex.twoclassesandonelink.Client; +import org.apache.camel.dataformat.bindy.model.complex.twoclassesandonelink.Order; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.mock.MockEndpoint; +import org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration; +import org.junit.Test; +import org.springframework.config.java.annotation.Bean; +import org.springframework.config.java.annotation.Configuration; +import org.springframework.config.java.test.JavaConfigContextLoader; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests; + +@ContextConfiguration(locations = "org.apache.camel.dataformat.bindy.csv.BindyComplexCsvMarshallTest$ContextConfig", loader = JavaConfigContextLoader.class) +public class BindyComplexCsvMarshallTest extends AbstractJUnit4SpringContextTests { + + private List> models = new ArrayList>(); + private String result = "10,A1,Julia,Roberts,BE123456789,Belgium Ventage 10/12,150,USD,14-01-2009"; + + @Produce(uri = "direct:start") + private ProducerTemplate template; + + @EndpointInject(uri = "mock:result") + private MockEndpoint resultEndpoint; + + @Test + public void testMarshallMessage() throws Exception { + resultEndpoint.expectedBodiesReceived(result); + + template.sendBody(generateModel()); + + resultEndpoint.assertIsSatisfied(); + } + + private List> generateModel() { + Map model = new HashMap(); + + Order order = new Order(); + order.setOrderNr(10); + order.setAmount(new BigDecimal("150")); + order.setIsinCode("BE123456789"); + order.setInstrumentName("Belgium Ventage 10/12"); + order.setCurrency("USD"); + + Calendar calendar = new GregorianCalendar(); + calendar.set(2009, 0, 14); + order.setOrderDate(calendar.getTime()); + + Client client = new Client(); + client.setClientNr("A1"); + client.setFirstName("Julia"); + client.setLastName("Roberts"); + + order.setClient(client); + + model.put(order.getClass().getName(), order); + model.put(client.getClass().getName(), client); + + models.add(0, model); + + return models; + } + + @Configuration + public static class ContextConfig extends SingleRouteCamelConfiguration { + BindyCsvDataFormat camelDataFormat = new BindyCsvDataFormat("org.apache.camel.dataformat.bindy.model.complex.twoclassesandonelink"); + + @Override + @Bean + public RouteBuilder route() { + return new RouteBuilder() { + @Override + public void configure() { + from("direct:start").marshal(camelDataFormat).to("mock:result"); + } + }; + } + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvMarshallTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvMarshallTest.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvMarshallTest.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallTest.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallTest.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallTest.java Thu Jan 29 07:29:06 2009 @@ -0,0 +1,58 @@ +/** + * 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.dataformat.bindy.csv; + +import org.apache.camel.EndpointInject; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.mock.MockEndpoint; +import org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration; +import org.junit.Test; +import org.springframework.config.java.annotation.Bean; +import org.springframework.config.java.annotation.Configuration; +import org.springframework.config.java.test.JavaConfigContextLoader; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests; + +@ContextConfiguration(locations = "org.apache.camel.dataformat.bindy.csv.BindyComplexCsvUnmarshallTest$ContextConfig", loader = JavaConfigContextLoader.class) +public class BindyComplexCsvUnmarshallTest extends AbstractJUnit4SpringContextTests { + + @EndpointInject(uri = "mock:result") + private MockEndpoint resultEndpoint; + + @Test + public void testUnMarshallMessage() throws Exception { + resultEndpoint.expectedMessageCount(1); + resultEndpoint.assertIsSatisfied(); + } + + @Configuration + public static class ContextConfig extends SingleRouteCamelConfiguration { + BindyCsvDataFormat camelDataFormat = new BindyCsvDataFormat("org.apache.camel.dataformat.bindy.model.complex.twoclassesandonelink"); + + @Override + @Bean + public RouteBuilder route() { + return new RouteBuilder() { + @Override + public void configure() { + from("file://src/test/data?noop=true").unmarshal(camelDataFormat).to("mock:result"); + } + }; + } + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallTest.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallTest.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyCsvBigFileUnmarshallTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyCsvBigFileUnmarshallTest.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyCsvBigFileUnmarshallTest.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyCsvBigFileUnmarshallTest.java Thu Jan 29 07:29:06 2009 @@ -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 org.apache.camel.dataformat.bindy.csv; + +import java.util.List; + +import org.apache.camel.EndpointInject; +import org.apache.camel.Exchange; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.mock.MockEndpoint; +import org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration; +import org.junit.Test; +import org.springframework.config.java.annotation.Bean; +import org.springframework.config.java.annotation.Configuration; +import org.springframework.config.java.test.JavaConfigContextLoader; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests; +import static org.junit.Assert.assertEquals; + +@ContextConfiguration(locations = "org.apache.camel.dataformat.bindy.csv.BindyCsvBigFileUnmarshallTest$ContextConfig", loader = JavaConfigContextLoader.class) +public class BindyCsvBigFileUnmarshallTest extends AbstractJUnit4SpringContextTests { + + @EndpointInject(uri = "mock:result") + private MockEndpoint resultEndpoint; + + @Test + public void testUnMarshallMessage() throws Exception { + resultEndpoint.expectedMessageCount(1); + resultEndpoint.assertIsSatisfied(); + + assertCountRecords(); + } + + protected void assertCountRecords() { + Exchange exchange = resultEndpoint.getExchanges().get(0); + + List models = exchange.getIn().getBody(List.class); + assertEquals(10000, models.size()); + } + + @Configuration + public static class ContextConfig extends SingleRouteCamelConfiguration { + BindyCsvDataFormat camelDataFormat = new BindyCsvDataFormat("org.apache.camel.dataformat.bindy.model.simple.oneclass"); + + @Override + @Bean + public RouteBuilder route() { + return new RouteBuilder() { + @Override + public void configure() { + from("file://src/test/data/big?noop=true").unmarshal(camelDataFormat).to("mock:result"); + } + }; + } + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyCsvBigFileUnmarshallTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyCsvBigFileUnmarshallTest.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyCsvBigFileUnmarshallTest.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvMarshallTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvMarshallTest.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvMarshallTest.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvMarshallTest.java Thu Jan 29 07:29:06 2009 @@ -0,0 +1,102 @@ +/** + * 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.dataformat.bindy.csv; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.GregorianCalendar; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.camel.EndpointInject; +import org.apache.camel.Produce; +import org.apache.camel.ProducerTemplate; +import org.apache.camel.dataformat.bindy.model.simple.oneclass.Order; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.mock.MockEndpoint; +import org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration; +import org.junit.Test; +import org.springframework.config.java.annotation.Bean; +import org.springframework.config.java.annotation.Configuration; +import org.springframework.config.java.test.JavaConfigContextLoader; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests; + +@ContextConfiguration(locations = "org.apache.camel.dataformat.bindy.csv.BindySimpleCsvMarshallTest$ContextConfig", loader = JavaConfigContextLoader.class) +public class BindySimpleCsvMarshallTest extends AbstractJUnit4SpringContextTests { + + private List> models = new ArrayList>(); + private String result = "1,B2,Keira,Knightley,XX23456789,France OOO,450.45,EUR,14-01-2009"; + + @Produce(uri = "direct:start") + private ProducerTemplate template; + + @EndpointInject(uri = "mock:result") + private MockEndpoint resultEndpoint; + + @Test + public void testMarshallMessage() throws Exception { + resultEndpoint.expectedBodiesReceived(result); + + template.sendBody(generateModel()); + + resultEndpoint.assertIsSatisfied(); + } + + public List> generateModel() { + Map modelObjects = new HashMap(); + + Order order = new Order(); + order.setOrderNr(1); + order.setClientNr("B2"); + order.setFirstName("Keira"); + order.setLastName("Knightley"); + order.setAmount(new BigDecimal("450.45").setScale(2)); + order.setIsinCode("XX23456789"); + order.setInstrumentName("France OOO"); + order.setCurrency("EUR"); + + Calendar calendar = new GregorianCalendar(); + calendar.set(2009, 0, 14); + order.setOrderDate(calendar.getTime()); + + modelObjects.put(order.getClass().getName(), order); + + models.add(modelObjects); + + return models; + } + + @Configuration + public static class ContextConfig extends SingleRouteCamelConfiguration { + BindyCsvDataFormat camelDataFormat = new BindyCsvDataFormat("org.apache.camel.dataformat.bindy.model.simple.oneclass"); + + @Override + @Bean + public RouteBuilder route() { + return new RouteBuilder() { + @Override + public void configure() { + from("direct:start").marshal(camelDataFormat).to("mock:result"); + } + }; + } + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvMarshallTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvMarshallTest.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvMarshallTest.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvSkipFirstLineUnmarshallTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvSkipFirstLineUnmarshallTest.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvSkipFirstLineUnmarshallTest.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvSkipFirstLineUnmarshallTest.java Thu Jan 29 07:29:06 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.dataformat.bindy.csv; + +import org.apache.camel.EndpointInject; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.mock.MockEndpoint; +import org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration; +import org.junit.Test; +import org.springframework.config.java.annotation.Bean; +import org.springframework.config.java.annotation.Configuration; +import org.springframework.config.java.test.JavaConfigContextLoader; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests; + +@ContextConfiguration(locations = "org.apache.camel.dataformat.bindy.csv.BindySimpleCsvSkipFirstLineUnmarshallTest$ContextConfig", loader = JavaConfigContextLoader.class) +public class BindySimpleCsvSkipFirstLineUnmarshallTest extends AbstractJUnit4SpringContextTests { + @EndpointInject(uri = "mock:result") + private MockEndpoint resultEndpoint; + + @Test + public void testUnMarshallMessage() throws Exception { + resultEndpoint.expectedMessageCount(1); + resultEndpoint.assertIsSatisfied(); + } + + @Configuration + public static class ContextConfig extends SingleRouteCamelConfiguration { + BindyCsvDataFormat camelDataFormat = new BindyCsvDataFormat("org.apache.camel.dataformat.bindy.model.simple.oneclassandskipfirstline"); + + @Override + @Bean + public RouteBuilder route() { + return new RouteBuilder() { + @Override + public void configure() { + from("file://src/test/data2?noop=true").unmarshal(camelDataFormat).to("mock:result"); + } + }; + } + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvSkipFirstLineUnmarshallTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvSkipFirstLineUnmarshallTest.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvSkipFirstLineUnmarshallTest.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvUnmarshallTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvUnmarshallTest.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvUnmarshallTest.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvUnmarshallTest.java Thu Jan 29 07:29:06 2009 @@ -0,0 +1,58 @@ +/** + * 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.dataformat.bindy.csv; + +import org.apache.camel.EndpointInject; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.mock.MockEndpoint; +import org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration; +import org.junit.Test; +import org.springframework.config.java.annotation.Bean; +import org.springframework.config.java.annotation.Configuration; +import org.springframework.config.java.test.JavaConfigContextLoader; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests; + +@ContextConfiguration(locations = "org.apache.camel.dataformat.bindy.csv.BindySimpleCsvUnmarshallTest$ContextConfig", loader = JavaConfigContextLoader.class) +public class BindySimpleCsvUnmarshallTest extends AbstractJUnit4SpringContextTests { + + @EndpointInject(uri = "mock:result") + private MockEndpoint resultEndpoint; + + @Test + public void testUnMarshallMessage() throws Exception { + resultEndpoint.expectedMessageCount(1); + resultEndpoint.assertIsSatisfied(); + } + + @Configuration + public static class ContextConfig extends SingleRouteCamelConfiguration { + BindyCsvDataFormat camelDataFormat = new BindyCsvDataFormat("org.apache.camel.dataformat.bindy.model.simple.oneclass"); + + @Override + @Bean + public RouteBuilder route() { + return new RouteBuilder() { + @Override + public void configure() { + from("file://src/test/data?noop=true").unmarshal(camelDataFormat).to("mock:result"); + } + }; + } + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvUnmarshallTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvUnmarshallTest.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvUnmarshallTest.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Client.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Client.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Client.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Client.java Thu Jan 29 07:29:06 2009 @@ -0,0 +1,61 @@ +/** + * 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.dataformat.bindy.model.complex.twoclassesandonelink; + +import org.apache.camel.dataformat.bindy.annotation.DataField; + +public class Client { + + @DataField(pos = 1) + private String clientNr; + + @DataField(pos = 2) + private String firstName; + + @DataField(pos = 3) + private String lastName; + + public String getClientNr() { + return clientNr; + } + + public void setClientNr(String clientNr) { + this.clientNr = clientNr; + } + + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + @Override + public String toString() { + return "Model : " + Client.class.getName() + " : " + this.getClientNr() + ", " + this.getFirstName() + ", " + this.getLastName(); + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Client.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Client.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Client.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java Thu Jan 29 07:29:06 2009 @@ -0,0 +1,113 @@ +/** + * 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.dataformat.bindy.model.complex.twoclassesandonelink; + +import java.math.BigDecimal; +import java.util.Date; + +import org.apache.camel.dataformat.bindy.annotation.CsvRecord; +import org.apache.camel.dataformat.bindy.annotation.DataField; +import org.apache.camel.dataformat.bindy.annotation.Link; + +@CsvRecord(separator = ",") +public class Order { + + @DataField(pos = 0) + private int orderNr; + + @Link + private Client client; + + @DataField(pos = 4) + private String isinCode; + + @DataField(name = "Name", pos = 5) + private String instrumentName; + + @DataField(pos = 6, precision = 2) + private BigDecimal amount; + + @DataField(pos = 7) + private String currency; + + @DataField(pos = 8, pattern = "dd-MM-yyyy") + private Date orderDate; + + public int getOrderNr() { + return orderNr; + } + + public void setOrderNr(int orderNr) { + this.orderNr = orderNr; + } + + public Client getClient() { + return client; + } + + public void setClient(Client client) { + this.client = client; + } + + public String getIsinCode() { + return isinCode; + } + + public void setIsinCode(String code) { + isinCode = code; + } + + public String getInstrumentName() { + return instrumentName; + } + + public void setInstrumentName(String instrumentName) { + this.instrumentName = instrumentName; + } + + public BigDecimal getAmount() { + return amount; + } + + public void setAmount(BigDecimal amount) { + this.amount = amount; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public Date getOrderDate() { + return orderDate; + } + + public void setOrderDate(Date orderDate) { + this.orderDate = orderDate; + } + + @Override + public String toString() { + return ("Model : " + Order.class.getName() + " : " + this.getOrderNr() + ", " + this.getAmount().toString() + ", " + this.getIsinCode() + ", " + + this.getInstrumentName() + ", " + this.getCurrency()) + + ", " + this.getClient() + "," + this.getOrderDate(); + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java Thu Jan 29 07:29:06 2009 @@ -0,0 +1,134 @@ +/** + * 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.dataformat.bindy.model.simple.oneclass; + +import java.math.BigDecimal; +import java.util.Date; + +import org.apache.camel.dataformat.bindy.annotation.CsvRecord; +import org.apache.camel.dataformat.bindy.annotation.DataField; + +@CsvRecord(separator = ",") +public class Order { + + @DataField(pos = 0) + private int orderNr; + + @DataField(pos = 1) + private String clientNr; + + @DataField(pos = 2) + private String firstName; + + @DataField(pos = 3) + private String lastName; + + @DataField(pos = 4) + private String isinCode; + + @DataField(name = "Name", pos = 5) + private String instrumentName; + + @DataField(pos = 6, precision = 2) + private BigDecimal amount; + + @DataField(pos = 7) + private String currency; + + @DataField(pos = 8, pattern = "dd-MM-yyyy") + private Date orderDate; + + public String getClientNr() { + return clientNr; + } + + public void setClientNr(String clientNr) { + this.clientNr = clientNr; + } + + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public int getOrderNr() { + return orderNr; + } + + public void setOrderNr(int orderNr) { + this.orderNr = orderNr; + } + + public String getIsinCode() { + return isinCode; + } + + public void setIsinCode(String code) { + isinCode = code; + } + + public String getInstrumentName() { + return instrumentName; + } + + public void setInstrumentName(String instrumentName) { + this.instrumentName = instrumentName; + } + + public BigDecimal getAmount() { + return amount; + } + + public void setAmount(BigDecimal amount) { + this.amount = amount; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public Date getOrderDate() { + return orderDate; + } + + public void setOrderDate(Date orderDate) { + this.orderDate = orderDate; + } + + @Override + public String toString() { + return ("Model : " + Order.class.getName() + " : " + this.getOrderNr() + ", " + this.getAmount().toString() + ", " + this.getIsinCode() + ", " + + this.getInstrumentName() + ", " + this.getCurrency()) + + ", " + this.getClientNr() + ", " + this.getFirstName() + ", " + this.getLastName() + ", " + this.getOrderDate(); + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java (added) +++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java Thu Jan 29 07:29:06 2009 @@ -0,0 +1,133 @@ +/** + * 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.dataformat.bindy.model.simple.oneclassandskipfirstline; + +import java.util.Date; + +import org.apache.camel.dataformat.bindy.annotation.CsvRecord; +import org.apache.camel.dataformat.bindy.annotation.DataField; + +@CsvRecord(separator = ",", skipFirstLine = true) +public class Order { + + @DataField(pos = 0) + private int orderNr; + + @DataField(pos = 1) + private String clientNr; + + @DataField(pos = 2) + private String firstName; + + @DataField(pos = 3) + private String lastName; + + @DataField(pos = 4) + private String isinCode; + + @DataField(name = "Name", pos = 5) + private String instrumentName; + + @DataField(pos = 6) + private String amount; + + @DataField(pos = 7) + private String currency; + + @DataField(pos = 8, pattern = "dd-MM-yyyy") + private Date orderDate; + + public String getClientNr() { + return clientNr; + } + + public void setClientNr(String clientNr) { + this.clientNr = clientNr; + } + + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public int getOrderNr() { + return orderNr; + } + + public void setOrderNr(int orderNr) { + this.orderNr = orderNr; + } + + public String getIsinCode() { + return isinCode; + } + + public void setIsinCode(String code) { + isinCode = code; + } + + public String getInstrumentName() { + return instrumentName; + } + + public void setInstrumentName(String instrumentName) { + this.instrumentName = instrumentName; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public Date getOrderDate() { + return orderDate; + } + + public void setOrderDate(Date orderDate) { + this.orderDate = orderDate; + } + + @Override + public String toString() { + return ("Model : " + Order.class.getName() + " : " + this.getOrderNr() + ", " + this.getAmount() + ", " + this.getIsinCode() + ", " + this.getInstrumentName() + ", " + this + .getCurrency()) + + ", " + this.getClientNr() + ", " + this.getFirstName() + ", " + this.getLastName() + ", " + this.getOrderDate(); + } + +} Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: camel/trunk/components/camel-bindy/src/test/resources/log4j.properties URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/resources/log4j.properties?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/resources/log4j.properties (added) +++ camel/trunk/components/camel-bindy/src/test/resources/log4j.properties Thu Jan 29 07:29:06 2009 @@ -0,0 +1,35 @@ +## --------------------------------------------------------------------------- +## 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 during tests.. +# +log4j.rootLogger=INFO, file + +# CONSOLE appender not used by default +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d %-5p %c{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 %-5p %c{1} - %m %n +log4j.appender.file.file=target/camel-bindy-test.log + +# debug loging for Camel +log4j.logger.org.apache.camel.dataformat.bindy=info Propchange: camel/trunk/components/camel-bindy/src/test/resources/log4j.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/resources/log4j.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/resources/log4j.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: camel/trunk/components/camel-bindy/src/test/resources/log4j.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: camel/trunk/components/camel-bindy/src/test/resources/org/apache/camel/dataformat/bindy/csv/BindyCSVUnmarshallTest-context.xml URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/resources/org/apache/camel/dataformat/bindy/csv/BindyCSVUnmarshallTest-context.xml?rev=738783&view=auto ============================================================================== --- camel/trunk/components/camel-bindy/src/test/resources/org/apache/camel/dataformat/bindy/csv/BindyCSVUnmarshallTest-context.xml (added) +++ camel/trunk/components/camel-bindy/src/test/resources/org/apache/camel/dataformat/bindy/csv/BindyCSVUnmarshallTest-context.xml Thu Jan 29 07:29:06 2009 @@ -0,0 +1,32 @@ + + + + + + + + + + + \ No newline at end of file Propchange: camel/trunk/components/camel-bindy/src/test/resources/org/apache/camel/dataformat/bindy/csv/BindyCSVUnmarshallTest-context.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-bindy/src/test/resources/org/apache/camel/dataformat/bindy/csv/BindyCSVUnmarshallTest-context.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: camel/trunk/components/camel-bindy/src/test/resources/org/apache/camel/dataformat/bindy/csv/BindyCSVUnmarshallTest-context.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: camel/trunk/components/camel-bindy/src/test/resources/org/apache/camel/dataformat/bindy/csv/BindyCSVUnmarshallTest-context.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: camel/trunk/components/pom.xml URL: http://svn.apache.org/viewvc/camel/trunk/components/pom.xml?rev=738783&r1=738782&r2=738783&view=diff ============================================================================== --- camel/trunk/components/pom.xml (original) +++ camel/trunk/components/pom.xml Thu Jan 29 07:29:06 2009 @@ -37,6 +37,7 @@ camel-amqp camel-atom camel-bam + camel-bindy camel-cometd camel-csv camel-cxf Modified: camel/trunk/pom.xml URL: http://svn.apache.org/viewvc/camel/trunk/pom.xml?rev=738783&r1=738782&r2=738783&view=diff ============================================================================== --- camel/trunk/pom.xml (original) +++ camel/trunk/pom.xml Thu Jan 29 07:29:06 2009 @@ -196,6 +196,11 @@ org.apache.camel + camel-bindy + ${project.version} + + + org.apache.camel camel-cometd ${project.version}