sparqlGraphLibrary/src/test/java/com/ge/research/semtk/load/test/DataLoaderTest_IT.java
@Test
	public void testValidatePasses() throws Exception { 

		// set up the data
		String contents = "Battery,Cell,birthday,color\n"
				+ "MyBattery,cellA,01/01/1966,red\n";
		Dataset ds = new CSVDataset(contents, true);

		// get json
		TestGraph.clearGraph();
		TestGraph.uploadOwlResource(this, "/sampleBattery.owl");
		SparqlGraphJson sgJson = TestGraph.getSparqlGraphJsonFromResource(this, "sampleBattery_ValidateDateRed.json");

		
		// import
		DataLoader dl = new DataLoader(sgJson, ds, TestGraph.getUsername(), TestGraph.getPassword());

		int records = dl.importData(true);
		assertEquals(dl.getLoadingErrorReport().toCSVString(), 1, records);
	}
// Validation:  these test basic integration.  DataLoaderTest_IT tests details of validation.
these test basic integration.  DataLoaderTest_IT tests details of validation.
these test basic integration . DataLoaderTest_IT tests details of validation .
@Test
	public void testValidatePasses() throws Exception { 
		String contents = "Battery,Cell,birthday,color\n"
				+ "MyBattery,cellA,01/01/1966,red\n";
		Dataset ds = new CSVDataset(contents, true);
		TestGraph.clearGraph();
		TestGraph.uploadOwlResource(this, "/sampleBattery.owl");
		SparqlGraphJson sgJson = TestGraph.getSparqlGraphJsonFromResource(this, "sampleBattery_ValidateDateRed.json");
		DataLoader dl = new DataLoader(sgJson, ds, TestGraph.getUsername(), TestGraph.getPassword());
		int records = dl.importData(true);
		assertEquals(dl.getLoadingErrorReport().toCSVString(), 1, records);
	}
@ Test public void testValidatePasses ( ) throws Exception { String contents = "Battery,Cell,birthday,color\n" + "MyBattery,cellA,01/01/1966,red\n" ; Dataset ds = new CSVDataset ( contents , true ) ; TestGraph . clearGraph ( ) ; TestGraph . uploadOwlResource ( this , "/sampleBattery.owl" ) ; SparqlGraphJson sgJson = TestGraph . getSparqlGraphJsonFromResource ( this , "sampleBattery_ValidateDateRed.json" ) ; DataLoader dl = new DataLoader ( sgJson , ds , TestGraph . getUsername ( ) , TestGraph . getPassword ( ) ) ; int records = dl . importData ( true ) ; assertEquals ( dl . getLoadingErrorReport ( ) . toCSVString ( ) , 1 , records ) ; }
Validation:  these test basic integration.
Validation : these test basic integration .
// set up the data // get json // import