Exemplo n.º 1
0
 // 测试动画片集数
 @Test
 public void testAdd() {
   Cartoon c = new Cartoon();
   c.setCartoonId(1);
   c.setCartoonName("黑猫警长");
   c.setcThumbnail("/servlet/blackmao.jpg");
   Station s = new Station();
   s.setCatroon(c);
   s.setStationURL("/donghua/heimao/3.mp4");
   s.setWhichStation("第四集 班长殉职");
   sDao.addStation(s);
 }
Exemplo n.º 2
0
 @Test
 public void testUpdate() {
   Cartoon c = new Cartoon();
   c.setCartoonId(2);
   c.setCartoonName("海尔兄弟");
   c.setcThumbnail("/servlet/blackmao.jpg");
   Station s = new Station();
   s.setCatroon(c);
   s.setStationId(7);
   s.setStationURL("/donghua/haier/4.mp4");
   s.setWhichStation("第四集 欢迎来到");
   sDao.updateStation(s);
 }