You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2010/02/18 11:24:52 UTC

svn commit: r911309 - /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

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);