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

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


          網站導航:
           
          主站蜘蛛池模板: 加查县| 新民市| 龙井市| 沙湾县| 上思县| 客服| 商丘市| 宜川县| 迭部县| 汉川市| 株洲市| 防城港市| 新疆| 洛宁县| 谢通门县| 惠水县| 汉源县| 驻马店市| 长岛县| 扎鲁特旗| 三河市| 沿河| 丹江口市| 泗洪县| 宁武县| 德保县| 三明市| 高雄市| 洛阳市| 高碑店市| 阳西县| 娄烦县| 东至县| 黔西县| 西城区| 清水河县| 武城县| 青岛市| 凯里市| 岗巴县| 文山县|