@@ -39,9 +39,9 @@ public void parseExistingYear() throws Exception {
3939 // has existing
4040 .test (hasHeader ("This is a fake license, 2007. ACME corp." ), hasHeader ("This is a fake license, 2007. ACME corp." ))
4141 // if prefix changes, the year will get set to today
42- .test (hasHeader ("This is a license, 2007. ACME corp." ), hasHeader ("This is a fake license, " + currentYear () + " . ACME corp." ))
42+ .test (hasHeader ("This is a license, 2007. ACME corp." ), hasHeader ("This is a fake license, 2007 . ACME corp." ))
4343 // if suffix changes, the year will get set to today
44- .test (hasHeader ("This is a fake license, 2007. Other corp." ), hasHeader ("This is a fake license, " + currentYear () + " . ACME corp." ));
44+ .test (hasHeader ("This is a fake license, 2007. Other corp." ), hasHeader ("This is a fake license, 2007 . ACME corp." ));
4545 }
4646
4747 @ Test
@@ -58,7 +58,7 @@ public void should_apply_license_containing_YEAR_token() throws Throwable {
5858 .testUnaffected (hasHeaderYear (currentYear ()))
5959 .testUnaffected (hasHeaderYear ("2003" ))
6060 .testUnaffected (hasHeaderYear ("1990-2015" ))
61- .test (hasHeaderYear ("Something before license.*/\n /* \n * " + HEADER_WITH_$YEAR , "2003" ), hasHeaderYear (currentYear () ))
61+ .test (hasHeaderYear ("Something before license.*/\n /* \n * " + HEADER_WITH_$YEAR , "2003" ), hasHeaderYear ("2003" ))
6262 .test (hasHeaderYear (HEADER_WITH_$YEAR + "\n **/\n /* Something after license." , "2003" ), hasHeaderYear ("2003" ))
6363 .test (hasHeaderYear ("not a year" ), hasHeaderYear (currentYear ()));
6464 // Check with variant
0 commit comments