Author: fchrist
Date: Thu May  5 14:02:05 2011
New Revision: 1099809

URL: http://svn.apache.org/viewvc?rev=1099809&view=rev
Log:
STANBOL-190 fixed expected creation time in test

Modified:
    
incubator/stanbol/trunk/commons/web/base/src/test/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProviderTest.java

Modified: 
incubator/stanbol/trunk/commons/web/base/src/test/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProviderTest.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/web/base/src/test/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProviderTest.java?rev=1099809&r1=1099808&r2=1099809&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/commons/web/base/src/test/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProviderTest.java
 (original)
+++ 
incubator/stanbol/trunk/commons/web/base/src/test/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProviderTest.java
 Thu May  5 14:02:05 2011
@@ -103,7 +103,7 @@ public class JsonLdSerializerProviderTes
         jsonldProvider.setUseTypeCoercion(true);
         jsonldProvider.serialize(serializedGraph, ci.getMetadata(), 
formatIdentifier);
         
-        String expected = 
"{\"#\":{\"#types\":{\"http:\\/\\/fise.iks-project.eu\\/ontology\\/end\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#int\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selected-text\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#string\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selection-context\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#string\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/start\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#int\",\"http:\\/\\/purl.org\\/dc\\/terms\\/created\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#dateTime\"}},\"@\":\"<urn:iks-project:enhancer:test:text-annotation:Person>\",\"a\":[\"<http:\\/\\/fise.iks-project.eu\\/ontology\\/Enhancement>\",\"<http:\\/\\/fise.iks-project.eu\\/ontology\\/TextAnnotation>\"],\"http:\\/\\/fise.iks-project.eu\\/ontology\\/end\":20,\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selected-text\":\"Patrick
 Marshall\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selection-context\"
 :\"Dr. Patrick Marshall (1869 - November 1950) was a geologist who lived in 
New Zealand and worked at the University of 
Otago.\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/start\":4,\"http:\\/\\/purl.org\\/dc\\/terms\\/created\":\"2010-10-27T14:00:00+02:00\",\"http:\\/\\/purl.org\\/dc\\/terms\\/creator\":\"<urn:iks-project:enhancer:test:dummyEngine>\",\"http:\\/\\/purl.org\\/dc\\/terms\\/type\":\"<http:\\/\\/dbpedia.org\\/ontology\\/Person>\"}";
+        String expected = 
"{\"#\":{\"#types\":{\"http:\\/\\/fise.iks-project.eu\\/ontology\\/end\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#int\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selected-text\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#string\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selection-context\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#string\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/start\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#int\",\"http:\\/\\/purl.org\\/dc\\/terms\\/created\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#dateTime\"}},\"@\":\"<urn:iks-project:enhancer:test:text-annotation:Person>\",\"a\":[\"<http:\\/\\/fise.iks-project.eu\\/ontology\\/Enhancement>\",\"<http:\\/\\/fise.iks-project.eu\\/ontology\\/TextAnnotation>\"],\"http:\\/\\/fise.iks-project.eu\\/ontology\\/end\":20,\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selected-text\":\"Patrick
 Marshall\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selection-context\"
 :\"Dr. Patrick Marshall (1869 - November 1950) was a geologist who lived in 
New Zealand and worked at the University of 
Otago.\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/start\":4,\"http:\\/\\/purl.org\\/dc\\/terms\\/created\":\""
 + this.expectedW3CFormattedDate + 
"\",\"http:\\/\\/purl.org\\/dc\\/terms\\/creator\":\"<urn:iks-project:enhancer:test:dummyEngine>\",\"http:\\/\\/purl.org\\/dc\\/terms\\/type\":\"<http:\\/\\/dbpedia.org\\/ontology\\/Person>\"}";
         String result = serializedGraph.toString();
         Assert.assertEquals(expected, result);
     }
@@ -163,7 +163,7 @@ public class JsonLdSerializerProviderTes
         jsonldProvider.setUseTypeCoercion(true);
         jsonldProvider.serialize(serializedGraph, ci.getMetadata(), 
formatIdentifier);
 
-        String expected = 
"{\"#\":{\"dbpedia\":\"http:\\/\\/dbpedia.org\\/ontology\\/\",\"dcterms\":\"http:\\/\\/purl.org\\/dc\\/terms\",\"enhancer\":\"http:\\/\\/fise.iks-project.eu\\/ontology\\/\",\"xmlns\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#\",\"#types\":{\"http:\\/\\/fise.iks-project.eu\\/ontology\\/end\":\"xmlns:int\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selected-text\":\"xmlns:string\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selection-context\":\"xmlns:string\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/start\":\"xmlns:int\",\"http:\\/\\/purl.org\\/dc\\/terms\\/created\":\"xmlns:dateTime\"}},\"@\":\"<urn:iks-project:enhancer:test:text-annotation:Person>\",\"a\":[\"<enhancer:Enhancement>\",\"<enhancer:TextAnnotation>\"],\"dcterms:\\/created\":\"2010-10-27T14:00:00+02:00\",\"dcterms:\\/creator\":\"<urn:iks-project:enhancer:test:dummyEngine>\",\"dcterms:\\/type\":\"<dbpedia:Person>\",\"enhancer:end\":20,\"enhancer:selected-text\":\"Patrick
 Marsha
 ll\",\"enhancer:selection-context\":\"Dr. Patrick Marshall (1869 - November 
