@@ -459,23 +459,44 @@ void allowsOnlyProperlyOrderedAtClauses() throws Exception {
459
459
* @throws Exception If something wrong happens inside
460
460
*/
461
461
@ Test
462
- @ Disabled
463
462
void passesWindowsEndsOfLineWithoutException () throws Exception {
464
- this .validate ("WindowsEol.java" , false , "LICENSE found:" );
463
+ final String file = "WindowsEol.java" ;
464
+ final Collection <Violation > results = this .runValidation (file , false );
465
+ MatcherAssert .assertThat (
466
+ "violation should be reported correctly" ,
467
+ results ,
468
+ Matchers .contains (
469
+ new ViolationMatcher (
470
+ "Line does not match expected header line of ' */'." ,
471
+ file ,
472
+ "3" ,
473
+ "HeaderCheck"
474
+ )
475
+ )
476
+ );
465
477
}
466
478
467
479
/**
468
480
* Fail validation with Windows-style formatting of the license and
469
481
* Linux-style formatting of the sources.
470
482
* @throws Exception If something wrong happens inside
471
- * @todo #61:30min This test and passesWindowsEndsOfLineWithoutException
472
- * should be refactored to gather log4j logs and validate that they work
473
- * correctly. (see changes done in #61)
474
483
*/
475
484
@ Test
476
- @ Disabled
477
485
void testWindowsEndsOfLineWithLinuxSources () throws Exception {
478
- this .runValidation ("WindowsEolLinux.java" , false );
486
+ final String file = "WindowsEolLinux.java" ;
487
+ final Collection <Violation > results = this .runValidation (file , false );
488
+ MatcherAssert .assertThat (
489
+ "violation should be reported correctly" ,
490
+ results ,
491
+ Matchers .contains (
492
+ new ViolationMatcher (
493
+ "Line does not match expected header line of ' * Hello.'." ,
494
+ file ,
495
+ "2" ,
496
+ "HeaderCheck"
497
+ )
498
+ )
499
+ );
479
500
}
480
501
481
502
/**
0 commit comments