mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Merge branch 'feature/unit-test-support' into 'ms4/dev'
Added unit test support See merge request morningstar/Arcturus-Community!37
This commit is contained in:
commit
11fd7d8c26
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,7 +6,6 @@ target/**
|
|||||||
TODO.txt
|
TODO.txt
|
||||||
packet.pkt
|
packet.pkt
|
||||||
plugins/**
|
plugins/**
|
||||||
src/test/
|
|
||||||
target/
|
target/
|
||||||
config.ini
|
config.ini
|
||||||
*.txt
|
*.txt
|
||||||
|
@ -15,4 +15,3 @@ build:
|
|||||||
expire_in: 2 weeks
|
expire_in: 2 weeks
|
||||||
paths:
|
paths:
|
||||||
- target/Morningstar-*.jar
|
- target/Morningstar-*.jar
|
||||||
|
|
||||||
|
48
pom.xml
48
pom.xml
@ -10,7 +10,9 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<junit.jupiter.version>5.9.2</junit.jupiter.version>
|
||||||
|
<junit.platform.version>1.9.2</junit.platform.version>
|
||||||
|
<org.mockito.version>4.11.0</org.mockito.version>
|
||||||
<additionalparam>-Xdoclint:none</additionalparam>
|
<additionalparam>-Xdoclint:none</additionalparam>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@ -179,7 +181,49 @@
|
|||||||
<version>7.7.3</version>
|
<version>7.7.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- <dependency>-->
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter</artifactId>
|
||||||
|
<version>${junit.jupiter.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter-engine</artifactId>
|
||||||
|
<version>${junit.jupiter.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter-params</artifactId>
|
||||||
|
<version>${junit.jupiter.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.platform</groupId>
|
||||||
|
<artifactId>junit-platform-runner</artifactId>
|
||||||
|
<version>${junit.platform.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-core</artifactId>
|
||||||
|
<version>${org.mockito.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-junit-jupiter</artifactId>
|
||||||
|
<version>${org.mockito.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- <dependency>-->
|
||||||
<!-- <groupId>org.flywaydb</groupId>-->
|
<!-- <groupId>org.flywaydb</groupId>-->
|
||||||
<!-- <artifactId>flyway-mysql</artifactId>-->
|
<!-- <artifactId>flyway-mysql</artifactId>-->
|
||||||
<!-- <version>9.11.0</version>-->
|
<!-- <version>9.11.0</version>-->
|
||||||
|
16
src/test/java/com/eu/habbo/core/ClassNameTest.java
Normal file
16
src/test/java/com/eu/habbo/core/ClassNameTest.java
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package com.eu.habbo.core;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
|
import org.mockito.junit.jupiter.MockitoExtension;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
@ExtendWith(MockitoExtension.class)
|
||||||
|
public class ClassNameTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
assertEquals("Hello, World!", "Hello, World!");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user