// Path: processor/src/test/java/com/sys1yagi/fragmentcreator/testtool/AndroidAwareClassLoader.java
// public final class AndroidAwareClassLoader {
// 
//     private static final String TEST_CLASSPATH_FILE_NAME = "/additional-test-classpath.txt";
// 
//     private AndroidAwareClassLoader() {
//         throw new AssertionError();
//     }
// 
//     public static ClassLoader create() {
//         try {
//             InputStream stream = AndroidAwareClassLoader.class.getResourceAsStream(TEST_CLASSPATH_FILE_NAME);
//             URL[] urls = IOUtils.readLines(stream, Charset.forName("UTF-8"))
//                 .stream()
//                 .map(AndroidAwareClassLoader::unsafeToURL)
//                 .toArray(URL[]::new);
// 
//             return new URLClassLoader(urls, ClassLoader.getSystemClassLoader());
// 
//         } catch (IOException e) {
//             throw new RuntimeException(e);
//         }
//     }
// 
//     private static URL unsafeToURL(String spec) {
//         try {
//             return new URL(spec);
//         } catch (MalformedURLException e) {
//             throw new RuntimeException(e);
//         }
//     }
// }
// 
// Path: processor/src/test/java/com/sys1yagi/fragmentcreator/testtool/AssetsUtils.java
// public class AssetsUtils {
// 
//     public static String readString(String fileName) {
//         try (FileInputStream fis = new FileInputStream(new File("src/test/assets", fileName))) {
//             return IOUtils.toString(fis, "UTF-8");
//         } catch (IOException e) {
//             throw new IllegalArgumentException(e);
//         }
//     }
// }


import com.google.testing.compile.JavaFileObjects;
import com.sys1yagi.fragmentcreator.testtool.AndroidAwareClassLoader;
import com.sys1yagi.fragmentcreator.testtool.AssetsUtils;
import org.junit.Test;
import javax.tools.JavaFileObject;
import static com.google.common.truth.Truth.assert_;
import static com.google.testing.compile.JavaSourceSubjectFactory.javaSource;
package com.sys1yagi.fragmentcreator;






public class FragmentCreatorProcessorTest {
    private static final ClassLoader ANDROID_AWARE_CLASSLOADER = AndroidAwareClassLoader.create();

    @Test
    public void illegalTypeException() throws Exception {
// Path: processor/src/test/java/com/sys1yagi/fragmentcreator/testtool/AndroidAwareClassLoader.java
// public final class AndroidAwareClassLoader {
// 
//     private static final String TEST_CLASSPATH_FILE_NAME = "/additional-test-classpath.txt";
// 
//     private AndroidAwareClassLoader() {
//         throw new AssertionError();
//     }
// 
//     public static ClassLoader create() {
//         try {
//             InputStream stream = AndroidAwareClassLoader.class.getResourceAsStream(TEST_CLASSPATH_FILE_NAME);
//             URL[] urls = IOUtils.readLines(stream, Charset.forName("UTF-8"))
//                 .stream()
//                 .map(AndroidAwareClassLoader::unsafeToURL)
//                 .toArray(URL[]::new);
// 
//             return new URLClassLoader(urls, ClassLoader.getSystemClassLoader());
// 
//         } catch (IOException e) {
//             throw new RuntimeException(e);
//         }
//     }
// 
//     private static URL unsafeToURL(String spec) {
//         try {
//             return new URL(spec);
//         } catch (MalformedURLException e) {
//             throw new RuntimeException(e);
//         }
//     }
// }
// 
// Path: processor/src/test/java/com/sys1yagi/fragmentcreator/testtool/AssetsUtils.java
// public class AssetsUtils {
// 
//     public static String readString(String fileName) {
//         try (FileInputStream fis = new FileInputStream(new File("src/test/assets", fileName))) {
//             return IOUtils.toString(fis, "UTF-8");
//         } catch (IOException e) {
//             throw new IllegalArgumentException(e);
//         }
//     }
// }


// Path: processor/src/test/java/com/sys1yagi/fragmentcreator/FragmentCreatorProcessorTest.java
import com.google.testing.compile.JavaFileObjects;
import com.sys1yagi.fragmentcreator.testtool.AndroidAwareClassLoader;
import com.sys1yagi.fragmentcreator.testtool.AssetsUtils;
import org.junit.Test;
import javax.tools.JavaFileObject;
import static com.google.common.truth.Truth.assert_;
import static com.google.testing.compile.JavaSourceSubjectFactory.javaSource;

package com.sys1yagi.fragmentcreator;






public class FragmentCreatorProcessorTest {
    private static final ClassLoader ANDROID_AWARE_CLASSLOADER = AndroidAwareClassLoader.create();

    @Test
    public void illegalTypeException() throws Exception {
        String javaFile = AssetsUtils.readString("InvalidMainFragment.java");