camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" ...@silverbullet.dk>
Subject RE: svn commit: r669168 - /activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java
Date Wed, 18 Jun 2008 14:18:07 GMT
Hi

Checkout some commits by James where he tried to fix failing unit tests on Mac when you check
for files created using the java.io.File api. There is a few "issues" you need to do to make
it work in all platforms.

I do think it was in the file component in camel-core on of its unit test for generated file
name. FileProduceGeneratedFileNameTest

  File file = new File("target/" + id);
        // use absolute file to let unittest pass on all platforms
        file = file.getAbsoluteFile();
        assertEquals("The generated file should exists: " + file, true, file.exists());
    }


Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: ningjiang@apache.org [mailto:ningjiang@apache.org] 
Sent: 18. juni 2008 15:44
To: camel-commits@activemq.apache.org
Subject: svn commit: r669168 - /activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java

Author: ningjiang
Date: Wed Jun 18 06:44:08 2008
New Revision: 669168

URL: http://svn.apache.org/viewvc?rev=669168&view=rev
Log:
Try to fix the DumpToXmlTest test error again

Modified:
    activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java

Modified: activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java?rev=669168&r1=669167&r2=669168&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java
(original)
+++ activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java
Wed Jun 18 06:44:08 2008
@@ -32,9 +32,9 @@
         super.setUp();
     }
 
-    public void testDumplFilesToJaxb() throws Exception {        
-        File file = new File("target/camel/dump");
+    public void testDumplFilesToJaxb() throws Exception {
         Thread.sleep(2000);
+        File file = new File("target/camel/dump");
         assertTrue("The dump folder should exists", file.exists());
         assertEquals("There should be 2 dumped files", 2, file.list().length);
     }



Mime
View raw message