From ad3f931332cbf6296c7313a7fa2f12ed1845f225 Mon Sep 17 00:00:00 2001 From: "igor.petrenko" Date: Wed, 10 Jan 2024 13:01:33 +0200 Subject: [PATCH] oap-mail -> oap-mail + oap-mail-test --- .idea/checkstyle-idea.xml | 11 ++-- oap-mail-test/pom.xml | 59 ++++++++++++++++++ .../src/main/java/oap/mail/test/MailBox.java | 0 .../java/oap/mail/test/MessageAssertion.java | 0 .../java/oap/mail/test/MessagesAssertion.java | 0 .../src/test/java/oap/mail/MailQueueTest.java | 0 .../src/test/java/oap/mail/TemplateTest.java | 0 .../src/test/java/oap/mail/TestGMail.java | 0 .../mail/message/TextMessageParserTest.java | 0 .../message/xml/XmlMessageParserTest.java | 0 .../velocity/FormatDateDirectiveTest.java | 0 .../oap/mail/velocity/XPathDirectiveTest.java | 0 .../src/test/resources/logback-test.xml | 0 .../oap/mail/TemplateTest/include.txt | 0 .../message/TextMessageParserTest/att1.mail | 0 .../message/TextMessageParserTest/att2.mail | 0 .../TextMessageParserTest/subject.mail | 0 .../xml/XmlMessageParserTest/mail.xmail | 0 .../xml/XmlMessageParserTest/simple.xmail | 0 .../text-attachment.xmail | 0 .../mail/velocity/XPathDirectiveTest/test.xml | 0 .../src/test/resources/tux.jpeg | Bin .../src/test/resources/xjapanese.xmail | 0 pom.xml | 5 +- 24 files changed, 68 insertions(+), 7 deletions(-) create mode 100644 oap-mail-test/pom.xml rename {oap-mail => oap-mail-test}/src/main/java/oap/mail/test/MailBox.java (100%) rename {oap-mail => oap-mail-test}/src/main/java/oap/mail/test/MessageAssertion.java (100%) rename {oap-mail => oap-mail-test}/src/main/java/oap/mail/test/MessagesAssertion.java (100%) rename {oap-mail => oap-mail-test}/src/test/java/oap/mail/MailQueueTest.java (100%) rename {oap-mail => oap-mail-test}/src/test/java/oap/mail/TemplateTest.java (100%) rename {oap-mail => oap-mail-test}/src/test/java/oap/mail/TestGMail.java (100%) rename {oap-mail => oap-mail-test}/src/test/java/oap/mail/message/TextMessageParserTest.java (100%) rename {oap-mail => oap-mail-test}/src/test/java/oap/mail/message/xml/XmlMessageParserTest.java (100%) rename {oap-mail => oap-mail-test}/src/test/java/oap/mail/velocity/FormatDateDirectiveTest.java (100%) rename {oap-mail => oap-mail-test}/src/test/java/oap/mail/velocity/XPathDirectiveTest.java (100%) rename {oap-mail => oap-mail-test}/src/test/resources/logback-test.xml (100%) rename {oap-mail => oap-mail-test}/src/test/resources/oap/mail/TemplateTest/include.txt (100%) rename {oap-mail => oap-mail-test}/src/test/resources/oap/mail/message/TextMessageParserTest/att1.mail (100%) rename {oap-mail => oap-mail-test}/src/test/resources/oap/mail/message/TextMessageParserTest/att2.mail (100%) rename {oap-mail => oap-mail-test}/src/test/resources/oap/mail/message/TextMessageParserTest/subject.mail (100%) rename {oap-mail => oap-mail-test}/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/mail.xmail (100%) rename {oap-mail => oap-mail-test}/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/simple.xmail (100%) rename {oap-mail => oap-mail-test}/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/text-attachment.xmail (100%) rename {oap-mail => oap-mail-test}/src/test/resources/oap/mail/velocity/XPathDirectiveTest/test.xml (100%) rename {oap-mail => oap-mail-test}/src/test/resources/tux.jpeg (100%) rename {oap-mail => oap-mail-test}/src/test/resources/xjapanese.xmail (100%) diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml index 5d915f8..9d46599 100644 --- a/.idea/checkstyle-idea.xml +++ b/.idea/checkstyle-idea.xml @@ -1,18 +1,19 @@ - 8.7 - JavaOnlyWithTests - true + 10.10.0 + JavaOnly + true + true diff --git a/oap-mail-test/pom.xml b/oap-mail-test/pom.xml new file mode 100644 index 0000000..5fe6b93 --- /dev/null +++ b/oap-mail-test/pom.xml @@ -0,0 +1,59 @@ + + + + + 4.0.0 + oap-mail-test + oap-mail-test + + + oap + oap-mail-parent + ${oap-mail.project.version} + + + + + oap + oap-mail + ${project.version} + + + + oap + oap-stdlib-test + ${oap.deps.oap.version} + + + + org.projectlombok + lombok + ${oap.deps.lombok.version} + provided + + + diff --git a/oap-mail/src/main/java/oap/mail/test/MailBox.java b/oap-mail-test/src/main/java/oap/mail/test/MailBox.java similarity index 100% rename from oap-mail/src/main/java/oap/mail/test/MailBox.java rename to oap-mail-test/src/main/java/oap/mail/test/MailBox.java diff --git a/oap-mail/src/main/java/oap/mail/test/MessageAssertion.java b/oap-mail-test/src/main/java/oap/mail/test/MessageAssertion.java similarity index 100% rename from oap-mail/src/main/java/oap/mail/test/MessageAssertion.java rename to oap-mail-test/src/main/java/oap/mail/test/MessageAssertion.java diff --git a/oap-mail/src/main/java/oap/mail/test/MessagesAssertion.java b/oap-mail-test/src/main/java/oap/mail/test/MessagesAssertion.java similarity index 100% rename from oap-mail/src/main/java/oap/mail/test/MessagesAssertion.java rename to oap-mail-test/src/main/java/oap/mail/test/MessagesAssertion.java diff --git a/oap-mail/src/test/java/oap/mail/MailQueueTest.java b/oap-mail-test/src/test/java/oap/mail/MailQueueTest.java similarity index 100% rename from oap-mail/src/test/java/oap/mail/MailQueueTest.java rename to oap-mail-test/src/test/java/oap/mail/MailQueueTest.java diff --git a/oap-mail/src/test/java/oap/mail/TemplateTest.java b/oap-mail-test/src/test/java/oap/mail/TemplateTest.java similarity index 100% rename from oap-mail/src/test/java/oap/mail/TemplateTest.java rename to oap-mail-test/src/test/java/oap/mail/TemplateTest.java diff --git a/oap-mail/src/test/java/oap/mail/TestGMail.java b/oap-mail-test/src/test/java/oap/mail/TestGMail.java similarity index 100% rename from oap-mail/src/test/java/oap/mail/TestGMail.java rename to oap-mail-test/src/test/java/oap/mail/TestGMail.java diff --git a/oap-mail/src/test/java/oap/mail/message/TextMessageParserTest.java b/oap-mail-test/src/test/java/oap/mail/message/TextMessageParserTest.java similarity index 100% rename from oap-mail/src/test/java/oap/mail/message/TextMessageParserTest.java rename to oap-mail-test/src/test/java/oap/mail/message/TextMessageParserTest.java diff --git a/oap-mail/src/test/java/oap/mail/message/xml/XmlMessageParserTest.java b/oap-mail-test/src/test/java/oap/mail/message/xml/XmlMessageParserTest.java similarity index 100% rename from oap-mail/src/test/java/oap/mail/message/xml/XmlMessageParserTest.java rename to oap-mail-test/src/test/java/oap/mail/message/xml/XmlMessageParserTest.java diff --git a/oap-mail/src/test/java/oap/mail/velocity/FormatDateDirectiveTest.java b/oap-mail-test/src/test/java/oap/mail/velocity/FormatDateDirectiveTest.java similarity index 100% rename from oap-mail/src/test/java/oap/mail/velocity/FormatDateDirectiveTest.java rename to oap-mail-test/src/test/java/oap/mail/velocity/FormatDateDirectiveTest.java diff --git a/oap-mail/src/test/java/oap/mail/velocity/XPathDirectiveTest.java b/oap-mail-test/src/test/java/oap/mail/velocity/XPathDirectiveTest.java similarity index 100% rename from oap-mail/src/test/java/oap/mail/velocity/XPathDirectiveTest.java rename to oap-mail-test/src/test/java/oap/mail/velocity/XPathDirectiveTest.java diff --git a/oap-mail/src/test/resources/logback-test.xml b/oap-mail-test/src/test/resources/logback-test.xml similarity index 100% rename from oap-mail/src/test/resources/logback-test.xml rename to oap-mail-test/src/test/resources/logback-test.xml diff --git a/oap-mail/src/test/resources/oap/mail/TemplateTest/include.txt b/oap-mail-test/src/test/resources/oap/mail/TemplateTest/include.txt similarity index 100% rename from oap-mail/src/test/resources/oap/mail/TemplateTest/include.txt rename to oap-mail-test/src/test/resources/oap/mail/TemplateTest/include.txt diff --git a/oap-mail/src/test/resources/oap/mail/message/TextMessageParserTest/att1.mail b/oap-mail-test/src/test/resources/oap/mail/message/TextMessageParserTest/att1.mail similarity index 100% rename from oap-mail/src/test/resources/oap/mail/message/TextMessageParserTest/att1.mail rename to oap-mail-test/src/test/resources/oap/mail/message/TextMessageParserTest/att1.mail diff --git a/oap-mail/src/test/resources/oap/mail/message/TextMessageParserTest/att2.mail b/oap-mail-test/src/test/resources/oap/mail/message/TextMessageParserTest/att2.mail similarity index 100% rename from oap-mail/src/test/resources/oap/mail/message/TextMessageParserTest/att2.mail rename to oap-mail-test/src/test/resources/oap/mail/message/TextMessageParserTest/att2.mail diff --git a/oap-mail/src/test/resources/oap/mail/message/TextMessageParserTest/subject.mail b/oap-mail-test/src/test/resources/oap/mail/message/TextMessageParserTest/subject.mail similarity index 100% rename from oap-mail/src/test/resources/oap/mail/message/TextMessageParserTest/subject.mail rename to oap-mail-test/src/test/resources/oap/mail/message/TextMessageParserTest/subject.mail diff --git a/oap-mail/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/mail.xmail b/oap-mail-test/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/mail.xmail similarity index 100% rename from oap-mail/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/mail.xmail rename to oap-mail-test/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/mail.xmail diff --git a/oap-mail/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/simple.xmail b/oap-mail-test/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/simple.xmail similarity index 100% rename from oap-mail/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/simple.xmail rename to oap-mail-test/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/simple.xmail diff --git a/oap-mail/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/text-attachment.xmail b/oap-mail-test/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/text-attachment.xmail similarity index 100% rename from oap-mail/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/text-attachment.xmail rename to oap-mail-test/src/test/resources/oap/mail/message/xml/XmlMessageParserTest/text-attachment.xmail diff --git a/oap-mail/src/test/resources/oap/mail/velocity/XPathDirectiveTest/test.xml b/oap-mail-test/src/test/resources/oap/mail/velocity/XPathDirectiveTest/test.xml similarity index 100% rename from oap-mail/src/test/resources/oap/mail/velocity/XPathDirectiveTest/test.xml rename to oap-mail-test/src/test/resources/oap/mail/velocity/XPathDirectiveTest/test.xml diff --git a/oap-mail/src/test/resources/tux.jpeg b/oap-mail-test/src/test/resources/tux.jpeg similarity index 100% rename from oap-mail/src/test/resources/tux.jpeg rename to oap-mail-test/src/test/resources/tux.jpeg diff --git a/oap-mail/src/test/resources/xjapanese.xmail b/oap-mail-test/src/test/resources/xjapanese.xmail similarity index 100% rename from oap-mail/src/test/resources/xjapanese.xmail rename to oap-mail-test/src/test/resources/xjapanese.xmail diff --git a/pom.xml b/pom.xml index 80faa7c..ab44333 100644 --- a/pom.xml +++ b/pom.xml @@ -44,13 +44,14 @@ oap-mail + oap-mail-test oap-mail-sendgrid - 21.0.1 + 21.1.0 - 21.1.2 + 21.2.0 4.9.3 1.18.30