]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/test/java/org/argeo/slc/core/structure/tree/TreeSPathTest.java
Improve formatting
[gpl/argeo-slc.git] / org.argeo.slc.core / src / test / java / org / argeo / slc / core / structure / tree / TreeSPathTest.java
index fab6831117e85cece7e4f69391ec93d283dcf5d3..f24abc580ac6267cd1bf549df7f6114bc7f0038c 100644 (file)
@@ -18,40 +18,41 @@ public class TreeSPathTest extends TestCase {
                TreeSPath path1 = new TreeSPath("/test");\r
                TreeSPath path2 = new TreeSPath("/test");\r
                assertEquals(path1, path2);\r
-               \r
+\r
                path1 = new TreeSPath("/test/subdir/anotherdir");\r
                path2 = new TreeSPath("/test/subdir/anotherdir");\r
                assertEquals(path1, path2);\r
-               \r
+\r
                path1 = new TreeSPath("/test/subdir/anotherd");\r
                path2 = new TreeSPath("/test/subdir/anotherdir");\r
                assertNotSame(path1, path2);\r
-               \r
+\r
                path1 = new TreeSPath("/test/subdir");\r
                path2 = new TreeSPath("/test/subdir/anotherdir");\r
                assertNotSame(path1, path2);\r
-               \r
+\r
                path1 = new TreeSPath("/test/subd/anotherdir");\r
                path2 = new TreeSPath("/test/subdir/anotherdir");\r
                assertNotSame(path1, path2);\r
        }\r
-       \r
-       public void testCheckFormat(){\r
-               try{\r
+\r
+       public void testCheckFormat() {\r
+               try {\r
                        new TreeSPath("hello");\r
                        fail("Bad format should be rejected");\r
-               }catch(Exception e){\r
+               } catch (Exception e) {\r
                        // exception expected\r
                }\r
-               \r
-               try{\r
+\r
+               try {\r
                        new TreeSPath("/");\r
                        fail("Bad format should be rejected");\r
-               }catch(Exception e){\r
+               } catch (Exception e) {\r
                        // exception expected\r
                }\r
-               \r
+\r
                assertEquals(new TreeSPath("/test"), new TreeSPath("/test/"));\r
-               assertEquals(new TreeSPath("/test/dir"), new TreeSPath("//test///dir////"));\r
+               assertEquals(new TreeSPath("/test/dir"), new TreeSPath(\r
+                               "//test///dir////"));\r
        }\r
 }\r