Package com.jitcaforwin.trackinfoanalyzer.printout.filter

Examples of com.jitcaforwin.trackinfoanalyzer.printout.filter.NoFilter


    EasyMock.verify(filterMock1, filterMock2, filterMock3, logMock);
  }
 
  @Test
  public void testMultiFilterANDWithNoFilterAndOnlyErrorsFilter(){
    LogPrintoutFilter noFilter = new NoFilter();
    LogPrintoutFilter onlyErrorsFilter = new OnlyErrorsFilter();
    LogPrintoutFilter filter = MultiFilter.createMultiFilterAND(noFilter, onlyErrorsFilter);
   
    Log logMockOk = EasyMock.createMock(Log.class);
    Log logMockError = EasyMock.createMock(Log.class);
View Full Code Here


    EasyMock.verify(logMockOk, logMockError);
  }
 
  @Test
  public void testMultiFilterORWithNoFilterAndOnlyErrorsFilter(){
    LogPrintoutFilter noFilter = new NoFilter();
    LogPrintoutFilter onlyErrorsFilter = new OnlyErrorsFilter();
    LogPrintoutFilter filter = MultiFilter.createMultiFilterOR(noFilter, onlyErrorsFilter);
   
    Log logMockOk = EasyMock.createMock(Log.class);
    Log logMockError = EasyMock.createMock(Log.class);
View Full Code Here

public class NoFilterTest {

  @Test
  public void testNullpointer(){
    LogPrintoutFilter filter = new NoFilter();
    assertTrue(filter.isPrintAllowed(null));
  }
View Full Code Here

    assertTrue(filter.isPrintAllowed(null));
  }
 
  @Test
  public void testAnyLog(){
    LogPrintoutFilter filter = new NoFilter();
    Log logToPrintMock = EasyMock.createMock(Log.class);
    EasyMock.replay(logToPrintMock);
    assertTrue(filter.isPrintAllowed(logToPrintMock));
    EasyMock.verify(logToPrintMock);
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.trackinfoanalyzer.printout.filter.NoFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.