use of com.pushtorefresh.storio3.sqlite.annotations.processor.StorIOSQLiteProcessor in project storio by pushtorefresh.
the class StorIOSQLiteAnnotationsProcessorTest method shouldNotCompileIfTableIsEmpty.
@Test
public void shouldNotCompileIfTableIsEmpty() {
JavaFileObject model = JavaFileObjects.forResource("EmptyTable.java");
assert_().about(javaSource()).that(model).processedWith(new StorIOSQLiteProcessor()).failsToCompile().withErrorContaining("Table name of EmptyTable annotated with StorIOSQLiteType is empty");
}
use of com.pushtorefresh.storio3.sqlite.annotations.processor.StorIOSQLiteProcessor in project storio by pushtorefresh.
the class StorIOSQLiteAnnotationsProcessorTest method shouldNotCompileIfAnnotatedFieldNotInsideClass.
@Test
public void shouldNotCompileIfAnnotatedFieldNotInsideClass() {
JavaFileObject model = JavaFileObjects.forResource("AnnotatedFieldNotInsideClass.java");
assert_().about(javaSource()).that(model).processedWith(new StorIOSQLiteProcessor()).failsToCompile().withErrorContaining("Please apply StorIOSQLiteColumn only to members of class (fields or methods) - not to members of" + " AnnotatedFieldNotInsideClass");
}
use of com.pushtorefresh.storio3.sqlite.annotations.processor.StorIOSQLiteProcessor in project storio by pushtorefresh.
the class StorIOSQLiteAnnotationsProcessorTest method shouldNotCompileIfColumnNameIsEmpty.
@Test
public void shouldNotCompileIfColumnNameIsEmpty() {
JavaFileObject model = JavaFileObjects.forResource("EmptyColumnName.java");
assert_().about(javaSource()).that(model).processedWith(new StorIOSQLiteProcessor()).failsToCompile().withErrorContaining("Column name is empty: id");
}
use of com.pushtorefresh.storio3.sqlite.annotations.processor.StorIOSQLiteProcessor in project storio by pushtorefresh.
the class StorIOSQLiteAnnotationsProcessorTest method shouldNotCompileIfCreatorNotInsideClass.
@Test
public void shouldNotCompileIfCreatorNotInsideClass() {
JavaFileObject model = JavaFileObjects.forResource("CreatorNotInsideClass.java");
assert_().about(javaSource()).that(model).processedWith(new StorIOSQLiteProcessor()).failsToCompile().withErrorContaining("Please apply StorIOSQLiteCreator to constructor or factory method of class - not to CreatorNotInsideClass");
}
use of com.pushtorefresh.storio3.sqlite.annotations.processor.StorIOSQLiteProcessor in project storio by pushtorefresh.
the class StorIOSQLiteAnnotationsProcessorTest method shouldCompileIfAnnotatedMethodIsFinal.
@Test
public void shouldCompileIfAnnotatedMethodIsFinal() {
JavaFileObject model = JavaFileObjects.forResource("FinalMethod.java");
assert_().about(javaSource()).that(model).processedWith(new StorIOSQLiteProcessor()).compilesWithoutError();
}
Aggregations