use of org.apache.ibatis.builder.annotation.ProviderSqlSource in project mybatis-3 by mybatis.
the class SqlProviderTest method methodNotFound.
@Test
public void methodNotFound() throws NoSuchMethodException {
expectedException.expect(BuilderException.class);
expectedException.expectMessage(is("Error creating SqlSource for SqlProvider. Method 'methodNotFound' not found in SqlProvider 'org.apache.ibatis.submitted.sqlprovider.SqlProviderTest$ErrorSqlBuilder'."));
new ProviderSqlSource(new Configuration(), ErrorMapper.class.getMethod("methodNotFound").getAnnotation(SelectProvider.class));
}
Aggregations