mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
11-FixClassStructureIssues
This commit is contained in:
parent
d88934e9a5
commit
1952ea6787
5 changed files with 1 additions and 13 deletions
|
|
@ -44,11 +44,8 @@ public class CheckAssertionActionTest {
|
||||||
|
|
||||||
private static final URL SAMPLE_ASSERTIONS = CheckAssertionActionTest.class.getResource("/examples/assertions/tests-xrechnung.xml");
|
private static final URL SAMPLE_ASSERTIONS = CheckAssertionActionTest.class.getResource("/examples/assertions/tests-xrechnung.xml");
|
||||||
|
|
||||||
private CommandLine commandLine;
|
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setup() throws IOException {
|
public void setup() throws IOException {
|
||||||
this.commandLine = new CommandLine();
|
|
||||||
CommandLine.activate();
|
CommandLine.activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,13 +44,10 @@ public class CommandlineApplicationTest {
|
||||||
|
|
||||||
public static final String RESULT_OUTPUT = "Processing 1 object(s) completed";
|
public static final String RESULT_OUTPUT = "Processing 1 object(s) completed";
|
||||||
|
|
||||||
private CommandLine commandLine;
|
|
||||||
|
|
||||||
private final Path output = Paths.get("target/test-output");
|
private final Path output = Paths.get("target/test-output");
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setup() throws IOException {
|
public void setup() throws IOException {
|
||||||
this.commandLine = new CommandLine();
|
|
||||||
CommandLine.activate();
|
CommandLine.activate();
|
||||||
if (Files.exists(this.output)) {
|
if (Files.exists(this.output)) {
|
||||||
FileUtils.deleteDirectory(this.output.toFile());
|
FileUtils.deleteDirectory(this.output.toFile());
|
||||||
|
|
|
||||||
|
|
@ -34,13 +34,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
*/
|
*/
|
||||||
public class PrintReportActionTest {
|
public class PrintReportActionTest {
|
||||||
|
|
||||||
private CommandLine commandLine;
|
|
||||||
|
|
||||||
private PrintReportAction action;
|
private PrintReportAction action;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setup() {
|
public void setup() {
|
||||||
this.commandLine = new CommandLine();
|
|
||||||
CommandLine.activate();
|
CommandLine.activate();
|
||||||
this.action = new PrintReportAction(TestObjectFactory.createProcessor());
|
this.action = new PrintReportAction(TestObjectFactory.createProcessor());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ public class Helper {
|
||||||
|
|
||||||
public static final URI SCHEMA = REPOSITORY_URI.resolve("simple.xsd");
|
public static final URI SCHEMA = REPOSITORY_URI.resolve("simple.xsd");
|
||||||
|
|
||||||
public static final ContentRepository createContentRepository() {
|
public static ContentRepository createContentRepository() {
|
||||||
final ResolvingConfigurationStrategy strategy = ResolvingMode.STRICT_RELATIVE.getStrategy();
|
final ResolvingConfigurationStrategy strategy = ResolvingMode.STRICT_RELATIVE.getStrategy();
|
||||||
return new ContentRepository(Helper.getTestProcessor(), strategy, Simple.REPOSITORY_URI);
|
return new ContentRepository(Helper.getTestProcessor(), strategy, Simple.REPOSITORY_URI);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,8 @@ public class VersioningTest {
|
||||||
|
|
||||||
private ConversionService service;
|
private ConversionService service;
|
||||||
|
|
||||||
private ContentRepository repository;
|
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setup() {
|
public void setup() {
|
||||||
this.repository = Simple.createContentRepository();
|
|
||||||
this.service = new ConversionService();
|
this.service = new ConversionService();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue