diff --git a/testing-modules/junit-5-2/pom.xml b/testing-modules/junit-5-2/pom.xml deleted file mode 100644 index ec535f8413..0000000000 --- a/testing-modules/junit-5-2/pom.xml +++ /dev/null @@ -1,167 +0,0 @@ - - - 4.0.0 - - junit-5-2 - 1.0-SNAPSHOT - junit-5-2 - JUnit-5 extended - - - com.baeldung - parent-modules - 1.0.0-SNAPSHOT - ../../ - - - - - org.junit.platform - junit-platform-engine - ${junit.platform.version} - - - org.junit.jupiter - junit-jupiter-params - ${junit.jupiter.version} - - - org.junit.platform - junit-platform-runner - ${junit.platform.version} - test - - - org.junit.vintage - junit-vintage-engine - ${junit.vintage.version} - test - - - org.junit.jupiter - junit-jupiter-migrationsupport - ${junit.vintage.version} - test - - - org.apache.logging.log4j - log4j-core - ${log4j2.version} - - - com.h2database - h2 - ${h2.version} - - - org.springframework - spring-test - ${spring.version} - test - - - org.springframework - spring-context - ${spring.version} - - - org.springframework - spring-orm - ${spring.version} - - - - - - - - src/test/resources - true - - - src/main/resources - true - - - - - - - filtering - - false - - - - - maven-surefire-plugin - ${maven-surefire-plugin.version} - - - org.junit.platform - junit-platform-surefire-provider - ${junit.platform.version} - - - - - **/*IntegrationTest.java - - - - - - - - category - - false - - - - - maven-surefire-plugin - ${maven-surefire-plugin.version} - - com.baeldung.categories.UnitTest - com.baeldung.categories.IntegrationTest - - - - - - - tags - - false - - - - - maven-surefire-plugin - ${maven-surefire-plugin.version} - - UnitTest - IntegrationTest - - - - - - - - - - 5.3.1 - 2.23.0 - 1.2.0 - 5.2.0 - 2.8.2 - 1.4.196 - 2.21.0 - 1.6.0 - 5.0.6.RELEASE - - - diff --git a/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/Employee.java b/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/Employee.java deleted file mode 100644 index 66f41ee885..0000000000 --- a/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/Employee.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.baeldung.junit.tags.example; - -public class Employee { - private int id; - - private String firstName; - - private String lastName; - - private String address; - - public int getId() { - return id; - } - - public void setId(final int id) { - this.id = id; - } - - public String getFirstName() { - return firstName; - } - - public void setFirstName(final String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(final String lastName) { - this.lastName = lastName; - } - - public String getAddress() { - return address; - } - - public void setAddress(final String address) { - this.address = address; - } - -} diff --git a/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/EmployeeDAO.java b/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/EmployeeDAO.java deleted file mode 100644 index 21375dbed1..0000000000 --- a/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/EmployeeDAO.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.baeldung.junit.tags.example; - -import java.sql.PreparedStatement; -import java.sql.SQLException; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.sql.DataSource; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.jdbc.core.BatchPreparedStatementSetter; -import org.springframework.jdbc.core.JdbcTemplate; -import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource; -import org.springframework.jdbc.core.namedparam.MapSqlParameterSource; -import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; -import org.springframework.jdbc.core.namedparam.SqlParameterSource; -import org.springframework.jdbc.core.namedparam.SqlParameterSourceUtils; -import org.springframework.jdbc.core.simple.SimpleJdbcInsert; -import org.springframework.stereotype.Repository; - -@Repository -public class EmployeeDAO { - - private JdbcTemplate jdbcTemplate; - - private NamedParameterJdbcTemplate namedParameterJdbcTemplate; - - private SimpleJdbcInsert simpleJdbcInsert; - - @Autowired - public void setDataSource(final DataSource dataSource) { - jdbcTemplate = new JdbcTemplate(dataSource); - - namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(dataSource); - simpleJdbcInsert = new SimpleJdbcInsert(dataSource).withTableName("EMPLOYEE"); - - } - - public int getCountOfEmployees() { - return jdbcTemplate.queryForObject("SELECT COUNT(*) FROM EMPLOYEE", Integer.class); - } - - public List getAllEmployees() { - return jdbcTemplate.query("SELECT * FROM EMPLOYEE", new EmployeeRowMapper()); - } - - public int addEmplyee(final int id) { - return jdbcTemplate.update("INSERT INTO EMPLOYEE VALUES (?, ?, ?, ?)", id, "Bill", "Gates", "USA"); - } - - public int addEmplyeeUsingSimpelJdbcInsert(final Employee emp) { - final Map parameters = new HashMap(); - parameters.put("ID", emp.getId()); - parameters.put("FIRST_NAME", emp.getFirstName()); - parameters.put("LAST_NAME", emp.getLastName()); - parameters.put("ADDRESS", emp.getAddress()); - - return simpleJdbcInsert.execute(parameters); - } - - // for testing - public void setJdbcTemplate(JdbcTemplate jdbcTemplate) { - this.jdbcTemplate = jdbcTemplate; - } -} diff --git a/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/EmployeeRowMapper.java b/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/EmployeeRowMapper.java deleted file mode 100644 index f480aac9a2..0000000000 --- a/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/EmployeeRowMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.baeldung.junit.tags.example; - -import org.springframework.jdbc.core.RowMapper; - -import java.sql.ResultSet; -import java.sql.SQLException; - -public class EmployeeRowMapper implements RowMapper { - - @Override - public Employee mapRow(final ResultSet rs, final int rowNum) throws SQLException { - final Employee employee = new Employee(); - - employee.setId(rs.getInt("ID")); - employee.setFirstName(rs.getString("FIRST_NAME")); - employee.setLastName(rs.getString("LAST_NAME")); - employee.setAddress(rs.getString("ADDRESS")); - - return employee; - } -} diff --git a/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/SpringJdbcConfig.java b/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/SpringJdbcConfig.java deleted file mode 100644 index 3ddef7e5d4..0000000000 --- a/testing-modules/junit-5-2/src/main/java/com/baeldung/junit/tags/example/SpringJdbcConfig.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.baeldung.junit.tags.example; - -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ComponentScan; -import org.springframework.context.annotation.Configuration; -import org.springframework.jdbc.datasource.DriverManagerDataSource; -import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; -import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; - -import javax.sql.DataSource; - -@Configuration -@ComponentScan("com.baeldung.junit.tags.example") -public class SpringJdbcConfig { - - @Bean - public DataSource dataSource() { - return new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2).addScript("classpath:jdbc/schema.sql").addScript("classpath:jdbc/test-data.sql").build(); - } -} \ No newline at end of file diff --git a/testing-modules/junit-5-2/src/main/resources/jdbc/schema.sql b/testing-modules/junit-5-2/src/main/resources/jdbc/schema.sql deleted file mode 100644 index c86d35cdae..0000000000 --- a/testing-modules/junit-5-2/src/main/resources/jdbc/schema.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE TABLE EMPLOYEE -( - ID int NOT NULL PRIMARY KEY, - FIRST_NAME varchar(255), - LAST_NAME varchar(255), - ADDRESS varchar(255), -); \ No newline at end of file diff --git a/testing-modules/junit-5-2/src/main/resources/jdbc/springJdbc-config.xml b/testing-modules/junit-5-2/src/main/resources/jdbc/springJdbc-config.xml deleted file mode 100644 index 5fd2699b41..0000000000 --- a/testing-modules/junit-5-2/src/main/resources/jdbc/springJdbc-config.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/testing-modules/junit-5-2/src/main/resources/jdbc/test-data.sql b/testing-modules/junit-5-2/src/main/resources/jdbc/test-data.sql deleted file mode 100644 index b9ef8fec25..0000000000 --- a/testing-modules/junit-5-2/src/main/resources/jdbc/test-data.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO EMPLOYEE VALUES (1, 'James', 'Gosling', 'Canada'); - -INSERT INTO EMPLOYEE VALUES (2, 'Donald', 'Knuth', 'USA'); - -INSERT INTO EMPLOYEE VALUES (3, 'Linus', 'Torvalds', 'Finland'); - -INSERT INTO EMPLOYEE VALUES (4, 'Dennis', 'Ritchie', 'USA'); \ No newline at end of file diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/EmployeeDAOCategoryIntegrationTest.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/EmployeeDAOCategoryIntegrationTest.java deleted file mode 100644 index 202ac728a6..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/EmployeeDAOCategoryIntegrationTest.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.baeldung.categories; - -import org.hamcrest.CoreMatchers; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.experimental.categories.Category; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.jdbc.core.JdbcTemplate; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import org.springframework.test.context.support.AnnotationConfigContextLoader; - -import com.baeldung.junit.tags.example.Employee; -import com.baeldung.junit.tags.example.EmployeeDAO; -import com.baeldung.junit.tags.example.SpringJdbcConfig; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class) -public class EmployeeDAOCategoryIntegrationTest { - - @Autowired - private EmployeeDAO employeeDao; - - @Mock - private JdbcTemplate jdbcTemplate; - private EmployeeDAO employeeDAO; - - @Before - public void setup() { - MockitoAnnotations.initMocks(this); - employeeDAO = new EmployeeDAO(); - employeeDAO.setJdbcTemplate(jdbcTemplate); - } - - @Test - @Category(IntegrationTest.class) - public void testAddEmployeeUsingSimpelJdbcInsert() { - final Employee emp = new Employee(); - emp.setId(12); - emp.setFirstName("testFirstName"); - emp.setLastName("testLastName"); - emp.setAddress("testAddress"); - - Assert.assertEquals(employeeDao.addEmplyeeUsingSimpelJdbcInsert(emp), 1); - } - - @Test - @Category(UnitTest.class) - public void givenNumberOfEmployeeWhenCountEmployeeThenCountMatch() { - - // given - Mockito.when(jdbcTemplate.queryForObject(Mockito.any(String.class), Mockito.eq(Integer.class))) - .thenReturn(1); - - // when - int countOfEmployees = employeeDAO.getCountOfEmployees(); - - // then - Assert.assertThat(countOfEmployees, CoreMatchers.is(1)); - } - -} diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/EmployeeDAOUnitTestSuite.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/EmployeeDAOUnitTestSuite.java deleted file mode 100644 index 252e7ffe64..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/EmployeeDAOUnitTestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.baeldung.categories; - -import org.junit.experimental.categories.Categories; -import org.junit.experimental.categories.Categories.IncludeCategory; -import org.junit.runner.RunWith; -import org.junit.runners.Suite.SuiteClasses; - -@RunWith(Categories.class) -@IncludeCategory(UnitTest.class) -@SuiteClasses(EmployeeDAOCategoryIntegrationTest.class) -public class EmployeeDAOUnitTestSuite { -} diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/IntegrationTest.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/IntegrationTest.java deleted file mode 100644 index 9ced880ffc..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/IntegrationTest.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.baeldung.categories; - -public interface IntegrationTest { -} diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/UnitTest.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/UnitTest.java deleted file mode 100644 index 3790fc1d91..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/categories/UnitTest.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.baeldung.categories; - -public interface UnitTest { -} diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/junit/tags/example/EmployeeDAOIntegrationTest.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/junit/tags/example/EmployeeDAOIntegrationTest.java deleted file mode 100644 index 9b95b3701d..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/junit/tags/example/EmployeeDAOIntegrationTest.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.baeldung.junit.tags.example; - -import java.util.ArrayList; -import java.util.List; - -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.DuplicateKeyException; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import org.springframework.test.context.support.AnnotationConfigContextLoader; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class) -public class EmployeeDAOIntegrationTest { - - @Autowired - private EmployeeDAO employeeDao; - - @Test - public void testQueryMethod() { - Assert.assertEquals(employeeDao.getAllEmployees().size(), 4); - } - - @Test - public void testUpdateMethod() { - Assert.assertEquals(employeeDao.addEmplyee(5), 1); - } - - @Test - public void testAddEmployeeUsingSimpelJdbcInsert() { - final Employee emp = new Employee(); - emp.setId(11); - emp.setFirstName("testFirstName"); - emp.setLastName("testLastName"); - emp.setAddress("testAddress"); - - Assert.assertEquals(employeeDao.addEmplyeeUsingSimpelJdbcInsert(emp), 1); - } -} diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/junit/tags/example/EmployeeUnitTest.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/junit/tags/example/EmployeeUnitTest.java deleted file mode 100644 index 6ffb5586cc..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/junit/tags/example/EmployeeUnitTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.baeldung.junit.tags.example; - -import org.hamcrest.CoreMatchers; -import org.junit.Assert; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; -import org.mockito.junit.MockitoJUnitRunner; -import org.springframework.jdbc.core.JdbcTemplate; - -public class EmployeeUnitTest { - - @Mock - private JdbcTemplate jdbcTemplate; - - private EmployeeDAO employeeDAO; - - @BeforeEach - public void setup() { - MockitoAnnotations.initMocks(this); - employeeDAO = new EmployeeDAO(); - employeeDAO.setJdbcTemplate(jdbcTemplate); - } - - @Test - public void givenNumberOfEmployeeWhenCountEmployeeThenCountMatch() { - - // given - Mockito.when(jdbcTemplate.queryForObject(Mockito.any(String.class), Mockito.eq(Integer.class))) - .thenReturn(1); - - // when - int countOfEmployees = employeeDAO.getCountOfEmployees(); - - // then - Assert.assertThat(countOfEmployees, CoreMatchers.is(1)); - } -} diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOCategoryIntegrationTest.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOCategoryIntegrationTest.java deleted file mode 100644 index 1b1518337d..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOCategoryIntegrationTest.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.baeldung.tags; - -import org.hamcrest.CoreMatchers; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.experimental.categories.Category; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.jdbc.core.JdbcTemplate; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import org.springframework.test.context.support.AnnotationConfigContextLoader; - -import com.baeldung.categories.IntegrationTest; -import com.baeldung.categories.UnitTest; -import com.baeldung.junit.tags.example.Employee; -import com.baeldung.junit.tags.example.EmployeeDAO; -import com.baeldung.junit.tags.example.SpringJdbcConfig; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class) -public class EmployeeDAOCategoryIntegrationTest { - - @Autowired - private EmployeeDAO employeeDao; - - @Mock - private JdbcTemplate jdbcTemplate; - private EmployeeDAO employeeDAO; - - @Before - public void setup() { - MockitoAnnotations.initMocks(this); - employeeDAO = new EmployeeDAO(); - employeeDAO.setJdbcTemplate(jdbcTemplate); - } - - @Test - @Category(IntegrationTest.class) - public void testAddEmployeeUsingSimpelJdbcInsert() { - final Employee emp = new Employee(); - emp.setId(12); - emp.setFirstName("testFirstName"); - emp.setLastName("testLastName"); - emp.setAddress("testAddress"); - - Assert.assertEquals(employeeDao.addEmplyeeUsingSimpelJdbcInsert(emp), 1); - } - - @Test - @Category(UnitTest.class) - public void givenNumberOfEmployeeWhenCountEmployeeThenCountMatch() { - - // given - Mockito.when(jdbcTemplate.queryForObject(Mockito.any(String.class), Mockito.eq(Integer.class))) - .thenReturn(1); - - // when - int countOfEmployees = employeeDAO.getCountOfEmployees(); - - // then - Assert.assertThat(countOfEmployees, CoreMatchers.is(1)); - } - -} diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOIntegrationTest.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOIntegrationTest.java deleted file mode 100644 index 7c16f5eb29..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOIntegrationTest.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.baeldung.tags; - -import org.hamcrest.CoreMatchers; -import org.junit.Assert; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Tag; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.jdbc.core.JdbcTemplate; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit.jupiter.SpringExtension; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import org.springframework.test.context.support.AnnotationConfigContextLoader; - -import com.baeldung.junit.tags.example.Employee; -import com.baeldung.junit.tags.example.EmployeeDAO; -import com.baeldung.junit.tags.example.SpringJdbcConfig; - -@ExtendWith(SpringExtension.class) -@ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class) -public class EmployeeDAOIntegrationTest { - - @Autowired - private EmployeeDAO employeeDao; - - @Mock - private JdbcTemplate jdbcTemplate; - private EmployeeDAO employeeDAO; - - @BeforeEach - public void setup() { - MockitoAnnotations.initMocks(this); - employeeDAO = new EmployeeDAO(); - employeeDAO.setJdbcTemplate(jdbcTemplate); - } - - @Test - @Tag("IntegrationTest") - public void testAddEmployeeUsingSimpelJdbcInsert() { - final Employee emp = new Employee(); - emp.setId(12); - emp.setFirstName("testFirstName"); - emp.setLastName("testLastName"); - emp.setAddress("testAddress"); - - Assertions.assertEquals(employeeDao.addEmplyeeUsingSimpelJdbcInsert(emp), 1); - } - - @Test - @Tag("UnitTest") - public void givenNumberOfEmployeeWhenCountEmployeeThenCountMatch() { - - // given - Mockito.when(jdbcTemplate.queryForObject(Mockito.any(String.class), Mockito.eq(Integer.class))) - .thenReturn(1); - - // when - int countOfEmployees = employeeDAO.getCountOfEmployees(); - - // then - Assertions.assertEquals(1, countOfEmployees); - } - -} diff --git a/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOTestSuite.java b/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOTestSuite.java deleted file mode 100644 index 783e5a81a2..0000000000 --- a/testing-modules/junit-5-2/src/test/java/com/baeldung/tags/EmployeeDAOTestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.baeldung.tags; - -import org.junit.platform.runner.JUnitPlatform; -import org.junit.platform.suite.api.IncludeTags; -import org.junit.platform.suite.api.SelectPackages; -import org.junit.runner.RunWith; - -@RunWith(JUnitPlatform.class) -@SelectPackages("com.baeldung.tags") -@IncludeTags("UnitTest") -public class EmployeeDAOTestSuite { -}