@Test public void passThenFail() throws IOException { Bundle bundle = new ListBundle(); BundleFilterTry filter = (BundleFilterTry) Configs.decodeObject( BundleFilter.class, "try: {true {}}, catch: {fail {}}"); Assert.assertTrue(filter.filter(bundle)); }
@Override public boolean filter(Bundle row) { boolean tryResult = tryDo.filter(row); return tryResult || (catchDo == null) || catchDo.filter(row); }
BundleFilterTry implements BundleFilter { @Override public boolean filter(Bundle row) { boolean tryResult = tryDo.filter(row); return tryResult || (catchDo == null) || catchDo.filter(row); } }
BundleFilterTry implements BundleFilter { @Override public boolean filter(Bundle row) { boolean tryResult = tryDo.filter(row); return tryResult || (catchDo == null) || catchDo.filter(row); }  }
BundleFilterTry implements BundleFilter { @Override public boolean filter(Bundle row) { boolean tryResult = tryDo.filter(row); return tryResult || (catchDo == null) || catchDo.filter(row); }  @Override boolean filter(Bundle row); }
BundleFilterTry implements BundleFilter { @Override public boolean filter(Bundle row) { boolean tryResult = tryDo.filter(row); return tryResult || (catchDo == null) || catchDo.filter(row); }  @Override boolean filter(Bundle row);  }