@Test public void testDoesCurrentLineMacthCorrectLine() { final AbstractRegexpBasedRule rule = getRegexpBasedRule(); if ( getMatchableLines().length == 0 ) { Assert.fail( "the getMatchableLines() is empty" ); } for ( int i = 0; i < getMatchableLines().length; i++ ) { final String correctLine = getMatchableLines()[ i ]; assertTrue( "This line (\"" + correctLine + "\") should be matched", rule.doesCurrentLineMacthes( correctLine ) ); } }
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();  }