Package ch.qos.logback.classic

Examples of ch.qos.logback.classic.LoggerContext.reset()


   */
  @Before
  public final void setUp() {
    // Silence all log messages from the PMS code that is being tested
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
    context.reset();
  }

  @Test
  public void testDefaultSubtitleType() {
    DLNAMediaSubtitle dlnaMediaSubtitle = new DLNAMediaSubtitle();
View Full Code Here


   */
  @Before
  public final void setUp() {
    // Silence all log messages from the PMS code that is being tested
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
    context.reset();
  }

  @Test(expected = NullPointerException.class)
  public void testGetSubCpOptionForMencoder_withNullDLNAMediaSubtitle() throws Exception {
    getSubCpOptionForMencoder(null);
View Full Code Here

public class TaskRunnerTest {
  @Before
  public void setUp() {
    // Silence all log messages from the PMS code that is being tested
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
    context.reset();
  }

  class Counter {
    int x;
View Full Code Here

public class Issue1278 {
  @Before
    public void setUp() {
        // Silence all log messages from the PMS code that is being tested
        LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
        context.reset();
  }

  @Test
  public void dlnaMediaInfoDoubleParseWithDot() {
    DLNAMediaInfo info = new DLNAMediaInfo();
View Full Code Here

public class FormatTest {
  @Before
  public void setUp() {
    // Silence all log messages from the PMS code that is being tested
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
        context.reset();
  }

    /**
     * Test edge cases for {@link Format#match(String)}.
     */
 
View Full Code Here

   */
  @Before
  public final void setUp() {
    // Silence all log messages from the PMS code that is being tested
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
    context.reset();
  }

  /**
   * Test edge cases for {@link FormatFactory#getAssociatedExtension(String)}.
   */
 
View Full Code Here

  @Before
  public void setUp() {
    // Silence all log messages from the PMS code that is being tested
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
        context.reset();

    PmsConfiguration pmsConf = null;

    try {
      pmsConf = new PmsConfiguration(false);
View Full Code Here

   */
  @Before
  public final void setUp() {
    // Silence all log messages from the PMS code that is being tested
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
    context.reset();
  }

  @Test
  public void testGetFileCharset_WINDOWS_1251() throws Exception {
    File file = FileUtils.toFile(CLASS.getResource("russian-cp1251.srt"));
View Full Code Here

  @Before
  public void setUp() {
    // Silence all log messages from the PMS code that is being tested
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
    context.reset();

    // initialise the fixtures
    // XXX we need to call isValid to call checktype(), which is needed to initialise the format
    image = new RealFile(new File("test.jpg"));
    image.isValid();
View Full Code Here

    try {
      JoranConfigurator configurator = new JoranConfigurator();
      configurator.setContext(lc);
      // the context was probably already configured by
      // default configuration rules
      lc.reset();
      configurator.doConfigure(file);

      // Save the filepath after loading the file
      filepath = file.getAbsolutePath();
    } catch (JoranException je) {}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.