test/src/kbasesearchengine/test/parse/ObjectParserTest.java
@Test
    public void prepareGUIDGenomeFeatureTest() throws Exception {

        final String jsonResource = "genome01";
        final String type = "GenomeFeature";

        final ArrayList<GUID> idList = prepareGUID(type, jsonResource, new GUID("WS:1/1/1"));

        assertThat(idList.size(), is(3));
        final List<String> expectedIds = Arrays.asList("NewGenome.CDS.6211", "NewGenome.CDS.6210",
                "NewGenome.CDS.6209");
        for (GUID guid : idList) {
            assertThat(guid.getSubObjectId(), is(expectedIds.get(idList.indexOf(guid))));
            assertThat(guid.getSubObjectType(), is("feature"));
            assertThat(guid.getStorageCode(), is("WS"));
            assertThat(guid.getVersion(), is(1));
            assertThat(guid.getAccessGroupId(), is(1));
            assertThat(guid.getAccessGroupObjectId(), is("1"));
        }
    }
/**
     * Testing preparing a genome feature GUID
     * 
     * @throws Exception
     */
Testing preparing a genome feature GUID

@throws Exception
Testing preparing a genome feature GUID @throws Exception
@Test
    public void prepareGUIDGenomeFeatureTest() throws Exception {
        final String jsonResource = "genome01";
        final String type = "GenomeFeature";
        final ArrayList<GUID> idList = prepareGUID(type, jsonResource, new GUID("WS:1/1/1"));
        assertThat(idList.size(), is(3));
        final List<String> expectedIds = Arrays.asList("NewGenome.CDS.6211", "NewGenome.CDS.6210",
                "NewGenome.CDS.6209");
        for (GUID guid : idList) {
            assertThat(guid.getSubObjectId(), is(expectedIds.get(idList.indexOf(guid))));
            assertThat(guid.getSubObjectType(), is("feature"));
            assertThat(guid.getStorageCode(), is("WS"));
            assertThat(guid.getVersion(), is(1));
            assertThat(guid.getAccessGroupId(), is(1));
            assertThat(guid.getAccessGroupObjectId(), is("1"));
        }
    }
@ Test public void prepareGUIDGenomeFeatureTest ( ) throws Exception { final String jsonResource = "genome01" ; final String type = "GenomeFeature" ; final ArrayList < GUID > idList = prepareGUID ( type , jsonResource , new GUID ( "WS:1/1/1" ) ) ; assertThat ( idList . size ( ) , is ( 3 ) ) ; final List < String > expectedIds = Arrays . asList ( "NewGenome.CDS.6211" , "NewGenome.CDS.6210" , "NewGenome.CDS.6209" ) ; for ( GUID guid : idList ) { assertThat ( guid . getSubObjectId ( ) , is ( expectedIds . get ( idList . indexOf ( guid ) ) ) ) ; assertThat ( guid . getSubObjectType ( ) , is ( "feature" ) ) ; assertThat ( guid . getStorageCode ( ) , is ( "WS" ) ) ; assertThat ( guid . getVersion ( ) , is ( 1 ) ) ; assertThat ( guid . getAccessGroupId ( ) , is ( 1 ) ) ; assertThat ( guid . getAccessGroupObjectId ( ) , is ( "1" ) ) ; } }
Testing preparing a genome feature GUID
Testing preparing a genome feature GUID