@@ -0,0 +1,2508 @@
+/*%0A * Copyright (c) 2013-2014, Arjuna Technologies Limited, Newcastle-upon-Tyne, England. All rights reserved.%0A */%0A%0Apackage com.arjuna.databroker.tests.metadata.rdf;%0A%0Aimport java.util.HashMap;%0Aimport java.util.LinkedList;%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0Aimport com.arjuna.databroker.metadata.Metadata;%0Aimport com.arjuna.databroker.metadata.MetadataContent;%0Aimport com.arjuna.databroker.metadata.MetadataInventory;%0Aimport com.arjuna.databroker.metadata.rdf.StoreMetadataInventory;%0Aimport com.arjuna.databroker.metadata.rdf.selectors.RDFMetadataContentsSelector;%0A%0Apublic class ObjectMethodViewTest%0A%7B%0A    @BeforeClass%0A    public static void setupInventory()%0A    %7B%0A        try%0A        %7B%0A            List%3CString%3E              ids              = new LinkedList%3CString%3E();%0A            Map%3CString, String%3E       contentMap       = new HashMap%3CString, String%3E();%0A            Map%3CString, String%3E       descriptionIdMap = new HashMap%3CString, String%3E();%0A            Map%3CString, String%3E       parentIdMap      = new HashMap%3CString, String%3E();%0A            Map%3CString, List%3CString%3E%3E childrenIdsMap   = new HashMap%3CString, List%3CString%3E%3E();%0A%0A            String test0001 = Utils.loadInputStream(MetaContentToViewTest.class.getResourceAsStream(%22Test0001.rdf%22));%0A%0A            ids.add(%22id1%22);%0A            contentMap.put(%22id1%22, test0001);%0A%0A            DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);%0A            MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);%0A            Metadata                  metadata                  = metadataInventory.metadata(%22id1%22).getMetadata();%0A%0A            _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath(%22http://rdf.arjuna.com/test0001#Test01%22).getMetadataContent();%0A        %7D%0A        catch (Throwable throwable)%0A        %7B%0A            fail(%22Failed to populate Metadata Inventory%22);%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void toStringMethod()%0A    %7B%0A        TestView testView = _metadataContent.getView(TestView.class);%0A        assertNotNull(%22Not expecting null Test View object%22, testView);%0A%0A        String stringForm = testView.toString();%0A        assertNotNull(%22Not expecting null for string form Test View object%22, stringForm);%0A    %7D%0A%0A    private static MetadataContent _metadataContent;%0A%7D%0A

Test of Object View Methods