Package org.bladerunnerjs.testing.utility

Examples of org.bladerunnerjs.testing.utility.LogMessage


 
 
  @Test /* 6A. we enable logging for something that logs at error level, and forget to make any assertions */
  @ExpectedFailure("Test should have failed since there were log messages that werent asserted")
  public void testFailsWhenWeEnabledLogingAndErrorMessageLoggedButNoAssertions() {
    expectFailureTypeAndMessage(AssertionError.class, LogMessageStore.UNEXPECTED_LOG_MESSAGES, "error", new LogMessage(LOG_MESSAGE_ONE_PARAM, PARAM1 ) );
   
    given(logging).enabled();
    logCommander.whenErrorMessageLogged(LOG_MESSAGE_ONE_PARAM, PARAM1);
  }
View Full Code Here


  }
 
  @Test /* 6B. we enable logging for something that logs at info level, and forget to make any assertions */
  @ExpectedFailure("Test should have failed since there were log messages that werent asserted")
  public void testFailsWhenWeEnabledLogingAndInfoMessageLoggedButNoAssertions() {
    expectFailureTypeAndMessage(AssertionError.class, LogMessageStore.UNEXPECTED_LOG_MESSAGES, "info", new LogMessage(LOG_MESSAGE_ONE_PARAM, PARAM1 ) );
   
    given(logging).enabled();
    logCommander.whenInfoMessageLogged(LOG_MESSAGE_ONE_PARAM, PARAM1);
  }
View Full Code Here

public class LogMessageTest
{
  @Test
  public void setEqualsMethodOnlyChecksFieldsAndNotObjectInstance()
  {
    Assert.assertEquals( new LogMessage("a message", (Object[])new String[]{"a","b"}), new LogMessage("a message", (Object[])new String[]{"a","b"}) );
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.testing.utility.LogMessage

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.