Esempio n. 1
0
 @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());
   }
 }
Esempio n. 2
0
  @Test
  public void test1() {
    TeaInfo tea = new TeaInfo();

    tea.setTeaId("004");

    tea.setTeaName("王老师");

    tea_dao.insert(tea);

    // Assert.assertTrue(i==1);
  }