/**
 * Scaffolding file used to store all the setups needed to run 
 * tests automatically generated by EvoSuite
 * Wed Sep 19 18:28:21 GMT 2018
 */

package uk.ac.sanger.artemis.components.filetree;

import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;

@EvoSuiteClassExclude
public class JTreeTable_ESTest_scaffolding {

  @org.junit.Rule 
  public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();

  private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone(); 

  private org.evosuite.runtime.thread.ThreadStopper threadStopper =  new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);


  @BeforeClass 
  public static void initEvoSuiteFramework() { 
    org.evosuite.runtime.RuntimeSettings.className = "uk.ac.sanger.artemis.components.filetree.JTreeTable"; 
    org.evosuite.runtime.GuiSupport.initialize(); 
    org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; 
    org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; 
    org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; 
    org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; 
    org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); 
    org.evosuite.runtime.classhandling.JDKClassResetter.init();
    setSystemProperties();
    initializeClasses();
    org.evosuite.runtime.Runtime.getInstance().resetRuntime(); 
  } 

  @AfterClass 
  public static void clearEvoSuiteFramework(){ 
    Sandbox.resetDefaultSecurityManager(); 
    java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); 
  } 

  @Before 
  public void initTestCase(){ 
    threadStopper.storeCurrentThreads();
    threadStopper.startRecordingTime();
    org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); 
    org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); 
    setSystemProperties(); 
    org.evosuite.runtime.GuiSupport.setHeadless(); 
    org.evosuite.runtime.Runtime.getInstance().resetRuntime(); 
    org.evosuite.runtime.agent.InstrumentingAgent.activate(); 
  } 

  @After 
  public void doneWithTestCase(){ 
    threadStopper.killAndJoinClientThreads();
    org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); 
    org.evosuite.runtime.classhandling.JDKClassResetter.reset(); 
    resetClasses(); 
    org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); 
    org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); 
    org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); 
  } 

  public static void setSystemProperties() {
 
    java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); 
    java.lang.System.setProperty("file.encoding", "UTF-8"); 
    java.lang.System.setProperty("java.awt.headless", "true"); 
    java.lang.System.setProperty("java.io.tmpdir", "/var/folders/r3/l648tx8s7hn8ppds6z2bk5cc000h2n/T/"); 
    java.lang.System.setProperty("user.country", "GB"); 
    java.lang.System.setProperty("user.dir", "/Users/kp11/workspace/applications/Artemis-build-ci/Artemis"); 
    java.lang.System.setProperty("user.home", "/Users/kp11"); 
    java.lang.System.setProperty("user.language", "en"); 
    java.lang.System.setProperty("user.name", "kp11"); 
    java.lang.System.setProperty("user.timezone", ""); 
    java.lang.System.setProperty("log4j.configuration", "SUT.log4j.properties"); 
  }

  private static void initializeClasses() {
    org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(JTreeTable_ESTest_scaffolding.class.getClassLoader() ,
      "com.sshtools.j2ssh.authentication.SshMsgUserAuthRequest",
      "uk.ac.sanger.artemis.io.EntryInformationException",
      "htsjdk.samtools.util.Log$LogLevel",
      "uk.ac.sanger.artemis.components.filetree.RemoteFileNode",
      "org.apache.commons.io.filefilter.EmptyFileFilter",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$TreeTableCellEditor",
      "org.apache.log4j.Level",
      "org.apache.commons.io.filefilter.TrueFileFilter",
      "com.sshtools.j2ssh.authentication.PasswordAuthenticationClient",
      "org.apache.commons.io.filefilter.AgeFileFilter",
      "com.sshtools.j2ssh.authentication.PasswordChangePrompt",
      "com.sshtools.j2ssh.authentication.TerminatedStateException",
      "uk.ac.sanger.artemis.io.EntryInformation",
      "com.sshtools.j2ssh.SshClient",
      "uk.ac.sanger.artemis.EntryChangeListener",
      "uk.ac.sanger.artemis.sequence.MarkerChangeListener",
      "uk.ac.sanger.artemis.Selectable",
      "com.sshtools.j2ssh.sftp.SftpSubsystemClient",
      "htsjdk.variant.variantcontext.VariantContextComparator",
      "org.apache.log4j.spi.Filter",
      "org.apache.commons.io.filefilter.DirectoryFileFilter",
      "htsjdk.variant.vcf.VCFIDHeaderLine",
      "org.apache.commons.io.filefilter.SuffixFileFilter",
      "com.sshtools.j2ssh.io.ByteArrayReader",
      "org.apache.log4j.Layout",
      "uk.ac.sanger.artemis.util.StringVector",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$TreeTableCellRenderer",
      "org.emboss.jemboss.JembossParams",
      "htsjdk.samtools.AbstractSAMHeaderRecord",
      "org.apache.commons.io.filefilter.AndFileFilter",
      "com.sshtools.j2ssh.transport.AsyncService",
      "uk.ac.sanger.artemis.ChangeEvent",
      "uk.ac.sanger.artemis.util.OutOfRangeException",
      "org.apache.log4j.Hierarchy",
      "uk.ac.sanger.artemis.components.filetree.FileSystemModel$1",
      "org.emboss.jemboss.gui.Browser$3",
      "org.emboss.jemboss.gui.Browser$4",
      "org.emboss.jemboss.gui.MemoryComboBox",
      "org.apache.commons.io.filefilter.NameFileFilter",
      "org.emboss.jemboss.gui.Browser$6",
      "uk.ac.sanger.artemis.io.QualifierInfoHash",
      "org.emboss.jemboss.gui.Browser",
      "com.sshtools.j2ssh.connection.Channel",
      "htsjdk.variant.vcf.VCFHeaderLineType",
      "org.apache.log4j.spi.DefaultRepositorySelector",
      "org.apache.log4j.spi.OptionHandler",
      "uk.ac.sanger.artemis.OptionChangeListener",
      "com.sshtools.j2ssh.sftp.SftpFile",
      "htsjdk.samtools.seekablestream.SeekableStream",
      "com.sshtools.j2ssh.connection.ChannelEventListener",
      "htsjdk.variant.vcf.VCFFormatHeaderLine",
      "org.apache.log4j.helpers.OptionConverter",
      "org.apache.commons.io.filefilter.IOFileFilter",
      "uk.ac.sanger.artemis.components.filetree.FileNode",
      "uk.ac.sanger.artemis.components.SwingWorker",
      "org.apache.commons.io.filefilter.MagicNumberFileFilter",
      "uk.ac.sanger.artemis.components.filetree.TreeTableModel",
      "org.apache.log4j.or.ObjectRenderer",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$1",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$2",
      "org.apache.xmlgraphics.java2d.GraphicsConfigurationWithoutTransparency",
      "uk.ac.sanger.artemis.sequence.SequenceChangeListener",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$3",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$4",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$5",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$6",
      "htsjdk.tribble.util.URLHelper",
      "com.sshtools.j2ssh.authentication.AuthenticationProtocolClient",
      "org.apache.log4j.Category",
      "uk.ac.sanger.artemis.util.ReadOnlyException",
      "com.sshtools.j2ssh.transport.publickey.SshPublicKey",
      "htsjdk.samtools.SAMException",
      "uk.ac.sanger.artemis.EntryChangeEvent",
      "uk.ac.sanger.artemis.util.FastVector",
      "org.apache.commons.io.filefilter.AbstractFileFilter",
      "com.sshtools.j2ssh.SshEventAdapter",
      "com.sshtools.j2ssh.sftp.SftpFileOutputStream",
      "uk.ac.sanger.artemis.Feature",
      "com.sshtools.j2ssh.subsystem.SubsystemChannel",
      "com.sshtools.j2ssh.transport.TransportProtocolEventHandler",
      "com.sshtools.j2ssh.FileTransferProgress",
      "org.apache.commons.io.filefilter.HiddenFileFilter",
      "org.apache.log4j.spi.LoggerFactory",
      "org.apache.commons.io.filefilter.FalseFileFilter",
      "org.apache.log4j.spi.Configurator",
      "htsjdk.variant.vcf.VCFInfoHeaderLine",
      "htsjdk.variant.vcf.VCFHeaderLineCount",
      "org.apache.commons.io.FilenameUtils",
      "htsjdk.tribble.util.RemoteURLHelper",
      "org.apache.log4j.spi.LocationInfo",
      "uk.ac.sanger.artemis.io.KeyVector",
      "com.sshtools.j2ssh.transport.TransportProtocolState",
      "htsjdk.samtools.seekablestream.SeekablePathStream",
      "com.sshtools.j2ssh.io.UnsignedInteger32",
      "org.apache.commons.io.filefilter.OrFileFilter",
      "htsjdk.samtools.util.RuntimeIOException",
      "uk.ac.sanger.artemis.FeatureVector",
      "uk.ac.sanger.artemis.components.SwingWorker$ThreadVar",
      "htsjdk.tribble.TribbleException$InternalCodecException",
      "htsjdk.samtools.util.Locatable",
      "com.sshtools.j2ssh.forwarding.ForwardingClient",
      "uk.ac.sanger.artemis.components.filetree.FileSystemModel",
      "htsjdk.samtools.SAMSequenceDictionary",
      "org.apache.log4j.spi.AppenderAttachable",
      "com.sshtools.j2ssh.SshException",
      "com.sshtools.j2ssh.session.SessionChannelClient",
      "uk.ac.sanger.artemis.j2ssh.FTProgress",
      "com.sshtools.j2ssh.SftpClient",
      "uk.ac.sanger.artemis.io.QualifierInfo",
      "uk.ac.sanger.artemis.util.InputStreamProgressListenerVector",
      "org.apache.log4j.Priority",
      "uk.ac.sanger.artemis.components.filetree.AbstractCellEditor",
      "com.sshtools.j2ssh.connection.IOChannel",
      "com.sshtools.j2ssh.DirectoryOperation",
      "org.apache.log4j.LogManager",
      "com.sshtools.j2ssh.sftp.SftpFileInputStream",
      "org.apache.commons.io.filefilter.CanWriteFileFilter",
      "uk.ac.sanger.artemis.j2ssh.SshFileManager",
      "org.apache.xmlgraphics.java2d.GraphicsConfigurationWithTransparency",
      "htsjdk.variant.vcf.VCFHeader",
      "org.apache.log4j.DefaultCategoryFactory",
      "htsjdk.tribble.util.ParsingUtils",
      "org.apache.log4j.or.RendererMap",
      "uk.ac.sanger.artemis.util.WorkingGZIPInputStream",
      "com.sshtools.j2ssh.transport.Service",
      "htsjdk.variant.vcf.VCFCompoundHeaderLine",
      "org.apache.commons.io.filefilter.NotFileFilter",
      "org.apache.xmlgraphics.java2d.GenericGraphicsDevice",
      "uk.ac.sanger.artemis.io.Key",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable",
      "htsjdk.variant.vcf.VCFSimpleHeaderLine",
      "uk.ac.sanger.artemis.Entry",
      "org.apache.commons.io.filefilter.ConditionalFileFilter",
      "com.sshtools.j2ssh.connection.ChannelFactory",
      "uk.ac.sanger.artemis.components.filetree.FileList",
      "com.sshtools.j2ssh.connection.ConnectionProtocol",
      "org.apache.log4j.CategoryKey",
      "org.apache.batik.gvt.text.GVTAttributedCharacterIterator$TextAttribute",
      "uk.ac.sanger.artemis.util.InputStreamProgressListener",
      "org.apache.commons.io.filefilter.DelegateFileFilter",
      "uk.ac.sanger.artemis.ChangeListener",
      "com.sshtools.j2ssh.sftp.FileAttributes",
      "org.apache.batik.gvt.text.GVTAttributedCharacterIterator$AttributeFilter",
      "org.apache.log4j.helpers.Loader",
      "org.apache.log4j.ProvisionNode",
      "com.sshtools.j2ssh.TransferCancelledException",
      "com.sshtools.j2ssh.authentication.SshAuthenticationClient",
      "uk.ac.sanger.artemis.io.QualifierInfoException",
      "org.apache.log4j.spi.RootLogger",
      "uk.ac.sanger.artemis.components.filetree.TransferableFileNodeList",
      "org.emboss.jemboss.gui.Browser$JIconButton",
      "htsjdk.variant.vcf.VCFContigHeaderLine",
      "uk.ac.sanger.artemis.EntryVector",
      "org.apache.log4j.spi.ErrorHandler",
      "com.sshtools.j2ssh.transport.HostKeyVerification",
      "org.apache.log4j.spi.RendererSupport",
      "uk.ac.sanger.artemis.util.FileDocument",
      "uk.ac.sanger.artemis.FeatureChangeListener",
      "org.apache.xmlgraphics.java2d.AbstractGraphicsConfiguration",
      "uk.ac.sanger.artemis.FeatureChangeEvent",
      "htsjdk.samtools.util.Log",
      "com.sshtools.j2ssh.io.UnsignedInteger64",
      "org.apache.commons.io.filefilter.WildcardFileFilter",
      "com.sshtools.j2ssh.ScpClient",
      "htsjdk.tribble.TribbleException",
      "org.apache.log4j.Logger",
      "uk.ac.sanger.artemis.EntryGroup",
      "com.sshtools.j2ssh.authentication.AuthenticationProtocolListener",
      "org.apache.log4j.helpers.LogLog",
      "org.apache.batik.gvt.text.GVTAttributedCharacterIterator",
      "org.apache.log4j.spi.RepositorySelector",
      "org.apache.commons.io.filefilter.FileFileFilter",
      "uk.ac.sanger.artemis.io.Range",
      "uk.ac.sanger.artemis.sequence.Bases",
      "uk.ac.sanger.artemis.EntryGroupChangeListener",
      "uk.ac.sanger.artemis.ActionController",
      "htsjdk.variant.variantcontext.VariantContext",
      "com.sshtools.j2ssh.transport.SshMessage",
      "uk.ac.sanger.artemis.util.LinePushBackReader",
      "org.apache.log4j.or.DefaultRenderer",
      "uk.ac.sanger.artemis.util.ProgressInputStream",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$PopupListener",
      "org.apache.commons.io.filefilter.CanReadFileFilter",
      "htsjdk.variant.vcf.VCFHeaderLine",
      "org.apache.commons.io.IOCase",
      "com.sshtools.j2ssh.util.State",
      "uk.ac.sanger.artemis.j2ssh.SshLogin",
      "org.apache.log4j.spi.ThrowableRendererSupport",
      "org.apache.log4j.PropertyConfigurator",
      "htsjdk.tribble.TribbleException$InvalidHeader",
      "uk.ac.sanger.artemis.util.Document",
      "org.apache.commons.logging.impl.Log4JLogger",
      "org.apache.log4j.spi.ThrowableRenderer",
      "com.sshtools.j2ssh.authentication.SshAuthenticationPrompt",
      "org.apache.commons.io.filefilter.SizeFileFilter",
      "org.apache.log4j.Appender",
      "htsjdk.tribble.Feature",
      "uk.ac.sanger.artemis.sequence.NoSequenceException",
      "org.apache.commons.io.filefilter.RegexFileFilter",
      "com.sshtools.j2ssh.authentication.AuthenticationProtocolException",
      "htsjdk.variant.vcf.VCFFilterHeaderLine",
      "org.apache.log4j.spi.HierarchyEventListener",
      "com.sshtools.j2ssh.configuration.SshConnectionProperties",
      "org.apache.log4j.spi.LoggingEvent",
      "org.apache.commons.io.filefilter.PrefixFileFilter",
      "org.apache.log4j.spi.ThrowableInformation",
      "uk.ac.sanger.artemis.FeatureEnumeration",
      "org.apache.log4j.spi.LoggerRepository",
      "com.sshtools.j2ssh.transport.TransportProtocolException",
      "htsjdk.samtools.SAMSequenceRecord"
    );
  } 

  private static void resetClasses() {
    org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(JTreeTable_ESTest_scaffolding.class.getClassLoader()); 

    org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
      "uk.ac.sanger.artemis.components.filetree.JTreeTable",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$TreeTableCellRenderer",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$1",
      "uk.ac.sanger.artemis.components.filetree.AbstractCellEditor",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$TreeTableCellEditor",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$2",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$PopupListener",
      "uk.ac.sanger.artemis.components.SwingWorker",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$5",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$4",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$3",
      "uk.ac.sanger.artemis.components.filetree.JTreeTable$6",
      "uk.ac.sanger.artemis.components.filetree.FileNode",
      "uk.ac.sanger.artemis.components.filetree.RemoteFileNode",
      "uk.ac.sanger.artemis.components.filetree.TransferableFileNodeList",
      "org.apache.commons.io.filefilter.AbstractFileFilter",
      "org.apache.commons.io.filefilter.AndFileFilter",
      "org.apache.commons.io.FilenameUtils",
      "org.apache.commons.io.IOCase",
      "org.apache.commons.io.filefilter.PrefixFileFilter",
      "org.apache.xmlgraphics.java2d.AbstractGraphicsConfiguration",
      "org.apache.log4j.Level",
      "org.apache.log4j.Priority",
      "org.apache.commons.logging.impl.Log4JLogger",
      "org.apache.log4j.Category",
      "org.apache.log4j.Logger",
      "org.apache.log4j.Hierarchy",
      "org.apache.log4j.spi.RootLogger",
      "org.apache.log4j.or.DefaultRenderer",
      "org.apache.log4j.or.RendererMap",
      "org.apache.log4j.DefaultCategoryFactory",
      "org.apache.log4j.spi.DefaultRepositorySelector",
      "org.apache.log4j.helpers.OptionConverter",
      "org.apache.log4j.helpers.Loader",
      "org.apache.log4j.helpers.LogLog",
      "org.apache.log4j.PropertyConfigurator",
      "org.apache.log4j.LogManager",
      "org.apache.log4j.CategoryKey",
      "org.apache.log4j.ProvisionNode",
      "org.apache.xmlgraphics.java2d.GraphicsConfigurationWithoutTransparency",
      "org.apache.xmlgraphics.java2d.GraphicsConfigurationWithTransparency",
      "uk.ac.sanger.artemis.components.filetree.FileList",
      "uk.ac.sanger.artemis.j2ssh.SshFileManager",
      "uk.ac.sanger.artemis.j2ssh.SshLogin",
      "org.emboss.jemboss.JembossParams",
      "org.emboss.jemboss.gui.Browser",
      "uk.ac.sanger.artemis.components.filetree.FileSystemModel",
      "uk.ac.sanger.artemis.components.filetree.FileSystemModel$1",
      "org.apache.commons.io.filefilter.DirectoryFileFilter",
      "org.apache.commons.io.filefilter.NotFileFilter",
      "org.apache.commons.io.filefilter.CanWriteFileFilter",
      "org.apache.commons.io.filefilter.AgeFileFilter",
      "com.sshtools.j2ssh.sftp.FileAttributes",
      "org.apache.commons.io.filefilter.MagicNumberFileFilter",
      "org.apache.commons.io.filefilter.FileFileFilter",
      "org.apache.commons.io.filefilter.SuffixFileFilter",
      "org.apache.commons.io.filefilter.EmptyFileFilter",
      "org.apache.commons.io.filefilter.SizeFileFilter",
      "org.apache.commons.io.filefilter.FalseFileFilter",
      "com.sshtools.j2ssh.io.UnsignedInteger32",
      "com.sshtools.j2ssh.io.UnsignedInteger64",
      "org.apache.commons.io.filefilter.NameFileFilter",
      "org.apache.batik.gvt.text.GVTAttributedCharacterIterator$TextAttribute",
      "org.apache.commons.io.filefilter.OrFileFilter",
      "org.apache.commons.io.filefilter.DelegateFileFilter",
      "org.apache.commons.io.filefilter.WildcardFileFilter",
      "com.sshtools.j2ssh.io.ByteArrayReader",
      "org.apache.commons.io.filefilter.HiddenFileFilter",
      "org.apache.commons.io.filefilter.RegexFileFilter",
      "org.apache.commons.io.filefilter.CanReadFileFilter",
      "org.apache.xmlgraphics.java2d.GenericGraphicsDevice",
      "org.apache.commons.io.filefilter.TrueFileFilter",
      "htsjdk.variant.vcf.VCFHeader",
      "htsjdk.tribble.util.ParsingUtils"
    );
  }
}