1950) was a geologist who lived in New Zealand and worked at the University of 
Otago.\",\"enhancer:start\":4}";
+        String expected = 
"{\"#\":{\"dbpedia\":\"http:\\/\\/dbpedia.org\\/ontology\\/\",\"dcterms\":\"http:\\/\\/purl.org\\/dc\\/terms\",\"enhancer\":\"http:\\/\\/fise.iks-project.eu\\/ontology\\/\",\"xmlns\":\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#\",\"#types\":{\"http:\\/\\/fise.iks-project.eu\\/ontology\\/end\":\"xmlns:int\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selected-text\":\"xmlns:string\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selection-context\":\"xmlns:string\",\"http:\\/\\/fise.iks-project.eu\\/ontology\\/start\":\"xmlns:int\",\"http:\\/\\/purl.org\\/dc\\/terms\\/created\":\"xmlns:dateTime\"}},\"@\":\"<urn:iks-project:enhancer:test:text-annotation:Person>\",\"a\":[\"<enhancer:Enhancement>\",\"<enhancer:TextAnnotation>\"],\"dcterms:\\/created\":\""
 + this.expectedW3CFormattedDate + 
"\",\"dcterms:\\/creator\":\"<urn:iks-project:enhancer:test:dummyEngine>\",\"dcterms:\\/type\":\"<dbpedia:Person>\",\"enhancer:end\":20,\"enhancer:selected-text\":\"Pa
 trick Marshall\",\"enhancer:selection-context\":\"Dr. Patrick Marshall (1869 - 
November 1950) was a geologist who lived in New Zealand and worked at the 
University of Otago.\",\"enhancer:start\":4}";
         String result = serializedGraph.toString();
         Assert.assertEquals(expected, result);
     }    
@@ -208,7 +208,7 @@ public class JsonLdSerializerProviderTes
         jsonldProvider.setUseTypeCoercion(true);
         jsonldProvider.serialize(serializedGraph, ci.getMetadata(), 
formatIdentifier);
 
-        String expected = "{\n    \"#\": {\n        \"dbpedia\": 
\"http:\\/\\/dbpedia.org\\/ontology\\/\",\n        \"dcterms\": 
\"http:\\/\\/purl.org\\/dc\\/terms\",\n        \"enhancer\": 
\"http:\\/\\/fise.iks-project.eu\\/ontology\\/\",\n        \"xmlns\": 
\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#\",\n        \"#types\": {\n         
   \"http:\\/\\/fise.iks-project.eu\\/ontology\\/end\": \"xmlns:int\",\n        
    \"http:\\/\\/fise.iks-project.eu\\/ontology\\/selected-text\": 
\"xmlns:string\",\n            
\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selection-context\": 
\"xmlns:string\",\n            
\"http:\\/\\/fise.iks-project.eu\\/ontology\\/start\": \"xmlns:int\",\n         
   \"http:\\/\\/purl.org\\/dc\\/terms\\/created\": \"xmlns:dateTime\"\n        
}\n    },\n    \"@\": 
\"<urn:iks-project:enhancer:test:text-annotation:Person>\",\n    \"a\": [\n     
   \"<enhancer:Enhancement>\",\n        \"<enhancer:TextAnnotation>\"\n    ],\n 
   \"dcterms:\\/created\": \"201
 0-10-27T14:00:00+02:00\",\n    \"dcterms:\\/creator\": 
\"<urn:iks-project:enhancer:test:dummyEngine>\",\n    \"dcterms:\\/type\": 
\"<dbpedia:Person>\",\n    \"enhancer:end\": 20,    \"enhancer:selected-text\": 
\"Patrick Marshall\",\n    \"enhancer:selection-context\": \"Dr. Patrick 
Marshall (1869 - November 1950) was a geologist who lived in New Zealand and 
worked at the University of Otago.\",\n    \"enhancer:start\": \n}";
+        String expected = "{\n    \"#\": {\n        \"dbpedia\": 
\"http:\\/\\/dbpedia.org\\/ontology\\/\",\n        \"dcterms\": 
\"http:\\/\\/purl.org\\/dc\\/terms\",\n        \"enhancer\": 
\"http:\\/\\/fise.iks-project.eu\\/ontology\\/\",\n        \"xmlns\": 
\"http:\\/\\/www.w3.org\\/2001\\/XMLSchema#\",\n        \"#types\": {\n         
   \"http:\\/\\/fise.iks-project.eu\\/ontology\\/end\": \"xmlns:int\",\n        
    \"http:\\/\\/fise.iks-project.eu\\/ontology\\/selected-text\": 
\"xmlns:string\",\n            
\"http:\\/\\/fise.iks-project.eu\\/ontology\\/selection-context\": 
\"xmlns:string\",\n            
\"http:\\/\\/fise.iks-project.eu\\/ontology\\/start\": \"xmlns:int\",\n         
   \"http:\\/\\/purl.org\\/dc\\/terms\\/created\": \"xmlns:dateTime\"\n        
}\n    },\n    \"@\": 
\"<urn:iks-project:enhancer:test:text-annotation:Person>\",\n    \"a\": [\n     
   \"<enhancer:Enhancement>\",\n        \"<enhancer:TextAnnotation>\"\n    ],\n 
   \"dcterms:\\/created\": \"" +
  this.expectedW3CFormattedDate + "\",\n    \"dcterms:\\/creator\": 
\"<urn:iks-project:enhancer:test:dummyEngine>\",\n    \"dcterms:\\/type\": 
\"<dbpedia:Person>\",\n    \"enhancer:end\": 20,    \"enhancer:selected-text\": 
\"Patrick Marshall\",\n    \"enhancer:selection-context\": \"Dr. Patrick 
Marshall (1869 - November 1950) was a geologist who lived in New Zealand and 
worked at the University of Otago.\",\n    \"enhancer:start\": \n}";
         String result = serializedGraph.toString();
         Assert.assertEquals(expected, result);
     }


Reply via email to