@Test public void testIsQueryExecutable() { DataRow parameters = mock( DataRow.class ); TableModel model = mock( TableModel.class ); doReturn( model ).when( parameters ).get( QUERY ); boolean result = factory.isQueryExecutable( QUERY, parameters ); assertThat( result, is( equalTo( true ) ) ); }
public boolean isQueryExecutable( final String query, final DataRow parameters ) { final Object o = parameters.get( query ); return o instanceof TableModel; }
ExternalDataFactory extends AbstractDataFactory { public boolean isQueryExecutable( final String query, final DataRow parameters ) { final Object o = parameters.get( query ); return o instanceof TableModel; } }
ExternalDataFactory extends AbstractDataFactory { public boolean isQueryExecutable( final String query, final DataRow parameters ) { final Object o = parameters.get( query ); return o instanceof TableModel; } ExternalDataFactory(); }
ExternalDataFactory extends AbstractDataFactory { public boolean isQueryExecutable( final String query, final DataRow parameters ) { final Object o = parameters.get( query ); return o instanceof TableModel; } ExternalDataFactory(); TableModel queryData( final String query, final DataRow parameters ); DataFactory derive(); void close(); boolean isQueryExecutable( final String query, final DataRow parameters ); String[] getQueryNames(); }
ExternalDataFactory extends AbstractDataFactory { public boolean isQueryExecutable( final String query, final DataRow parameters ) { final Object o = parameters.get( query ); return o instanceof TableModel; } ExternalDataFactory(); TableModel queryData( final String query, final DataRow parameters ); DataFactory derive(); void close(); boolean isQueryExecutable( final String query, final DataRow parameters ); String[] getQueryNames();  }