blob: 5039b05b3938df8c5a97b1d2675d6578001b0157 (
plain) (
blame)
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
28
29
30
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.application.preprocessor;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.xml.sax.SAXException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import java.io.File;
import java.io.IOException;
import java.util.Optional;
public class ApplicationPreprocessorTest {
@Rule
public TemporaryFolder outputDir = new TemporaryFolder();
// Basic test just to check that instantiation and run() works. Unit testing is in config-application-package
@Test
public void basic() throws ParserConfigurationException, TransformerException, SAXException, IOException {
ApplicationPreprocessor preprocessor = new ApplicationPreprocessor(new File("src/test/resources/simple"),
Optional.of(outputDir.newFolder()),
Optional.empty(),
Optional.empty());
preprocessor.run();
}
}
|