类 TestCompiler
- java.lang.Object
 - org.springframework.boot.junit.compiler.TestCompiler
 
public class TestCompiler extends Object
Wrapper to make theJavaCompilereasier to use in tests.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classTestCompiler.TestCompilationTaskA compilation task.
字段概要
字段 修饰符和类型 字段 说明 static FileSOURCE_FOLDERThe default source folder.
构造器概要
构造器 构造器 说明 TestCompiler(JavaCompiler compiler, org.junit.rules.TemporaryFolder temporaryFolder)TestCompiler(org.junit.rules.TemporaryFolder temporaryFolder)
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected FilegetFile(Class<?> type)FilegetOutputLocation()protected FilegetSourceFolder()TestCompiler.TestCompilationTaskgetTask(Class<?>... types)TestCompiler.TestCompilationTaskgetTask(Collection<File> sourceFiles)static StringsourcePathFor(Class<?> type)
字段详细资料
SOURCE_FOLDER
public static final File SOURCE_FOLDER
The default source folder.
构造器详细资料
TestCompiler
public TestCompiler(org.junit.rules.TemporaryFolder temporaryFolder) throws IOException
- 抛出:
 IOException
TestCompiler
public TestCompiler(JavaCompiler compiler, org.junit.rules.TemporaryFolder temporaryFolder) throws IOException
- 抛出:
 IOException
方法详细资料
getTask
public TestCompiler.TestCompilationTask getTask(Collection<File> sourceFiles)
getTask
public TestCompiler.TestCompilationTask getTask(Class<?>... types)
getOutputLocation
public File getOutputLocation()
sourcePathFor
public static String sourcePathFor(Class<?> type)
getSourceFolder
protected File getSourceFolder()