t4018: convert java pattern test to the new infrastructure
Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Mar 21, 2014 at 22:07 UTC
dd4dc5c574c0849fef6855d9efdfae5dc9369f2d
2 files changed
+8
-4
t/t4018-diff-funcname.sh
-4
@@ -79,10 +79,6 @@ test_expect_success 'set up .gitattributes declaring drivers to test' '
79
EOF
80
'
81
82
-test_expect_success 'preset java pattern' '
83
- test_expect_funcname "public static void main("
84
-'
85
-
82
test_expect_success 'custom pattern' '
83
test_config diff.java.funcname "!static
84
!String
t/t4018/java-class-member-function
new
+8
@@ -0,0 +1,8 @@
1
+public class Beer
2
+{
3
+ int special;
4
+ public static void main(String RIGHT[])
5
+ {
6
+ System.out.print("ChangeMe");
7
+ }
8
+}