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>
maint
Johannes Sixt 2014-03-21 22:07:17 +01:00 committed by Junio C Hamano
parent 2d08413ba1
commit dd4dc5c574
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
public class Beer
{
int special;
public static void main(String RIGHT[])
{
System.out.print("ChangeMe");
}
}