@Test public void testGetLampList() { List<LampVo> l = lampService.getLampList(null); for (LampVo ls : l) { System.out.println(ls); } }
/** ²âÊÔaddLamp()·½·¨ */ @Test public void testAddLamp() { Lamp lamp = new Lamp(); lamp.setIsbn("sdf"); lamp.setPrice(12.0); lamp.setLampName("sdfg"); lampService.addLamp(lamp); }
@Test public void testUpdataLmap() { lampService.updateLamp( "54654", "sdf", 1, "werwerwer", 12.3, "sdf", "sdf", "sdfsdf", "sdfsdf", "sdf", 5l); }
@Test public void testInsertLamp() { lampService.insertCartShop(22l, 1325486783635l, 10, 10.0); }
/** ²âÊÔ»ñÈ¡µÆÊεÄÏêϸÐÅÏ¢ */ @Test public void testDetailsLamp() { LampVo lamp = lampService.detailsLamp(1l); System.out.println("lamp-->" + lamp); }