Package com.jitcaforwin.trackinfoanalyzer.log.api

Examples of com.jitcaforwin.trackinfoanalyzer.log.api.Log


  }
 
  @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


public class OnlyErrorsWithoutExceptionsFilterTest{
  @Test
  public void testOkLog(){
    LogPrintoutFilter filter = LogPrintoutFilterFactory.getFilterForErrorsWithoutExceptions();
    Log logMock = EasyMock.createMock(Log.class);
    EasyMock.expect(logMock.getStatus()).andReturn(new com.jitcaforwin.trackinfoanalyzer.log.status.Ok());
    EasyMock.replay(logMock);
    assertFalse(filter.isPrintAllowed(logMock));
    EasyMock.verify(logMock);
  }
View Full Code Here

  }
 
  @Test
  public void testUsualErrorLog(){
    LogPrintoutFilter filter = LogPrintoutFilterFactory.getFilterForErrorsWithoutExceptions();
    Log logMock = EasyMock.createMock(Log.class);
    EasyMock.expect(logMock.getStatus()).andReturn(new com.jitcaforwin.trackinfoanalyzer.log.status.Error()).times(2);
    EasyMock.replay(logMock);
    assertTrue(filter.isPrintAllowed(logMock));
    EasyMock.verify(logMock);
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.trackinfoanalyzer.log.api.Log

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.