@Test public void testIsFiltered() throws Throwable { String key; Boolean actual; Dataset dataset = Dataset.create( myKeys, myValues ); key = "key1"; myLog.debug( "Testing FilterTrue for dataset: " + dataset + " and key" + key ); myClassUnderTest.init( key, null ); actual = myClassUnderTest.isFiltered( dataset ); myLog.debug( "Received: " + actual ); Assert.assertNotNull( actual ); Assert.assertTrue( actual ); key = "key2"; myLog.debug( "Testing FilterTrue for dataset: " + dataset + " and key" + key ); myClassUnderTest.init( key, null ); actual = myClassUnderTest.isFiltered( dataset ); myLog.debug( "Received: " + actual ); Assert.assertNotNull( actual ); Assert.assertFalse( actual ); }
@Override public boolean isFiltered( Dataset aDataset ) throws SdiException { Boolean value = getFieldValue( aDataset ); if ( value == null ) { return false; } return value; }
FilterTrue extends FilterOnBooleanField { @Override public boolean isFiltered( Dataset aDataset ) throws SdiException { Boolean value = getFieldValue( aDataset ); if ( value == null ) { return false; } return value; } }
FilterTrue extends FilterOnBooleanField { @Override public boolean isFiltered( Dataset aDataset ) throws SdiException { Boolean value = getFieldValue( aDataset ); if ( value == null ) { return false; } return value; }  }
FilterTrue extends FilterOnBooleanField { @Override public boolean isFiltered( Dataset aDataset ) throws SdiException { Boolean value = getFieldValue( aDataset ); if ( value == null ) { return false; } return value; }  @Override boolean isFiltered( Dataset aDataset ); }
FilterTrue extends FilterOnBooleanField { @Override public boolean isFiltered( Dataset aDataset ) throws SdiException { Boolean value = getFieldValue( aDataset ); if ( value == null ) { return false; } return value; }  @Override boolean isFiltered( Dataset aDataset );  }