public final class RefasterJsTestUtils extends Object
| Constructor and Description |
|---|
RefasterJsTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertFileRefactoring(String refasterJsTemplate,
String testDataPathPrefix,
String originalFile,
List<String> additionalSourceFiles,
String expectedFile)
Performs refactoring using a RefasterJs template and asserts that result is as expected.
|
public static void assertFileRefactoring(String refasterJsTemplate, String testDataPathPrefix, String originalFile, List<String> additionalSourceFiles, String expectedFile) throws IOException
refasterJsTemplate - path of the file or resource containing the RefasterJs
template to applytestDataPathPrefix - path prefix of the directory from which input and
expected-output file will be readoriginalFile - file name of the JavaScript source file to apply the refaster template toadditionalSourceFiles - list of additional source files to provide to the compiler
(e.g. dependencies)expectedFile - the expected result of applying the specified template to
originalFileIOExceptionCopyright © 2009–2023 Google. All rights reserved.