|
1 | 1 | package org.utplsql.api; |
2 | 2 |
|
3 | | -import org.junit.Assert; |
4 | | -import org.junit.Test; |
| 3 | +import org.junit.jupiter.api.Test; |
5 | 4 | import org.utplsql.api.reporter.*; |
6 | 5 |
|
7 | 6 | import java.sql.SQLException; |
8 | 7 |
|
| 8 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 9 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
| 10 | + |
9 | 11 | public class ReporterNameTest { |
10 | 12 |
|
11 | 13 | @Test |
12 | 14 | public void reporterSQLTypeName() throws SQLException { |
13 | | - Assert.assertEquals(CustomTypes.UT_COVERAGE_HTML_REPORTER, new CoverageHTMLReporter().getSQLTypeName()); |
14 | | - Assert.assertEquals(CustomTypes.UT_COVERAGE_SONAR_REPORTER, new CoverageSonarReporter().getSQLTypeName()); |
15 | | - Assert.assertEquals(CustomTypes.UT_COVERALLS_REPORTER, new CoverallsReporter().getSQLTypeName()); |
16 | | - Assert.assertEquals(CustomTypes.UT_DOCUMENTATION_REPORTER, new DocumentationReporter().getSQLTypeName()); |
17 | | - Assert.assertEquals(CustomTypes.UT_SONAR_TEST_REPORTER, new SonarTestReporter().getSQLTypeName()); |
18 | | - Assert.assertEquals(CustomTypes.UT_TEAMCITY_REPORTER, new TeamCityReporter().getSQLTypeName()); |
19 | | - Assert.assertEquals(CustomTypes.UT_XUNIT_REPORTER, new XUnitReporter().getSQLTypeName()); |
| 15 | + assertEquals(CustomTypes.UT_COVERAGE_HTML_REPORTER, new CoverageHTMLReporter().getSQLTypeName()); |
| 16 | + assertEquals(CustomTypes.UT_COVERAGE_SONAR_REPORTER, new CoverageSonarReporter().getSQLTypeName()); |
| 17 | + assertEquals(CustomTypes.UT_COVERALLS_REPORTER, new CoverallsReporter().getSQLTypeName()); |
| 18 | + assertEquals(CustomTypes.UT_DOCUMENTATION_REPORTER, new DocumentationReporter().getSQLTypeName()); |
| 19 | + assertEquals(CustomTypes.UT_SONAR_TEST_REPORTER, new SonarTestReporter().getSQLTypeName()); |
| 20 | + assertEquals(CustomTypes.UT_TEAMCITY_REPORTER, new TeamCityReporter().getSQLTypeName()); |
| 21 | + assertEquals(CustomTypes.UT_XUNIT_REPORTER, new XUnitReporter().getSQLTypeName()); |
20 | 22 | } |
21 | 23 |
|
22 | 24 | @Test |
23 | 25 | public void reporterFactory() { |
24 | | - Assert.assertTrue(ReporterFactory.createReporter(CustomTypes.UT_COVERAGE_HTML_REPORTER) |
| 26 | + assertTrue(ReporterFactory.createReporter(CustomTypes.UT_COVERAGE_HTML_REPORTER) |
25 | 27 | instanceof CoverageHTMLReporter); |
26 | | - Assert.assertTrue(ReporterFactory.createReporter(CustomTypes.UT_COVERAGE_SONAR_REPORTER) |
| 28 | + assertTrue(ReporterFactory.createReporter(CustomTypes.UT_COVERAGE_SONAR_REPORTER) |
27 | 29 | instanceof CoverageSonarReporter); |
28 | | - Assert.assertTrue(ReporterFactory.createReporter(CustomTypes.UT_COVERALLS_REPORTER) |
| 30 | + assertTrue(ReporterFactory.createReporter(CustomTypes.UT_COVERALLS_REPORTER) |
29 | 31 | instanceof CoverallsReporter); |
30 | | - Assert.assertTrue(ReporterFactory.createReporter(CustomTypes.UT_DOCUMENTATION_REPORTER) |
| 32 | + assertTrue(ReporterFactory.createReporter(CustomTypes.UT_DOCUMENTATION_REPORTER) |
31 | 33 | instanceof DocumentationReporter); |
32 | | - Assert.assertTrue(ReporterFactory.createReporter(CustomTypes.UT_SONAR_TEST_REPORTER) |
| 34 | + assertTrue(ReporterFactory.createReporter(CustomTypes.UT_SONAR_TEST_REPORTER) |
33 | 35 | instanceof SonarTestReporter); |
34 | | - Assert.assertTrue(ReporterFactory.createReporter(CustomTypes.UT_TEAMCITY_REPORTER) |
| 36 | + assertTrue(ReporterFactory.createReporter(CustomTypes.UT_TEAMCITY_REPORTER) |
35 | 37 | instanceof TeamCityReporter); |
36 | | - Assert.assertTrue(ReporterFactory.createReporter(CustomTypes.UT_XUNIT_REPORTER) |
| 38 | + assertTrue(ReporterFactory.createReporter(CustomTypes.UT_XUNIT_REPORTER) |
37 | 39 | instanceof XUnitReporter); |
38 | 40 | } |
39 | 41 |
|
|
0 commit comments