I don't know if I am doing something wrong but this seems odd to me.
To reproduce this:
@Test
public void testMap() {
final JavaFileObject actualSource = JavaFileObjects.forSourceString("test/MapTest", Joiner.on('\n').join(
"package test;",
"import nsmodelextractor.Extract;",
"import java.util.Map;",
"import java.lang.String;",
"import java.lang.Integer;",
"public class MapTest {",
"@Extract Map<String, Integer> map = null;",
"}")
);
assertAbout(javaSource()).that(actualSource).compilesWithoutError();
}
The extract annotations looks like this
@Retention(CLASS)
@Target(FIELD)
public @interface Extract {
String name() default "";
}
I also tried it without any imports. However I keep on getting
Unknown variable type java.util.Map<java.lang.String,java.lang.Integer> for declared
I'm using com.google.testing.compile:compile-testing:0.7
I don't know if I am doing something wrong but this seems odd to me.
To reproduce this:
The extract annotations looks like this
I also tried it without any imports. However I keep on getting
I'm using
com.google.testing.compile:compile-testing:0.7