This is an automated email from the ASF dual-hosted git repository.

juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git


The following commit(s) were added to refs/heads/master by this push:
     new d852e65  hopefully the test runs now..
d852e65 is described below

commit d852e652a397da5feffbb7e6a44c47f75456bbd2
Author: juanpablo <[email protected]>
AuthorDate: Thu May 2 23:12:48 2019 +0200

    hopefully the test runs now..
---
 .../test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/jspwiki-tika-searchprovider/src/test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java
 
b/jspwiki-tika-searchprovider/src/test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java
index e53dc43..42a335b 100644
--- 
a/jspwiki-tika-searchprovider/src/test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java
+++ 
b/jspwiki-tika-searchprovider/src/test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java
@@ -50,8 +50,8 @@ public class TikaSearchProviderTest {
     @Test
     void testGetAttachmentContent() throws Exception {
         engine.saveText( "test-tika", "blablablabla" );
-        byte[] filePng = Files.readAllBytes( Paths.get( 
TikaSearchProviderTest.class.getClassLoader().getResource( "favicon.png" 
).toURI() ) );
         byte[] filePdf = Files.readAllBytes( Paths.get( 
TikaSearchProviderTest.class.getClassLoader().getResource( "aaa-diagram.pdf" 
).toURI() ) );
+        byte[] filePng = Files.readAllBytes( Paths.get( 
TikaSearchProviderTest.class.getClassLoader().getResource( "favicon.png" 
).toURI() ) );
         engine.addAttachment( "test-tika", "aaa-diagram.pdf", filePdf );
         engine.addAttachment( "test-tika", "favicon.png", filePng );
 
@@ -66,7 +66,7 @@ public class TikaSearchProviderTest {
             Thread.sleep( 100L );
         }
 
-        Collection< SearchResult > res = waitForIndex( "favicon.png" , 
"testGetAttachmentContent" );
+        Collection< SearchResult > res = waitForIndex( "aaa-diagram.pdf" , 
"testGetAttachmentContent" );
         Assertions.assertNotNull( res );
         Assertions.assertEquals( 2, res.size(), debugSearchResults( res ) );
 

Reply via email to