Author: reto
Date: Thu Feb 18 10:24:52 2010
New Revision: 911309

URL: http://svn.apache.org/viewvc?rev=911309&view=rev
Log:
fixed test for changes in Platform-config

Modified:
    
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.webapp.parent/org.apache.clerezza.platform.content/src/test/java/org/apache/clerezza/platform/content/hierarchy/HierarchyTest.java

Modified: 
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.webapp.parent/org.apache.clerezza.platform.content/src/test/java/org/apache/clerezza/platform/content/hierarchy/HierarchyTest.java
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.webapp.parent/org.apache.clerezza.platform.content/src/test/java/org/apache/clerezza/platform/content/hierarchy/HierarchyTest.java?rev=911309&r1=911308&r2=911309&view=diff
==============================================================================
--- 
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.webapp.parent/org.apache.clerezza.platform.content/src/test/java/org/apache/clerezza/platform/content/hierarchy/HierarchyTest.java
 (original)
+++ 
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.webapp.parent/org.apache.clerezza.platform.content/src/test/java/org/apache/clerezza/platform/content/hierarchy/HierarchyTest.java
 Thu Feb 18 10:24:52 2010
@@ -202,6 +202,13 @@
        }
 
        private static class MyPlatformConfig extends PlatformConfig {
+
+               MyPlatformConfig() {
+                       final SimpleMGraph systemGraph = new SimpleMGraph();
+                       systemGraph.add(new TripleImpl(new BNode(),
+                                       RDF.type, PLATFORM.Instance));
+                       bindSystemGraph(systemGraph);
+               }
                @Override
                public Set<UriRef> getBaseUris() {
                        return Collections.singleton(root);
@@ -211,10 +218,12 @@
        private HierarchyService getHierarchyService() {
                HierarchyService hierarchyService = new TestHierarchyService();
                ContentGraphProvider myCgProvider = new 
MyContentGraphProvider();
+               final SimpleMGraph systemGraph = new SimpleMGraph();
                PlatformConfig myPlatConf = new MyPlatformConfig();
                hierarchyService.cgProvider = myCgProvider;
                hierarchyService.config = myPlatConf;
-               hierarchyService.systemGraph = new SimpleMGraph();
+               
+               hierarchyService.systemGraph = systemGraph;
                Triple rootTriple = new TripleImpl(root,
                        RDF.type, HIERARCHY.Collection);
                myCgProvider.getContentGraph().add(rootTriple);


Reply via email to