Exemplo n.º 1
0
 @Test
 public void testCreateWithDelegate_UUID() throws Exception {
   UUID uuid = UUID.nameUUIDFromBytes("uuid".getBytes());
   BiochemicalReaction rxn = BiochemRxnImpl.createWithDelegate(uuid);
   assertNotNull(rxn.getMetabolicReaction());
   assertThat(rxn.getMetabolicReaction().uuid(), is(uuid));
 }
Exemplo n.º 2
0
 @Test
 public void testCreateWithDelegate_Name() throws Exception {
   Identifier id = mock(Identifier.class);
   BiochemicalReaction rxn = BiochemRxnImpl.createWithDelegate(id, "abrv", "name");
   assertNotNull(rxn.getMetabolicReaction());
   assertThat(rxn.getMetabolicReaction().getIdentifier(), is(id));
   assertThat(rxn.getMetabolicReaction().getAbbreviation(), is("abrv"));
   assertThat(rxn.getMetabolicReaction().getName(), is("name"));
 }
Exemplo n.º 3
0
 @Test
 public void testGetMetabolicReaction() throws Exception {
   MetabolicReaction mock = mock(MetabolicReaction.class);
   BiochemRxnImpl rxn = new BiochemRxnImpl(mock);
   assertThat(rxn.getMetabolicReaction(), is(sameInstance(mock)));
 }
Exemplo n.º 4
0
 @Test
 public void testCreateWithDelegate() throws Exception {
   BiochemicalReaction rxn = BiochemRxnImpl.createWithDelegate();
   assertNotNull(rxn.getMetabolicReaction());
 }
Exemplo n.º 5
0
 @Test
 public void testNewInstance() throws Exception {
   assertNotNull(BiochemRxnImpl.createWithDelegate().newInstance());
 }