content: package code.inspector.api;
  
  import code.inspector.model.ResultInfo;
  
  import java.util.List;
  
  @SuppressWarnings("all")
  public class Test {
  
      public static void testRCE() {
          CodeInspector inspector = new CodeInspectorImpl();
          List<ResultInfo> results = inspector.analyzeRCE(
                  "./bin/code-inspector-demo-0.1-beta.jar",
                  false, false, false);
          for (ResultInfo r : results) {
              System.out.println(r.getType() + ":" + r.getVulName());
          }
      }
  
      public static void testSSRF() {
          CodeInspector inspector = new CodeInspectorImpl();
          List<ResultInfo> results = inspector.analyzeSSRF(
                  "./bin/code-inspector-demo-0.1-beta.jar",
                  false, false, false);
          for (ResultInfo r : results) {
              System.out.println(r.getType() + ":" + r.getVulName());
          }
      }
  
      public static void testDoS() {
          CodeInspector inspector = new CodeInspectorImpl();
          List<ResultInfo> results = inspector.analyzeDoS(
                  "./bin/code-inspector-demo-0.1-beta.jar",
                  false, false, false);
          for (ResultInfo r : results) {
              System.out.println(r.getType() + ":" + r.getVulName());
          }
      }
  
      public static void testDeserialization() {
          CodeInspector inspector = new CodeInspectorImpl();
          List<ResultInfo> results = inspector.analyzeDeserialization(
                  "./bin/code-inspector-demo-0.1-beta.jar",
                  false, false, false);
          for (ResultInfo r : results) {
              System.out.println(r.getType() + ":" + r.getVulName());
          }
      }
  
      public static void testSQLInjection() {
          CodeInspector inspector = new CodeInspectorImpl();
          List<ResultInfo> results = inspector.analyzeSQLInjection(
                  "./bin/code-inspector-demo-0.1-beta.jar",
                  false, false, false);
          for (ResultInfo r : results) {
              System.out.println(r.getType() + ":" + r.getVulName());
          }
      }
  
      public static void testRedirect() {
          CodeInspector inspector = new CodeInspectorImpl();
          List<ResultInfo> results = inspector.analyzeRedirect(
                  "./bin/code-inspector-demo-0.1-beta.jar",
                  false, false, false);
          for (ResultInfo r : results) {
              System.out.println(r.getType() + ":" + r.getVulName());
          }
      }
  
      public static void testAll() {
          CodeInspector inspector = new CodeInspectorImpl();
          List<ResultInfo> results = inspector.analyzeAll(
                  "./bin/code-inspector-demo-0.1-beta.jar",
                  false, false, false);
          for (ResultInfo r : results) {
              System.out.println(r.getType() + ":" + r.getVulName());
          }
      }
  
      public static void testTarget() {
          CodeInspector inspector = new CodeInspectorImpl();
          List<ResultInfo> results = inspector.analyzeRCE(
                  "./bin/code-inspector-demo-0.1-beta.jar",
                  false, false, false);
          for (ResultInfo r : results) {
              System.out.println(r.getType() + ":" + r.getVulName());
          }
      }
  
      public static void main(String[] args) {
          testSSRF();
      }
  }
  