类 TestCompiler
- java.lang.Object
- org.springframework.boot.junit.compiler.TestCompiler
public class TestCompiler extends Object
Wrapper to make theJavaCompiler
easier to use in tests.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
TestCompiler.TestCompilationTask
A compilation task.
字段概要
字段 修饰符和类型 字段 说明 static File
SOURCE_FOLDER
The default source folder.
构造器概要
构造器 构造器 说明 TestCompiler(JavaCompiler compiler, org.junit.rules.TemporaryFolder temporaryFolder)
TestCompiler(org.junit.rules.TemporaryFolder temporaryFolder)
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected File
getFile(Class<?> type)
File
getOutputLocation()
protected File
getSourceFolder()
TestCompiler.TestCompilationTask
getTask(Class<?>... types)
TestCompiler.TestCompilationTask
getTask(Collection<File> sourceFiles)
static String
sourcePathFor(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()