Пример #1
0
  static void ssds() {
    AbstractTestUtil.init(null, true);
    Relation branchRelation = new Relation("233", "branch", "", "id", "");
    Relation relation =
        new Relation(
            "11", "animal", Relation.LIST_MODE, "id", Relation.MORE_TO_ONE, branchRelation);

    XStream xStream = XStreamFactory.getXStream("tinydb");
    System.out.println(xStream.toXML(relation));
  }
Пример #2
0
  private static void init() {
    if (init) return;
    init = true;
    AbstractTestUtil.init(null, true);
    manager = SpringUtil.getBean(CEPCoreAopManager.CEPCORE_AOP_BEAN);
    manager.addAopAdapter(CEPCoreAopManager.BEFORE_LOCAL, "aopTestAdapter", "aop.*");
    manager.addAopAdapter(CEPCoreAopManager.BEFORE_LOCAL, "requestParamValidate", null);

    handlerManager = SpringUtil.getBean(ExceptionHandlerManager.MANAGER_BEAN);
    try {
      handlerManager.addHandler(
          "org.tinygroup.exception.TinySysRuntimeException", new ExceptionHanlder1());
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
    }
    registerEventProcessor(ToolUtil.getEventProcessor1());
  }