jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cla...@apache.org
Subject [43/50] [abbrv] jena git commit: JENA-938 : Code cleaning (extract of PR #60)
Date Sat, 16 May 2015 08:59:25 GMT
http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestResourceMethods.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestResourceMethods.java
b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestResourceMethods.java
index 4c83473..6b62105 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestResourceMethods.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestResourceMethods.java
@@ -46,7 +46,7 @@ public class TestResourceMethods extends AbstractModelTestBase
 	}
 
 	@Override
-	public void setUp() throws Exception
+	public void setUp()
 	{
 		super.setUp();
 		tvLiteral = model.createLiteral("test 12 string 2");

http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSelectorUse.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSelectorUse.java b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSelectorUse.java
index 9767379..6de93fd 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSelectorUse.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSelectorUse.java
@@ -53,7 +53,7 @@ public class TestSelectorUse extends AbstractModelTestBase
 	}
 
 	@Override
-	public void setUp() throws Exception
+	public void setUp()
 	{
 		super.setUp();
 		final Literal tvLitObjs[] = {

http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSeqMethods.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSeqMethods.java b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSeqMethods.java
index a4fbcd4..4a7c6b4 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSeqMethods.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSeqMethods.java
@@ -84,7 +84,7 @@ public class TestSeqMethods extends AbstractContainerMethods
 	}
 
 	@Override
-	public void setUp() throws Exception
+	public void setUp()
 	{
 		super.setUp();
 		aLitTestObj = new LitTestObj(12345);

http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleListStatements.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleListStatements.java
b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleListStatements.java
index e7ad1f5..d4ecf8d 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleListStatements.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleListStatements.java
@@ -65,7 +65,7 @@ public class TestSimpleListStatements extends AbstractModelTestBase
 	}
 
 	@Override
-	public void setUp() throws Exception
+	public void setUp()
 	{
 
 		super.setUp();

http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleSelector.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleSelector.java
b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleSelector.java
index 5d7246c..7a2c53d 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleSelector.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestSimpleSelector.java
@@ -34,7 +34,7 @@ public class TestSimpleSelector extends AbstractModelTestBase
 	}
 
 	@Override
-	public void setUp() throws Exception
+	public void setUp()
 	{
 		super.setUp();
 		model.createResource().addProperty(RDF.type, RDFS.Resource)

http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementCreation.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementCreation.java
b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementCreation.java
index 619bd85..24af753 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementCreation.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementCreation.java
@@ -41,7 +41,7 @@ public class TestStatementCreation extends AbstractModelTestBase
 	}
 
 	@Override
-	public void setUp() throws Exception
+	public void setUp()
 	{
 		super.setUp();
 		r = model.createResource(TestStatementCreation.subjURI);
@@ -49,7 +49,7 @@ public class TestStatementCreation extends AbstractModelTestBase
 	}
 
 	@Override
-	public void tearDown() throws Exception
+	public void tearDown()
 	{
 		r = null;
 		p = null;

http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementMethods.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementMethods.java
b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementMethods.java
index 9a7c142..12f57ba 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementMethods.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestStatementMethods.java
@@ -58,7 +58,7 @@ public class TestStatementMethods extends AbstractModelTestBase
 	}
 
 	@Override
-	public void setUp() throws Exception
+	public void setUp()
 	{
 		super.setUp();
 		r = model.createResource();

http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/PrettyWriterTest.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/PrettyWriterTest.java
b/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/PrettyWriterTest.java
index 7967d3e..97d890d 100644
--- a/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/PrettyWriterTest.java
+++ b/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/PrettyWriterTest.java
@@ -159,7 +159,7 @@ public class PrettyWriterTest extends ModelTestBase {
 		try {
 			m0.write(new OutputStream() {
 				@Override
-                public void write(int b) throws IOException {
+                public void write(int b) {
 				}
 			}, "RDF/XML-ABBREV");
 

http://git-wip-us.apache.org/repos/asf/jena/blob/a251dd9a/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestXMLFeatures.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestXMLFeatures.java
b/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestXMLFeatures.java
index 3f6e9e7..bee5496 100644
--- a/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestXMLFeatures.java
+++ b/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestXMLFeatures.java
@@ -64,7 +64,7 @@ public class TestXMLFeatures extends XMLOutputTestBase {
 		m.createResource("foo").addProperty(RDF.value, "bar");
 		m.write(new OutputStream() {
 			@Override
-            public void write(int b) throws IOException {
+            public void write(int b) {
 			}
 		}, lang);
 	}
@@ -81,7 +81,7 @@ public class TestXMLFeatures extends XMLOutputTestBase {
 	 * j.0 defined (eg it was read in from a model we wrote out earlier) wants
 	 * to allocate a new j.* prefix and picked j.0, BOOM.
 	 */
-	public void SUPPRESSEDtestBrokenPrefixing() throws Exception {
+	public void SUPPRESSEDtestBrokenPrefixing() {
 		Model m = ModelFactory.createDefaultModel();
 		m.add(ModelTestBase.statement(m, "a http://bingle.bongle/booty#PP b"));
 		m.add(ModelTestBase.statement(m, "c http://dingle.dongle/dooty#PP d"));


Mime
View raw message