missing files handling in converter

- silently continue if no files were found to convert
This commit is contained in:
Mikhail Mutcianko
2014-07-16 16:40:11 +04:00
committed by Yan Zhulanow
parent 155d2fa979
commit 2c44f5c4b7
3 changed files with 17 additions and 11 deletions
@@ -51,7 +51,7 @@ public class AndroidXmlTest extends TestCaseWithTmpdir {
public void testCompileResult() throws Exception {
ArrayList<File> paths = new ArrayList<File>();
paths.add(singleFile);
String text = new AndroidUIXmlParser(null, paths).parse();
String text = new AndroidUIXmlParser(null, paths).parseToString();
JetCoreEnvironment jetCoreEnvironment = JetTestUtils.createEnvironmentWithMockJdkAndIdeaAnnotations(getTestRootDisposable(),
ConfigurationKind.ALL);
JetFile psiFile = JetTestUtils.createFile(singleFile.getName(), text, jetCoreEnvironment.getProject());
@@ -75,7 +75,7 @@ public class AndroidXmlTest extends TestCaseWithTmpdir {
paths.add(singleFile);
AndroidUIXmlParser parser = new AndroidUIXmlParser(null, paths);
String actual = parser.parse();
String actual = parser.parseToString();
String expected = loadOrCreate(new File(getTestDataPath() + "/converter/singleFile/layout.kt"), actual);
assertEquals(expected, actual);