use of org.apache.storm.jdbc.mapper.JdbcLookupMapper in project storm by apache.
the class JdbcLookupBoltTest method testValidation.
@Test
public void testValidation() {
ConnectionProvider provider = new HikariCPConnectionProvider(new HashMap<String, Object>());
JdbcLookupMapper mapper = new SimpleJdbcLookupMapper(new Fields("test"), Lists.newArrayList(new Column("test", 0)));
String selectQuery = "select * from dual";
expectIllegaArgs(null, selectQuery, mapper);
expectIllegaArgs(provider, null, mapper);
expectIllegaArgs(provider, selectQuery, null);
}
Aggregations