]> source.dussan.org Git - jgit.git/commitdiff
Make local assert methods private in test classes 83/112683/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 1 Dec 2017 01:56:18 +0000 (10:56 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 1 Dec 2017 01:56:18 +0000 (10:56 +0900)
Change-Id: I1bed28a1eac3c7f84cc40841853b9540c72be265
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/attributes/AttributesMatcherTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/FastIgnoreRuleTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/IgnoreMatcherParametrizedTest.java

index 23c416a45ba13080bbde855a569bf2479b1d29ed..05484ab671098b045d8244c9101b3880daf7914e 100644 (file)
@@ -391,7 +391,7 @@ public class AttributesMatcherTest {
         * @param target
         *            Target file path relative to repository's GIT_DIR
         */
-       public void assertMatched(String pattern, String target) {
+       private void assertMatched(String pattern, String target) {
                boolean value = match(pattern, target);
                assertTrue("Expected a match for: " + pattern + " with: " + target,
                                value);
@@ -406,7 +406,7 @@ public class AttributesMatcherTest {
         * @param target
         *            Target file path relative to repository's GIT_DIR
         */
-       public void assertNotMatched(String pattern, String target) {
+       private void assertNotMatched(String pattern, String target) {
                boolean value = match(pattern, target);
                assertFalse("Expected no match for: " + pattern + " with: " + target,
                                value);
index bcc8f7e47f70068738088bb67673aa2549fb65cc..06164c8a91140a31ea50b94114a0fbbf3c9135e9 100644 (file)
@@ -465,7 +465,7 @@ public class FastIgnoreRuleTest {
                                split("/a/b/c/", '/').toArray());
        }
 
-       public void assertMatched(String pattern, String path) {
+       private void assertMatched(String pattern, String path) {
                boolean match = match(pattern, path);
                String result = path + " is " + (match ? "ignored" : "not ignored")
                                + " via '" + pattern + "' rule";
@@ -485,7 +485,7 @@ public class FastIgnoreRuleTest {
                                match);
        }
 
-       public void assertNotMatched(String pattern, String path) {
+       private void assertNotMatched(String pattern, String path) {
                boolean match = match(pattern, path);
                String result = path + " is " + (match ? "ignored" : "not ignored")
                                + " via '" + pattern + "' rule";
index 529c75ff391f2b84bff713aa266ec811f213d151..137230d09fe3f0ff0abebeb7cec9454643dcb81f 100644 (file)
@@ -346,7 +346,7 @@ public class IgnoreMatcherParametrizedTest {
         *            Target file path relative to repository's GIT_DIR
         * @param assume
         */
-       public void assertMatched(String pattern, String target, Boolean... assume) {
+       private void assertMatched(String pattern, String target, Boolean... assume) {
                boolean value = match(pattern, target);
                if (assume.length == 0 || !assume[0].booleanValue())
                        assertTrue("Expected a match for: " + pattern + " with: " + target,
@@ -366,7 +366,7 @@ public class IgnoreMatcherParametrizedTest {
         *            Target file path relative to repository's GIT_DIR
         * @param assume
         */
-       public void assertNotMatched(String pattern, String target,
+       private void assertNotMatched(String pattern, String target,
                        Boolean... assume) {
                boolean value = match(pattern, target);
                if (assume.length == 0 || !assume[0].booleanValue())