Kevin.Zhong

          彪悍的人生不需要解釋,彪悍的代碼不需要測試。

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            17 隨筆 :: 12 文章 :: 14 評論 :: 0 Trackbacks
           1 @RunWith(SpringJUnit4ClassRunner.class)
           2 @ContextConfiguration(locations = {"/applicationContext.xml",
           3         "/com/jl/sinter/service/spring/conf/quality_spring_dao.xml",
           4         "/com/jl/sinter/service/spring/conf/quality_spring_service.xml",
           5         "/com/jl/sinter/service/spring/conf/common_spring.xml"
           6 })
           7 @TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true)   
           8 @Transactional
           9 
          10 public class ConsumeFacadeTest {
          11 
          12 @Test
          13     public void getConsumeInfoByFilter() {
          14         MonitorQueryFilter filter = new MonitorQueryFilter();
          15         filter.setQueryDate("2009-02-16");
          16         filter.setDutyClassId("3");
          17         filter.setDutyShiftId("2");
          18         filter.setSinterId("xxxxxxxxxxxxxxxxxxxxxxxxxxxxx001");
          19         List<PowerConsumption> pcList = consumeFacade.getConsumeInfoByFilter(filter);
          20         if (CollectionUtils.isNotEmpty(pcList)) {
          21             for (PowerConsumption pc : pcList) {
          22                 System.out.println(pc);
          23             }
          24         }
          25     }
          26 
          27 }
          posted on 2009-06-05 15:56 Kevin.Zhong 閱讀(412) 評論(0)  編輯  收藏 所屬分類: Spring

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 苍南县| 济阳县| 日照市| 西贡区| 海丰县| 开封县| 新源县| 诏安县| 云梦县| 贵州省| 长汀县| 海安县| 北安市| 如皋市| 沧州市| 鲁山县| 敖汉旗| 和平区| 房产| 芦山县| 新密市| 娱乐| 临澧县| 镇江市| 靖州| 荆门市| 彩票| 高密市| 天水市| 长汀县| 天全县| 若羌县| 嘉善县| 淄博市| 会理县| 通渭县| 久治县| 东光县| 固安县| 金秀| 伊宁市|