first commit (#11118)
This commit is contained in:
parent
6b4860c3c7
commit
5dfb39712d
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>maven-surefire-plugin</name>
|
||||
<packaging>jar</packaging>
|
||||
<parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<artifactId>maven-modules</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
|
||||
</project>
|
|
@ -0,0 +1,14 @@
|
|||
package com.baeldung.runasingletest;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
class TheFirstUnitTest {
|
||||
private static final Logger logger = LoggerFactory.getLogger(TheFirstUnitTest.class);
|
||||
|
||||
@Test
|
||||
void whenTestCase_thenPass() {
|
||||
logger.info("Running a dummyTest");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.baeldung.runasingletest;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
class TheSecondUnitTest {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(TheSecondUnitTest.class);
|
||||
|
||||
@Test
|
||||
void whenTestCase1_thenPrintTest1_1() {
|
||||
logger.info("Running When Case1: test1_1");
|
||||
}
|
||||
|
||||
@Test
|
||||
void whenTestCase1_thenPrintTest1_2() {
|
||||
logger.info("Running When Case1: test1_2");
|
||||
}
|
||||
|
||||
@Test
|
||||
void whenTestCase1_thenPrintTest1_3() {
|
||||
logger.info("Running When Case1: test1_3");
|
||||
}
|
||||
|
||||
@Test
|
||||
void whenTestCase2_thenPrintTest2_1() {
|
||||
logger.info("Running When Case2: test2_1");
|
||||
}
|
||||
}
|
|
@ -35,6 +35,7 @@
|
|||
<module>maven-builder-plugin</module>
|
||||
<module>host-maven-repo-example</module>
|
||||
<module>plugin-management</module>
|
||||
<module>maven-surefire-plugin</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue