content: /**
   * Scaffolding file used to store all the setups needed to run 
   * tests automatically generated by EvoSuite
   * Thu Mar 21 00:42:27 GMT 2024
   */
  
  package org.petsoar.search.lucene;
  
  import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
  import org.junit.jupiter.api.BeforeAll;
  import org.junit.jupiter.api.BeforeEach;
  import org.junit.jupiter.api.AfterEach;
  import org.evosuite.runtime.sandbox.Sandbox;
  import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
  
  @EvoSuiteClassExclude
  public class DefaultLuceneDocumentFactory_Original_ESTest_scaffolding {
  
    @org.junit.jupiter.api.extension.RegisterExtension
    public org.evosuite.runtime.vnet.NonFunctionalRequirementExtension nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementExtension();
  
    private org.evosuite.runtime.thread.ThreadStopper threadStopper =  new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
  
  
    @BeforeAll
    public static void initEvoSuiteFramework() { 
      org.evosuite.runtime.RuntimeSettings.className = "org.petsoar.search.lucene.DefaultLuceneDocumentFactory"; 
      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.OFF; 
      org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); 
      org.evosuite.runtime.classhandling.JDKClassResetter.init();
      setSystemProperties();
      initializeClasses();
      org.evosuite.runtime.Runtime.getInstance().resetRuntime(); 
    } 
  
    @BeforeEach
    public void initTestCase(){ 
      threadStopper.storeCurrentThreads();
      threadStopper.startRecordingTime();
      org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); 
      org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); 
      org.evosuite.runtime.GuiSupport.setHeadless(); 
      org.evosuite.runtime.Runtime.getInstance().resetRuntime(); 
      org.evosuite.runtime.agent.InstrumentingAgent.activate(); 
    } 
  
    @AfterEach
    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() {
   
      /*No java.lang.System property to set*/
    }
  
    private static void initializeClasses() {
      org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(DefaultLuceneDocumentFactory_Original_ESTest_scaffolding.class.getClassLoader() ,
        "org.apache.commons.logging.impl.SimpleLog",
        "org.apache.lucene.analysis.StopAnalyzer",
        "org.apache.lucene.document.Document",
        "org.apache.lucene.analysis.PorterStemmer",
        "org.apache.commons.lang.SystemUtils",
        "org.apache.log4j.Category",
        "org.apache.commons.lang.builder.ToStringStyle$MultiLineToStringStyle",
        "org.apache.commons.collections.BufferUnderflowException",
        "org.apache.commons.digester.RulesBase",
        "org.petsoar.search.lucene.LuceneDocumentFactory",
        "org.apache.commons.digester.Digester",
        "org.apache.commons.collections.Buffer",
        "org.apache.commons.lang.builder.ToStringStyle$SimpleToStringStyle",
        "org.apache.lucene.analysis.TokenFilter",
        "org.petsoar.search.lucene.DefaultLuceneDocumentFactory$ClassConfiguration",
        "org.apache.commons.digester.SetTopRule",
        "org.apache.lucene.analysis.Tokenizer",
        "org.apache.commons.digester.Rules",
        "org.apache.commons.lang.builder.ToStringStyle$DefaultToStringStyle",
        "org.apache.commons.lang.builder.ToStringBuilder",
        "org.apache.commons.digester.FactoryCreateRule",
        "org.apache.commons.digester.SetNextRule",
        "org.apache.lucene.analysis.Token",
        "org.apache.commons.lang.builder.ToStringStyle",
        "org.apache.commons.digester.CallMethodRule",
        "org.apache.commons.logging.impl.LogFactoryImpl",
        "org.apache.commons.collections.ArrayStack",
        "org.petsoar.search.lucene.LuceneException",
        "org.apache.lucene.analysis.CharTokenizer",
        "org.apache.commons.digester.SetPropertiesRule",
        "org.petsoar.search.lucene.DefaultLuceneDocumentFactory",
        "org.apache.lucene.analysis.LowerCaseFilter",
        "org.apache.lucene.analysis.StopFilter",
        "org.apache.lucene.analysis.TokenStream",
        "org.petsoar.search.lucene.DefaultLuceneDocumentFactory$DefaultAnalyzer",
        "org.apache.lucene.analysis.LetterTokenizer",
        "org.apache.lucene.analysis.LowerCaseTokenizer",
        "org.apache.lucene.analysis.Analyzer",
        "org.apache.commons.lang.builder.ToStringStyle$NoFieldNameToStringStyle",
        "org.apache.log4j.spi.AppenderAttachable",
        "org.apache.commons.digester.ObjectCreateRule",
        "org.apache.commons.digester.BeanPropertySetterRule",
        "org.apache.commons.digester.Rule",
        "org.apache.commons.digester.SetPropertyRule",
        "org.apache.commons.lang.builder.EqualsBuilder",
        "org.apache.commons.digester.CallParamRule",
        "org.apache.lucene.analysis.PorterStemFilter",
        "org.petsoar.search.lucene.DefaultLuceneDocumentFactory$FieldConfiguration",
        "org.apache.commons.digester.SetRootRule"
      );
    } 
  
    private static void resetClasses() {
      org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(DefaultLuceneDocumentFactory_Original_ESTest_scaffolding.class.getClassLoader()); 
  
      org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
        "org.petsoar.search.lucene.DefaultLuceneDocumentFactory",
        "org.petsoar.search.lucene.DefaultLuceneDocumentFactory$ClassConfiguration",
        "org.petsoar.search.lucene.DefaultLuceneDocumentFactory$FieldConfiguration",
        "org.apache.lucene.analysis.Analyzer",
        "org.petsoar.search.lucene.DefaultLuceneDocumentFactory$DefaultAnalyzer",
        "org.apache.commons.collections.FastHashMap",
        "org.apache.commons.beanutils.BeanUtils",
        "org.apache.commons.beanutils.PropertyUtils",
        "org.apache.commons.beanutils.MethodUtils",
        "org.apache.commons.beanutils.converters.BigDecimalConverter",
        "org.apache.commons.beanutils.converters.BigIntegerConverter",
        "org.apache.commons.beanutils.converters.BooleanConverter",
        "org.apache.commons.beanutils.converters.AbstractArrayConverter",
        "org.apache.commons.beanutils.converters.BooleanArrayConverter",
        "org.apache.commons.beanutils.converters.ByteConverter",
        "org.apache.commons.beanutils.converters.ByteArrayConverter",
        "org.apache.commons.beanutils.converters.CharacterConverter",
        "org.apache.commons.beanutils.converters.CharacterArrayConverter",
        "org.apache.commons.beanutils.converters.ClassConverter",
        "org.apache.commons.beanutils.converters.DoubleConverter",
        "org.apache.commons.beanutils.converters.DoubleArrayConverter",
        "org.apache.commons.beanutils.converters.FloatConverter",
        "org.apache.commons.beanutils.converters.FloatArrayConverter",
        "org.apache.commons.beanutils.converters.IntegerConverter",
        "org.apache.commons.beanutils.converters.IntegerArrayConverter",
        "org.apache.commons.beanutils.converters.LongConverter",
        "org.apache.commons.beanutils.converters.LongArrayConverter",
        "org.apache.commons.beanutils.converters.ShortConverter",
        "org.apache.commons.beanutils.converters.ShortArrayConverter",
        "org.apache.commons.beanutils.converters.StringConverter",
        "org.apache.commons.beanutils.converters.StringArrayConverter",
        "org.apache.commons.beanutils.converters.SqlDateConverter",
        "org.apache.commons.beanutils.converters.SqlTimeConverter",
        "org.apache.commons.beanutils.converters.SqlTimestampConverter",
        "org.apache.commons.beanutils.ConvertUtils",
        "org.apache.lucene.analysis.TokenStream",
        "org.apache.lucene.analysis.Tokenizer",
        "org.apache.lucene.analysis.CharTokenizer",
        "org.apache.lucene.analysis.LetterTokenizer",
        "org.apache.lucene.analysis.TokenFilter",
        "org.apache.lucene.analysis.LowerCaseFilter",
        "org.apache.lucene.analysis.StopFilter",
        "org.apache.lucene.analysis.StopAnalyzer",
        "org.apache.lucene.analysis.PorterStemFilter",
        "org.apache.lucene.analysis.PorterStemmer",
        "org.apache.commons.lang.builder.EqualsBuilder",
        "org.apache.commons.lang.builder.ToStringStyle$DefaultToStringStyle",
        "org.apache.commons.lang.builder.ToStringStyle$MultiLineToStringStyle",
        "org.apache.commons.lang.SystemUtils",
        "org.apache.commons.lang.builder.ToStringStyle$NoFieldNameToStringStyle",
        "org.apache.commons.lang.builder.ToStringStyle$SimpleToStringStyle",
        "org.apache.commons.lang.builder.ToStringStyle",
        "org.apache.commons.lang.builder.ToStringBuilder",
        "org.apache.commons.digester.Digester",
        "org.apache.commons.collections.ArrayStack",
        "org.apache.commons.logging.impl.LogFactoryImpl",
        "org.apache.commons.logging.impl.SimpleLog",
        "org.apache.commons.digester.Rule",
        "org.apache.commons.digester.ObjectCreateRule",
        "org.apache.commons.digester.RulesBase",
        "org.apache.commons.digester.SetPropertiesRule",
        "org.apache.commons.digester.SetNextRule",
        "org.petsoar.search.lucene.LuceneException"
      );
    }
  }
  