content: package test.runbycode.callgraph;
  
  import com.adrninistrator.jacg.conf.enums.ConfigKeyEnum;
  import com.adrninistrator.jacg.conf.enums.OtherConfigFileUseSetEnum;
  import com.adrninistrator.jacg.runner.RunnerGenAllGraph4Callee;
  import com.adrninistrator.jacg.runner.RunnerGenAllGraph4Caller;
  import org.junit.Assert;
  import org.junit.Test;
  import test.callgraph.extendcomplex.TestExtendComplex;
  import test.runbycode.base.TestRunByCodeBase;
  
  /**
   * @author adrninistrator
   * @date 2025/3/2
   * @description:
   */
  public class TestGenCallGraphError extends TestRunByCodeBase {
  
      @Test
      public void testError1() {
          configureWrapper.setMainConfig(ConfigKeyEnum.CKE_CALL_GRAPH_WRITE_TO_FILE, Boolean.FALSE.toString());
          configureWrapper.setMainConfig(ConfigKeyEnum.CKE_CALL_GRAPH_RETURN_IN_MEMORY, Boolean.FALSE.toString());
  
          configureWrapper.setOtherConfigSet(OtherConfigFileUseSetEnum.OCFUSE_METHOD_CLASS_4CALLER,
                  TestExtendComplex.class.getName() + ":test1()");
          Assert.assertFalse(new RunnerGenAllGraph4Caller(configureWrapper).run());
      }
  
      @Test
      public void testError2() {
          configureWrapper.setMainConfig(ConfigKeyEnum.CKE_CALL_GRAPH_WRITE_TO_FILE, Boolean.FALSE.toString());
          configureWrapper.setMainConfig(ConfigKeyEnum.CKE_CALL_GRAPH_RETURN_IN_MEMORY, Boolean.FALSE.toString());
  
          configureWrapper.setOtherConfigSet(OtherConfigFileUseSetEnum.OCFUSE_METHOD_CLASS_4CALLEE,
                  System.class.getName() + ":getProperties(");
          Assert.assertFalse(new RunnerGenAllGraph4Callee(configureWrapper).run());
      }
  }
  