@Test public void test2() { TeaInfoExample ex = new TeaInfoExample(); TeaInfoExample.Criteria tc = ex.createCriteria(); tc.andTeaIdEqualTo("001"); List<TeaInfo> tea = tea_dao.selectByExample(ex); for (TeaInfo t : tea) { System.out.println(t.getTeaName()); } }
@Test public void test1() { TeaInfo tea = new TeaInfo(); tea.setTeaId("004"); tea.setTeaName("王老师"); tea_dao.insert(tea); // Assert.assertTrue(i==1); }