forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
14 changes: 14 additions & 0 deletions
14
...les/maven-surefire-plugin/src/test/java/com/baeldung/runasingletest/TheFirstUnitTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...es/maven-surefire-plugin/src/test/java/com/baeldung/runasingletest/TheSecondUnitTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters