Fixes for checkstyle errors
Change-Id: If965adef131e62f8e27e4b82c8649e572b6b49a5
Showing
1 changed file
with
6 additions
and
6 deletions
... | @@ -49,7 +49,7 @@ public class DefaultDocumentTreeTest { | ... | @@ -49,7 +49,7 @@ public class DefaultDocumentTreeTest { |
49 | Assert.assertTrue(tree.create(path("root.a.b"), "baz")); | 49 | Assert.assertTrue(tree.create(path("root.a.b"), "baz")); |
50 | } | 50 | } |
51 | 51 | ||
52 | - @Test(expected=IllegalDocumentModificationException.class) | 52 | + @Test(expected = IllegalDocumentModificationException.class) |
53 | public void testCreateNodeFailure() { | 53 | public void testCreateNodeFailure() { |
54 | DocumentTree<String> tree = new DefaultDocumentTree<>(); | 54 | DocumentTree<String> tree = new DefaultDocumentTree<>(); |
55 | tree.create(path("root.a.b"), "bar"); | 55 | tree.create(path("root.a.b"), "bar"); |
... | @@ -105,14 +105,14 @@ public class DefaultDocumentTreeTest { | ... | @@ -105,14 +105,14 @@ public class DefaultDocumentTreeTest { |
105 | Assert.assertEquals(0, tree.getChildren(path("root.a.b")).size()); | 105 | Assert.assertEquals(0, tree.getChildren(path("root.a.b")).size()); |
106 | } | 106 | } |
107 | 107 | ||
108 | - @Test(expected=NoSuchDocumentPathException.class) | 108 | + @Test(expected = NoSuchDocumentPathException.class) |
109 | public void testGetChildrenFailure() { | 109 | public void testGetChildrenFailure() { |
110 | DocumentTree<String> tree = new DefaultDocumentTree<>(); | 110 | DocumentTree<String> tree = new DefaultDocumentTree<>(); |
111 | tree.create(path("root.a"), "bar"); | 111 | tree.create(path("root.a"), "bar"); |
112 | tree.getChildren(path("root.a.b")); | 112 | tree.getChildren(path("root.a.b")); |
113 | } | 113 | } |
114 | 114 | ||
115 | - @Test(expected=IllegalDocumentModificationException.class) | 115 | + @Test(expected = IllegalDocumentModificationException.class) |
116 | public void testSetRootFailure() { | 116 | public void testSetRootFailure() { |
117 | DocumentTree<String> tree = new DefaultDocumentTree<>(); | 117 | DocumentTree<String> tree = new DefaultDocumentTree<>(); |
118 | tree.set(tree.root(), "bar"); | 118 | tree.set(tree.root(), "bar"); |
... | @@ -127,7 +127,7 @@ public class DefaultDocumentTreeTest { | ... | @@ -127,7 +127,7 @@ public class DefaultDocumentTreeTest { |
127 | Assert.assertEquals("beta", tree.get(path("root.a.b")).value()); | 127 | Assert.assertEquals("beta", tree.get(path("root.a.b")).value()); |
128 | } | 128 | } |
129 | 129 | ||
130 | - @Test(expected=IllegalDocumentModificationException.class) | 130 | + @Test(expected = IllegalDocumentModificationException.class) |
131 | public void testSetInvalidNode() { | 131 | public void testSetInvalidNode() { |
132 | DocumentTree<String> tree = new DefaultDocumentTree<>(); | 132 | DocumentTree<String> tree = new DefaultDocumentTree<>(); |
133 | tree.set(path("root.a.b"), "alpha"); | 133 | tree.set(path("root.a.b"), "alpha"); |
... | @@ -153,7 +153,7 @@ public class DefaultDocumentTreeTest { | ... | @@ -153,7 +153,7 @@ public class DefaultDocumentTreeTest { |
153 | Assert.assertTrue(tree.replace(path("root.x"), "beta", null)); | 153 | Assert.assertTrue(tree.replace(path("root.x"), "beta", null)); |
154 | } | 154 | } |
155 | 155 | ||
156 | - @Test(expected=IllegalDocumentModificationException.class) | 156 | + @Test(expected = IllegalDocumentModificationException.class) |
157 | public void testRemoveRoot() { | 157 | public void testRemoveRoot() { |
158 | DocumentTree<String> tree = new DefaultDocumentTree<>(); | 158 | DocumentTree<String> tree = new DefaultDocumentTree<>(); |
159 | tree.removeNode(tree.root()); | 159 | tree.removeNode(tree.root()); |
... | @@ -168,7 +168,7 @@ public class DefaultDocumentTreeTest { | ... | @@ -168,7 +168,7 @@ public class DefaultDocumentTreeTest { |
168 | Assert.assertEquals(0, tree.getChildren(path("root.a")).size()); | 168 | Assert.assertEquals(0, tree.getChildren(path("root.a")).size()); |
169 | } | 169 | } |
170 | 170 | ||
171 | - @Test(expected=NoSuchDocumentPathException.class) | 171 | + @Test(expected = NoSuchDocumentPathException.class) |
172 | public void testRemoveInvalidNode() { | 172 | public void testRemoveInvalidNode() { |
173 | DocumentTree<String> tree = new DefaultDocumentTree<>(); | 173 | DocumentTree<String> tree = new DefaultDocumentTree<>(); |
174 | tree.removeNode(path("root.a")); | 174 | tree.removeNode(path("root.a")); | ... | ... |
-
Please register or login to post a comment