camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r762680 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/model/PolicyDefinition.java test/java/org/apache/camel/component/file/DirectoryCreateIssueTest.java
Date Tue, 07 Apr 2009 10:39:19 GMT
Author: ningjiang
Date: Tue Apr  7 10:39:19 2009
New Revision: 762680

URL: http://svn.apache.org/viewvc?rev=762680&view=rev
Log:
Fixed the test error of DirectoryCreateIsueTest

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/PolicyDefinition.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/DirectoryCreateIssueTest.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/PolicyDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/PolicyDefinition.java?rev=762680&r1=762679&r2=762680&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/PolicyDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/PolicyDefinition.java Tue
Apr  7 10:39:19 2009
@@ -42,12 +42,12 @@
 
     @XmlTransient
     public static final String PROPAGATION_REQUIRED = "PROPAGATION_REQUIRED";
+    @XmlTransient
+    protected Class<? extends Policy> type;
     @XmlAttribute(required = true)
     protected String ref;
     @XmlTransient
     private Policy policy;
-    @XmlTransient
-    protected Class<? extends Policy> type;
 
     public PolicyDefinition() {
     }

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/DirectoryCreateIssueTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/DirectoryCreateIssueTest.java?rev=762680&r1=762679&r2=762680&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/DirectoryCreateIssueTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/DirectoryCreateIssueTest.java
Tue Apr  7 10:39:19 2009
@@ -61,16 +61,16 @@
     }
 
     public void testFileCreatedAsDir() throws Exception {
-        MockEndpoint mock = getMockEndpoint("mock:result");
-        mock.expectedMessageCount(numFiles);
-
+        MockEndpoint mock = getMockEndpoint("mock:result");        
+        mock.expectedMessageCount(numFiles);         
         template.send("seda:testFileCreatedAsDir", new Processor() {
             public void process(Exchange exchange) {
                 Message in = exchange.getIn();
                 in.setBody("Contents of test file");
             }
         });
-
+        // wait a while for the file creation
+        Thread.sleep(1000);
         assertMockEndpointsSatisfied();
 
         for (int i = 0; i < numFiles; i++) {



Mime
View raw message