jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject [88/93] [abbrv] jena git commit: Reformat
Date Wed, 14 Jan 2015 10:32:30 GMT
Reformat

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

Branch: refs/heads/hadoop-rdf
Commit: 067e09946f66b7f37747ef24be243f4ce6fff0e3
Parents: e89146d
Author: Andy Seaborne <andy@apache.org>
Authored: Mon Jan 12 20:17:36 2015 +0000
Committer: Andy Seaborne <andy@apache.org>
Committed: Mon Jan 12 20:17:36 2015 +0000

----------------------------------------------------------------------
 jena-iri/src/test/java/org/apache/jena/iri/TestExample.java | 9 ++++-----
 .../src/test/java/org/apache/jena/iri/TestMoreExamples.java | 5 +----
 2 files changed, 5 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/067e0994/jena-iri/src/test/java/org/apache/jena/iri/TestExample.java
----------------------------------------------------------------------
diff --git a/jena-iri/src/test/java/org/apache/jena/iri/TestExample.java b/jena-iri/src/test/java/org/apache/jena/iri/TestExample.java
index cfe6a80..ce32940 100644
--- a/jena-iri/src/test/java/org/apache/jena/iri/TestExample.java
+++ b/jena-iri/src/test/java/org/apache/jena/iri/TestExample.java
@@ -154,12 +154,11 @@ public class TestExample extends TestCase
         
         IRI iri = f.create(uri);
         if (iri.hasViolation(false)) {
-            if (good) fail("Unexpected violation found: "+
-            ((iri.violations(false).next())).codeName()
-            
-            );
+            if (good) 
+                fail("Unexpected violation found: "+((iri.violations(false).next())).codeName());
         } else {
-            if (!good) fail("Expected a violation, none found.");
+            if (!good)
+                fail("Expected a violation, none found.");
         }
             
         

http://git-wip-us.apache.org/repos/asf/jena/blob/067e0994/jena-iri/src/test/java/org/apache/jena/iri/TestMoreExamples.java
----------------------------------------------------------------------
diff --git a/jena-iri/src/test/java/org/apache/jena/iri/TestMoreExamples.java b/jena-iri/src/test/java/org/apache/jena/iri/TestMoreExamples.java
index 7ae0371..e87b67e 100644
--- a/jena-iri/src/test/java/org/apache/jena/iri/TestMoreExamples.java
+++ b/jena-iri/src/test/java/org/apache/jena/iri/TestMoreExamples.java
@@ -202,7 +202,6 @@ public class TestMoreExamples extends TestCase implements
 //        System.err.println("runTest"+cnt + " " + getName());
        iri = getIRI();
        
-       
        assertEquals("violations",violations,getViolations());
        
        Iterator<Map.Entry<String, Map<String,String>>> it = methods.entrySet().iterator();
@@ -211,8 +210,7 @@ public class TestMoreExamples extends TestCase implements
            String m = ent.getKey();
            Map<String,String> attrs = ent.getValue();
            try {
-               Object r = IRI.class.getDeclaredMethod(m,TestCreator.nullSign)
-                .invoke(iri,new Object[]{});
+               Object r = IRI.class.getDeclaredMethod(m,TestCreator.nullSign).invoke(iri,new
Object[]{});
                if (r==null)
                    assertEquals(attrs.get("nullValue"),"true");
                else
@@ -226,7 +224,6 @@ public class TestMoreExamples extends TestCase implements
                 if (t.getCause()!=null)
                     t= t.getCause();
                 String s = t.getMessage()!=null?t.getMessage():t.toString();
-                
                 assertEquals(attrs.get("exception"),s);
             }
        }


Mime
View raw message