// @Test
 public void testDelete() {
   try {
     truleNewMapper.delete(85L);
   } catch (SQLException e) {
     e.printStackTrace();
   }
 }
 // @Test
 public void testFindObjBySid() {
   try {
     TRuleNewVO vo = truleNewMapper.findObjBySid(86L);
     System.out.print(vo);
   } catch (SQLException e) {
     e.printStackTrace();
   }
 }
  //	@Test
  public void testQueryObjsCount() {
    TRuleNewCond cond = new TRuleNewCond();
    cond.setSid(145L);

    try {
      Integer num = truleNewMapper.queryObjsCount(cond);
      System.out.println("num - " + num);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
  // @Test
  public void testUpdate() {
    TRuleNewCond cond = new TRuleNewCond();
    TRuleNew truleNew = new TRuleNew();
    truleNew.setSid(84L);
    truleNew.setRuleName("哈哈哈");
    truleNew.setActiveBeginTime(Date.valueOf("2001-09-09"));

    cond.setTruleNew(truleNew);
    try {
      truleNewMapper.update(cond.getTruleNew());

    } catch (SQLException e) {
      e.printStackTrace();
    }
  }
  @Test
  public void testInsert() {
    TRuleNewCond cond = new TRuleNewCond();
    TRuleNew truleNew = new TRuleNew();

    truleNew.setActiveEndTime(Date.valueOf("2012-03-03"));
    truleNew.setRuleName("新规则");
    truleNew.setActiveBeginTime(Date.valueOf("2012-02-03"));
    truleNew.setCreateTime(Date.valueOf("2012-02-03"));
    truleNew.setFlag(1);
    //			truleNew.setCreateUser("shiying");
    //			truleNew.setUpdateTime(Date.valueOf("2012-02-03"));
    //			truleNew.setUpdateUser("shiying");

    cond.setTruleNew(truleNew);
    try {
      truleNewMapper.insert(cond.getTruleNew());

    } catch (SQLException e) {
      e.printStackTrace();
    }
  }
 @Test
 public void testfindAllRules() throws SQLException {
   List<TRuleNewVO> vo = truleNewMapper.findAllRules();
   System.out.print(vo);
 }