jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject [09/50] [abbrv] git commit: Delete old test class
Date Thu, 02 Oct 2014 09:48:18 GMT
Delete old test class

git-svn-id: http://svn.apache.org/repos/asf/jena/Experimental/jena-csv@1611872 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/3300d328
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/3300d328
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/3300d328

Branch: refs/heads/jena-csv
Commit: 3300d32898c3403e71506a269f7c9c52996fea31
Parents: 20cdd49
Author: Ying Jiang <jpz6311whu@apache.org>
Authored: Sat Jul 19 09:50:09 2014 +0000
Committer: Ying Jiang <jpz6311whu@apache.org>
Committed: Sat Jul 19 09:50:09 2014 +0000

----------------------------------------------------------------------
 .../jena/propertytable/impl/GraphCSVTest.java   | 75 --------------------
 1 file changed, 75 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/3300d328/src/test/java/com/hp/hpl/jena/propertytable/impl/GraphCSVTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/com/hp/hpl/jena/propertytable/impl/GraphCSVTest.java b/src/test/java/com/hp/hpl/jena/propertytable/impl/GraphCSVTest.java
deleted file mode 100644
index 01b0564..0000000
--- a/src/test/java/com/hp/hpl/jena/propertytable/impl/GraphCSVTest.java
+++ /dev/null
@@ -1,75 +0,0 @@
-package com.hp.hpl.jena.propertytable.impl;
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.jena.propertytable.impl.GraphCSV;
-import org.apache.jena.propertytable.impl.StageGeneratorPropertyTable;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
-
-import com.hp.hpl.jena.query.ARQ;
-import com.hp.hpl.jena.query.Query;
-import com.hp.hpl.jena.query.QueryExecution;
-import com.hp.hpl.jena.query.QueryExecutionFactory;
-import com.hp.hpl.jena.query.QueryFactory;
-import com.hp.hpl.jena.query.QuerySolution;
-import com.hp.hpl.jena.query.ResultSet;
-import com.hp.hpl.jena.rdf.model.Model;
-import com.hp.hpl.jena.rdf.model.ModelFactory;
-import com.hp.hpl.jena.sparql.algebra.Algebra;
-import com.hp.hpl.jena.sparql.algebra.Op;
-import com.hp.hpl.jena.sparql.engine.main.StageBuilder;
-import com.hp.hpl.jena.sparql.engine.main.StageGenerator;
-import com.hp.hpl.jena.util.PrintUtil;
-
-public class GraphCSVTest extends Assert {
-	
-	@Test
-	public void testGraphCSV() throws Exception {
-		String file = "src/test/resources/test.csv";
-		
-		Model csv = ModelFactory.createModelForGraph(new GraphCSV(file));
-		assertEquals(12, csv.size());
-
-		Query query = QueryFactory
-				.create("PREFIX : <src/test/resources/test.csv#> SELECT ?townName ?pop {?x :Town
?townName ; :Population ?pop ; :Predicate%20With%20Space 'PredicateWithSpace2' . FILTER(?pop
> 500000)}");
-		
-		QueryExecution qexec = QueryExecutionFactory.create(query, csv);
-		ResultSet results = qexec.execSelect();
-		
-		assertTrue(results.hasNext());
-		QuerySolution soln = results.nextSolution();
-		assertEquals( "Northville", soln.getLiteral("townName").getString());
-		assertTrue( 654000 == soln.getLiteral("pop").getInt());
-		
-		assertFalse(results.hasNext());
-	}
-	
-	@Test 
-	public void stageGeneratorTest() throws Exception{
-		wireIntoExecution();
-		testGraphCSV();
-	}
-	
-    private static void wireIntoExecution() {
-        StageGenerator orig = (StageGenerator)ARQ.getContext().get(ARQ.stageGenerator) ;
-        StageGenerator stageGenerator = new StageGeneratorPropertyTable(orig) ;
-        StageBuilder.setGenerator(ARQ.getContext(), stageGenerator) ;
-    }
-}


Mime
View raw message