From 9fb57736348895d36bc78b0e9f36dab04f7787b3 Mon Sep 17 00:00:00 2001 From: esoe Date: Fri, 6 May 2022 15:35:12 +0300 Subject: [PATCH] maven project --- .editorconfig | 17 +++ pom.xml | 173 ++++++++++++++++++++++++++++ src/test/java/ru/egspt/AppTest.java | 18 +++ 3 files changed, 208 insertions(+) create mode 100644 .editorconfig create mode 100644 pom.xml create mode 100644 src/test/java/ru/egspt/AppTest.java diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e1d0ce7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# Editor configuration, see http://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true +max_line_length = 80 + +[*.sh] +end_of_line = lf + +[*.java] +indent_size = 4 +max_line_length = 120 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..83d98b7 --- /dev/null +++ b/pom.xml @@ -0,0 +1,173 @@ + + 4.0.0 + ru.egspt.moodle + moodle-anyreport + 0.1 + + 1.8 + 1.8 + UTF-8 + 5.6.0 + 3.0.0-M3 + 3.1.2 + 8.39 + 3.0.0-M5 + 0.8.4 + 3.0.0 + + 0% + 0% + 20 + 5 + + + + org.junit.jupiter + junit-jupiter-api + ${junit.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.version} + test + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + + enforce + + + + + 3.6.3 + + + true + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + + com.puppycrawl.tools + checkstyle + ${checkstyle.version} + + + com.github.ngeor + checkstyle-rules + 4.8.0 + + + + com/github/ngeor/checkstyle.xml + true + ${skipTests} + + + + checkstyle + validate + + check + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + pre-unit-test + + prepare-agent + + + + post-unit-test + test + + report + + + + check-unit-test + test + + check + + + ${project.build.directory}/jacoco.exec + + + BUNDLE + + + INSTRUCTION + COVEREDRATIO + ${jacoco.unit-tests.limit.instruction-ratio} + + + BRANCH + COVEREDRATIO + ${jacoco.unit-tests.limit.branch-ratio} + + + + + CLASS + + + COMPLEXITY + TOTALCOUNT + ${jacoco.unit-tests.limit.class-complexity} + + + + + METHOD + + + COMPLEXITY + TOTALCOUNT + ${jacoco.unit-tests.limit.method-complexity} + + + + + + + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + + + diff --git a/src/test/java/ru/egspt/AppTest.java b/src/test/java/ru/egspt/AppTest.java new file mode 100644 index 0000000..b6e3083 --- /dev/null +++ b/src/test/java/ru/egspt/AppTest.java @@ -0,0 +1,18 @@ +package ru.egspt; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +/** + * Unit test for simple App. + */ +class AppTest { + /** + * Rigorous Test. + */ + @Test + void testApp() { + assertEquals(1, 1); + } +}