@Test public void testDoesCurrentLineMacthIncorrectLine() { final AbstractRegexpBasedRule rule = getRegexpBasedRule(); if ( getUnmatchableLines().length == 0 ) { Assert.fail( "the getUnmatchableLines() is empty" ); } for ( int i = 0; i < getUnmatchableLines().length; i++ ) { final String incorrectLine = getUnmatchableLines()[ i ]; assertFalse( "This line (\"" + incorrectLine + "\") should not be matched", rule.doesCurrentLineMacthes( incorrectLine ) ); } }
final boolean doesCurrentLineMacthes( final String line ) { return getMatcher( line ).matches(); }
AbstractRegexpBasedRule extends AbstractFlexRule { final boolean doesCurrentLineMacthes( final String line ) { return getMatcher( line ).matches(); } }
AbstractRegexpBasedRule extends AbstractFlexRule { final boolean doesCurrentLineMacthes( final String line ) { return getMatcher( line ).matches(); } AbstractRegexpBasedRule(); }
AbstractRegexpBasedRule extends AbstractFlexRule { final boolean doesCurrentLineMacthes( final String line ) { return getMatcher( line ).matches(); } AbstractRegexpBasedRule(); final void compilePattern(); @Override final List< IFlexViolation > findViolationsInCurrentFile(); }
AbstractRegexpBasedRule extends AbstractFlexRule { final boolean doesCurrentLineMacthes( final String line ) { return getMatcher( line ).matches(); } AbstractRegexpBasedRule(); final void compilePattern(); @Override final List< IFlexViolation > findViolationsInCurrentFile();  }