@Test public void aromaticType() { Atom a = Mockito.mock(Atom.class); Atom b = Mockito.mock(Atom.class); Mockito.when(a.aromatic()).thenReturn(true); Mockito.when(b.aromatic()).thenReturn(true); Assert.assertThat(ImplicitToExplicit.type(a, b), CoreMatchers .is(Bond.AROMATIC)); }
static Bond type(Atom u, Atom v) { return u.aromatic() && v.aromatic() ? Bond.AROMATIC : Bond.SINGLE; }
ImplicitToExplicit extends AbstractFunction<Graph,Graph> { static Bond type(Atom u, Atom v) { return u.aromatic() && v.aromatic() ? Bond.AROMATIC : Bond.SINGLE; } }
ImplicitToExplicit extends AbstractFunction<Graph,Graph> { static Bond type(Atom u, Atom v) { return u.aromatic() && v.aromatic() ? Bond.AROMATIC : Bond.SINGLE; }  }
ImplicitToExplicit extends AbstractFunction<Graph,Graph> { static Bond type(Atom u, Atom v) { return u.aromatic() && v.aromatic() ? Bond.AROMATIC : Bond.SINGLE; }  Graph apply(final Graph g); }
ImplicitToExplicit extends AbstractFunction<Graph,Graph> { static Bond type(Atom u, Atom v) { return u.aromatic() && v.aromatic() ? Bond.AROMATIC : Bond.SINGLE; }  Graph apply(final Graph g);  }