Author: davsclaus Date: Sat Nov 10 10:36:05 2012 New Revision: 1407749 URL: http://svn.apache.org/viewvc?rev=1407749&view=rev Log: Fixed test
Modified: camel/branches/camel-2.10.x/ (props changed) camel/branches/camel-2.10.x/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailSplitAttachmentsTest.java Propchange: camel/branches/camel-2.10.x/ ------------------------------------------------------------------------------ Merged /camel/trunk:r1407748 Propchange: camel/branches/camel-2.10.x/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: camel/branches/camel-2.10.x/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailSplitAttachmentsTest.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailSplitAttachmentsTest.java?rev=1407749&r1=1407748&r2=1407749&view=diff ============================================================================== --- camel/branches/camel-2.10.x/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailSplitAttachmentsTest.java (original) +++ camel/branches/camel-2.10.x/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailSplitAttachmentsTest.java Sat Nov 10 10:36:05 2012 @@ -65,10 +65,16 @@ public class MailSplitAttachmentsTest ex Message second = mock.getReceivedExchanges().get(1).getIn(); assertEquals(1, first.getAttachments().size()); - assertEquals("logo.jpeg", first.getAttachments().keySet().iterator().next()); - assertEquals(1, second.getAttachments().size()); - assertEquals("license.txt", second.getAttachments().keySet().iterator().next()); + + String file1 = first.getAttachments().keySet().iterator().next(); + String file2 = second.getAttachments().keySet().iterator().next(); + + boolean logo = file1.equals("logo.jpeg") || file2.equals("logo.jpeg"); + boolean license = file1.equals("license.txt") || file2.equals("license.txt"); + + assertTrue("Should have logo.jpeg file attachment", logo); + assertTrue("Should have license.txt file attachment", license); } @Override