-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathReporterFactoryIT.java
More file actions
27 lines (19 loc) · 1 KB
/
ReporterFactoryIT.java
File metadata and controls
27 lines (19 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.utplsql.api;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
import org.utplsql.api.compatibility.CompatibilityProxy;
import org.utplsql.api.reporter.CoreReporters;
import org.utplsql.api.reporter.CoverageHTMLReporter;
import org.utplsql.api.reporter.DocumentationReporter;
import org.utplsql.api.reporter.ReporterFactory;
import java.sql.SQLException;
import static org.hamcrest.MatcherAssert.assertThat;
class ReporterFactoryIT extends AbstractDatabaseTest {
@Test
void createDefaultReporterFactoryMethod() throws SQLException {
CompatibilityProxy proxy = new CompatibilityProxy(getConnection());
ReporterFactory reporterFactory = ReporterFactory.createDefault(proxy);
assertThat(reporterFactory.createReporter(CoreReporters.UT_DOCUMENTATION_REPORTER.name()), Matchers.isA(DocumentationReporter.class));
assertThat(reporterFactory.createReporter(CoreReporters.UT_COVERAGE_HTML_REPORTER.name()), Matchers.isA(CoverageHTMLReporter.class));
}
}