Skip to content

Commit

Permalink
feat(commands): support writing commands in tests
Browse files Browse the repository at this point in the history
* refactor: bumped up java-decita dependency
* feat: added commands section to test files
* feat: implemented command execution in test
* feat: implemented multiple commands execution
* refactor: qulice warnings
  • Loading branch information
nergal-perm authored May 11, 2024
1 parent 762d804 commit f476882
Show file tree
Hide file tree
Showing 22 changed files with 539 additions and 372 deletions.
277 changes: 154 additions & 123 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,136 +26,167 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.jcabi</groupId>
<artifactId>parent</artifactId>
<version>0.67.0</version>
</parent>
<parent>
<groupId>com.jcabi</groupId>
<artifactId>parent</artifactId>
<version>0.67.0</version>
</parent>

<groupId>io.github.decision-driven</groupId>
<artifactId>logic-checker</artifactId>
<version>0.0.2</version>
<packaging>jar</packaging>
<groupId>io.github.decision-driven</groupId>
<artifactId>logic-checker</artifactId>
<version>0.0.2</version>
<packaging>jar</packaging>

<name>Abstract business logic checker</name>
<description>A tool to check the correctness of business-logic, described by decision tables and commands</description>
<url>https://github.com/Decision-Driven-Development/logic-checker</url>
<inceptionYear>2024</inceptionYear>
<organization>
<name>Decision-Driven Development</name>
<url>https://github.com/Decision-Driven-Development</url>
</organization>
<licenses>
<license>
<name>MIT</name>
<url>https://raw.githubusercontent.com/Decision-Driven-Development/logic-checker/master/LICENSE</url>
<distribution>site</distribution>
<comments>MIT License</comments>
</license>
</licenses>
<name>Abstract business logic checker</name>
<description>A tool to check the correctness of business-logic, described by decision tables and
commands
</description>
<url>https://github.com/Decision-Driven-Development/logic-checker</url>
<inceptionYear>2024</inceptionYear>
<organization>
<name>Decision-Driven Development</name>
<url>https://github.com/Decision-Driven-Development</url>
</organization>
<licenses>
<license>
<name>MIT</name>
<url>
https://raw.githubusercontent.com/Decision-Driven-Development/logic-checker/master/LICENSE
</url>
<distribution>site</distribution>
<comments>MIT License</comments>
</license>
</licenses>

<developers>
<developer>
<id>1</id>
<name>Eugene Terekhov</name>
<email>nergal@psu.ru</email>
<url>https://github.com/nergal-perm</url>
<roles>
<role>Architect</role>
<role>Developer</role>
</roles>
<timezone>+4</timezone>
</developer>
</developers>
<contributors>
<contributor>
<name>Nikita Batin</name>
<url>https://github.com/citerm</url>
<roles>
<role>Architect</role>
</roles>
<timezone>+3</timezone>
</contributor>
</contributors>

<developers>
<developer>
<id>1</id>
<name>Eugene Terekhov</name>
<email>nergal@psu.ru</email>
<url>https://github.com/nergal-perm</url>
<roles>
<role>Architect</role>
<role>Developer</role>
</roles>
<timezone>+4</timezone>
</developer>
</developers>
<contributors>
<contributor>
<name>Nikita Batin</name>
<url>https://github.com/citerm</url>
<roles>
<role>Architect</role>
</roles>
<timezone>+3</timezone>
</contributor>
</contributors>
<issueManagement>
<system>github</system>
<url>https://github.com/Decision-Driven-Development/logic-checker/issues</url>
</issueManagement>
<ciManagement>
<system>github</system>
<url>https://github.com/Decision-Driven-Development/logic-checker/actions</url>
</ciManagement>
<scm>
<connection>scm:git:github.com:Decision-Driven-Development/logic-checker.git</connection>
<developerConnection>scm:git:github.com:Decision-Driven-Development/logic-checker.git
</developerConnection>
<url>https://github.com/Decision-Driven-Development/logic-checker</url>
</scm>

<issueManagement>
<system>github</system>
<url>https://github.com/Decision-Driven-Development/logic-checker/issues</url>
</issueManagement>
<ciManagement>
<system>github</system>
<url>https://github.com/Decision-Driven-Development/logic-checker/actions</url>
</ciManagement>
<scm>
<connection>scm:git:github.com:Decision-Driven-Development/logic-checker.git</connection>
<developerConnection>scm:git:github.com:Decision-Driven-Development/logic-checker.git</developerConnection>
<url>https://github.com/Decision-Driven-Development/logic-checker</url>
</scm>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>io.github.nergal-perm</groupId>
<artifactId>java-decita</artifactId>
<version>0.5.1</version>
</dependency>
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-matchers</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.24.2</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.14.13</version>
</dependency>
</dependencies>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>io.github.nergal-perm</groupId>
<artifactId>java-decita</artifactId>
<version>0.3.3</version>
</dependency>
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-matchers</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.24.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<failIfNoTests>false</failIfNoTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
<compilerArgs>
<arg>-Xlint:-requires-automatic</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>

<build>
<profiles>
<profile>
<id>qulice</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>com.qulice</groupId>
<artifactId>qulice-maven-plugin</artifactId>
<version>0.22.2</version>
<configuration>
<license>file:${basedir}/LICENSE</license>
<excludes>
<exclude>checkstyle:/src/main/java/module-info.java</exclude>
<exclude>dependencies:org.hamcrest</exclude>
<exclude>dependencies:net.bytebuddy</exclude>
<exclude>duplicatefinder:.*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>qulice</id>
<build>
<plugins>
<plugin>
<groupId>com.qulice</groupId>
<artifactId>qulice-maven-plugin</artifactId>
<version>0.22.2</version>
<configuration>
<license>file:${basedir}/LICENSE</license>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</build>
</profile>
</profiles>
</project>
9 changes: 9 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module logic.checker {
requires java.decita.api;
requires static lombok;
requires org.yaml.snakeyaml;
requires org.assertj.core;
requires org.hamcrest;
requires net.bytebuddy;
requires java.logging;
}
Loading

0 comments on commit f476882

Please sign in to comment.