You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/06/21 15:14:27 UTC

svn commit: r1495427 - /jena/trunk/jena-text/src/test/java/jena/TestTextIndexer.java

Author: andy
Date: Fri Jun 21 13:14:27 2013
New Revision: 1495427

URL: http://svn.apache.org/r1495427
Log:
Note unused, unworking tests.

Modified:
    jena/trunk/jena-text/src/test/java/jena/TestTextIndexer.java

Modified: jena/trunk/jena-text/src/test/java/jena/TestTextIndexer.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-text/src/test/java/jena/TestTextIndexer.java?rev=1495427&r1=1495426&r2=1495427&view=diff
==============================================================================
--- jena/trunk/jena-text/src/test/java/jena/TestTextIndexer.java (original)
+++ jena/trunk/jena-text/src/test/java/jena/TestTextIndexer.java Fri Jun 21 13:14:27 2013
@@ -48,6 +48,9 @@ import com.hp.hpl.jena.rdf.model.Resourc
 import com.hp.hpl.jena.tdb.TDBFactory;
 import com.hp.hpl.jena.util.FileUtils;
 
+// THESE DO NOT WORK.
+// And aren't part of the test suite.
+
 public class TestTextIndexer {
 	private static final String RESOURCE_BASE = "http://example.org/data/resource/";
 	private static final String INDEX_PATH = "target/test/simpleLuceneIndex";
@@ -81,11 +84,8 @@ public class TestTextIndexer {
 		TextSearchUtil.emptyAndDeleteDirectory(tdbDir);
 	}
 	
-	@Test public void testDetectsNoDataset() {
-		try {
-			textindexer.testMain( new String[] {} );
-			fail("should have thrown an exception with no dataset");
-		} catch (CmdException e) {}		
+	@Test(expected=CmdException.class) public void testDetectsNoDataset() {
+	    textindexer.testMain( new String[] {} );
 	}
 	
 	@Test public void testDetectsNotTextIndexedDataset() {