/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 22:26:39 GMT 2018
 */

package uk.ac.sanger.artemis.components;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.net.URL;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.mock.java.net.MockURL;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.components.LogReadListener;
import uk.ac.sanger.artemis.io.ReadEvent;
import java.awt.HeadlessException;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = false, useJEE = true) 
public class LogReadListener_ESTest extends LogReadListener_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      LogReadListener logReadListener0 = new LogReadListener("( Tz");
      // Undeclared exception!
      try { 
        logReadListener0.notify((ReadEvent) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.LogReadListener", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      URL uRL0 = MockURL.getFtpExample();
      LogReadListener logReadListener0 = new LogReadListener((String) null);
      ReadEvent readEvent0 = new ReadEvent(uRL0, (String) null);
      // Undeclared exception!
      try { 
        logReadListener0.notify(readEvent0);
        fail("Expecting exception: HeadlessException");
      
      } catch(HeadlessException e) {
         
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      LogReadListener logReadListener0 = new LogReadListener("org.apache.log4j.spi.ThrowableRenderer");
      ReadEvent readEvent0 = new ReadEvent("org.apache.log4j.spi.ThrowableRenderer", "org.apache.log4j.spi.ThrowableRenderer");
      // Undeclared exception!
      try { 
        logReadListener0.notify(readEvent0);
        fail("Expecting exception: HeadlessException");
      
      } catch(HeadlessException e) {
        
      }
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      LogReadListener logReadListener0 = new LogReadListener("org.apache.log4j.spi.ThrowableRenderer");
      boolean boolean0 = logReadListener0.seenMessage();
      assertFalse(boolean0);
  }
}
