This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit b7dbec9673021eae63e802329ec474c15505882e Author: Rene Cordier <rcord...@linagora.com> AuthorDate: Thu Dec 5 15:49:46 2019 +0700 [Refactoring] Move DefaultTextExtractorTest to JUnit 5 --- .../store/extractor/DefaultTextExtractorTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/extractor/DefaultTextExtractorTest.java b/mailbox/store/src/test/java/org/apache/james/mailbox/store/extractor/DefaultTextExtractorTest.java index a5c5c0c..49ae39e 100644 --- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/extractor/DefaultTextExtractorTest.java +++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/extractor/DefaultTextExtractorTest.java @@ -24,19 +24,19 @@ import static org.assertj.core.api.Assertions.assertThat; import java.io.InputStream; import org.apache.james.mailbox.extractor.TextExtractor; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; -public class DefaultTextExtractorTest { - private TextExtractor textExtractor; +class DefaultTextExtractorTest { + TextExtractor textExtractor; - @Before - public void setUp() { + @BeforeEach + void setUp() { textExtractor = new DefaultTextExtractor(); } @Test - public void textTest() throws Exception { + void textTest() throws Exception { InputStream inputStream = ClassLoader.getSystemResourceAsStream("documents/Text.txt"); assertThat(inputStream).isNotNull(); assertThat(textExtractor.extractContent(inputStream, "text/plain") @@ -45,7 +45,7 @@ public class DefaultTextExtractorTest { } @Test - public void textMicrosoftWorldTest() throws Exception { + void textMicrosoftWorldTest() throws Exception { InputStream inputStream = ClassLoader.getSystemResourceAsStream("documents/writter.docx"); assertThat(inputStream).isNotNull(); assertThat(textExtractor.extractContent( --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org