Exemplo n.º 1
0
 @Test
 public void testParse_NoEc() throws IOException {
   ImgFunction func =
       ImgFunctionReader.parse(
           new String[] {"wfws", "637365108", "cassette chromosome recombinase A", ""});
   assertThat(func.id(), is(637365108));
   assertThat(func.product(), is("cassette chromosome recombinase A"));
   assertTrue(func.ec().isEmpty());
 }
Exemplo n.º 2
0
 @Test
 public void testParse() throws IOException {
   ImgFunction func =
       ImgFunctionReader.parse(
           new String[] {
             "wfws",
             "637365049",
             "DNA polymerase III, beta subunit (EC 2.7.7.7) (IMGterm)  ",
             "EC:2.7.7.7"
           });
   assertThat(func.id(), is(637365049));
   assertThat(func.product(), is("DNA polymerase III, beta subunit (EC 2.7.7.7) (IMGterm)"));
   assertThat(func.ec(), hasItem("EC:2.7.7.7"));
 }
Exemplo n.º 3
0
 @Test
 public void testParse_multipleEC() throws IOException {
   ImgFunction func =
       ImgFunctionReader.parse(
           new String[] {
             "wfws",
             "637365111",
             "copper-transporting ATPase copA ( EC:3.6.3.3,EC:3.6.3.5 ) ",
             "EC:3.6.3.3, EC:3.6.3.5"
           });
   assertThat(func.id(), is(637365111));
   assertThat(func.product(), is("copper-transporting ATPase copA ( EC:3.6.3.3,EC:3.6.3.5 )"));
   assertThat(func.ec(), hasItem("EC:3.6.3.3"));
   assertThat(func.ec(), hasItem("EC:3.6.3.5"));
 }