Strabon

changeset 1036:6e417d9b4c3d temporals

added a test on the UC case temporarily before moving the temporal tests to the test suite
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Tue Apr 16 15:38:41 2013 +0300 (2013-04-16)
parents ae9f108cc7a9
children 8416712b0b92
files runtime/src/test/java/eu/earthobservatory/runtime/postgres/temporals/storeTests.java
line diff
     1.1 --- a/runtime/src/test/java/eu/earthobservatory/runtime/postgres/temporals/storeTests.java	Tue Apr 16 14:42:20 2013 +0300
     1.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/postgres/temporals/storeTests.java	Tue Apr 16 15:38:41 2013 +0300
     1.3 @@ -155,6 +155,36 @@
     1.4  		
     1.5  	}
     1.6  	
     1.7 +	
     1.8 +	@Test
     1.9 +	public void testStoreUCString() 
    1.10 +	{
    1.11 +		String text1 = "<http://example.org/itemOfString1> <http://example.org/id> \"String111\" \"[2005-11-19T12:41:00,2009-11-19T13:41:00]\"^^<http://strdf.di.uoa.gr/ontology#period> . \n" +
    1.12 +				"<http://example.org/itemOfString2> <http://example.org/id> \"String112\" \"[2010-11-19T12:42:00,UC]\"^^<http://strdf.di.uoa.gr/ontology#period>.";
    1.13 +		
    1.14 +		
    1.15 +		try {
    1.16 +			strabon.storeInRepo(text1, "NQUADS");
    1.17 +
    1.18 +		} catch (RDFParseException e) {
    1.19 +			// TODO Auto-generated catch block
    1.20 +			e.printStackTrace();
    1.21 +		} catch (RepositoryException e) {
    1.22 +			// TODO Auto-generated catch block
    1.23 +			e.printStackTrace();
    1.24 +		} catch (RDFHandlerException e) {
    1.25 +			// TODO Auto-generated catch block
    1.26 +			e.printStackTrace();
    1.27 +		} catch (IOException e) {
    1.28 +			// TODO Auto-generated catch block
    1.29 +			e.printStackTrace();
    1.30 +		} catch (InvalidDatasetFormatFault e) {
    1.31 +			// TODO Auto-generated catch block
    1.32 +			e.printStackTrace();
    1.33 +		}
    1.34 +		
    1.35 +	}
    1.36 +	
    1.37  	@Test
    1.38  	public void testNQUADSFile() throws RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault 
    1.39  	{