AnyOrderQueryBond extends SMARTSBond { @Override public boolean matches(IBond bond) { return bond != null; } AnyOrderQueryBond(IChemObjectBuilder builder);  AnyOrderQueryBond(IQueryAtom atom1, IQueryAtom atom2, IBond.Order order, IChemObjectBuilder builder); @Override boolean matches(IBond bond); @Override String toString();  }
@Test public void testMatches() { IBond testBond = null; AnyOrderQueryBond matcher = new AnyOrderQueryBond(mock(IChemObjectBuilder.class)); Assert.assertFalse(matcher.matches(testBond)); }
@Test public void testAnyOrder() { AnyOrderQueryBond matcher = new AnyOrderQueryBond(mock(IChemObjectBuilder.class)); IBond testBond = new Bond(); for (IBond.Order order : IBond.Order.values()) { testBond.setOrder(order); Assert.assertTrue(matcher.matches(testBond)); } }