]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t4018: convert java pattern test to the new infrastructure
authorJohannes Sixt <j6t@kdbg.org>
Fri, 21 Mar 2014 21:07:17 +0000 (22:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Mar 2014 22:02:36 +0000 (15:02 -0700)
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4018-diff-funcname.sh
t/t4018/java-class-member-function [new file with mode: 0644]

index c94a5f49d2211cb2b26521e6b83a4d944f77b71f..008325f2a8f9d33723a10244d6fd13806914a6dc 100755 (executable)
@@ -79,10 +79,6 @@ test_expect_success 'set up .gitattributes declaring drivers to test' '
        EOF
 '
 
-test_expect_success 'preset java pattern' '
-       test_expect_funcname "public static void main("
-'
-
 test_expect_success 'custom pattern' '
        test_config diff.java.funcname "!static
 !String
diff --git a/t/t4018/java-class-member-function b/t/t4018/java-class-member-function
new file mode 100644 (file)
index 0000000..298bc7a
--- /dev/null
@@ -0,0 +1,8 @@
+public class Beer
+{
+       int special;
+       public static void main(String RIGHT[])
+       {
+               System.out.print("ChangeMe");
+       }
+}