@Test
public void inputTypeFinder_should_returnClassItself() {
//GIVEN
source =
forSourceString(
"test.Test",
"" //
+ "package test;\n" //
+ "import org.gradle.incap.Annotation1;\n" //
+ "@Annotation1\n" //
+ "public class Test {\n" //
+ "}");
//WHEN
InputType inputType = findInputTypeSuccessFully(source);
//THEN
assertThat(inputType, CoreMatchers.notNullValue());
assertThat(inputType.getName(), CoreMatchers.is("test.Test"));
}
InputTypeFinderTest.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:incap
作者:
评论列表
文章目录