Skip to content

Commit

Permalink
first commit (eugenp#11118)
Browse files Browse the repository at this point in the history
  • Loading branch information
sk1418 authored Aug 21, 2021
1 parent eb17750 commit ad17756
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 1 deletion.
17 changes: 17 additions & 0 deletions maven-modules/maven-surefire-plugin/pom.xml
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>
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");
}
}
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");
}
}
3 changes: 2 additions & 1 deletion maven-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit ad17756

Please sign in to comment.