Dao已經(jīng)封裝好了 Model已經(jīng)寫完了 Sevice是這樣的 public interface MyCommunityService { public int add(MyCommunity mycommunity); ServiceImpl是這樣的 public class MyCommunityServiceImpl extends CommonServiceImpl implements MyCommuni... Dao已經(jīng)封裝好了
Model已經(jīng)寫完了
Sevice是這樣的
public interface MyCommunityService {
public int add(MyCommunity mycommunity);
ServiceImpl是這樣的
public class MyCommunityServiceImpl extends CommonServiceImpl implements MyCommunityService{
@Override
public int add(MyCommunity mycommunity) {
Serializable result = this.commonDao.save(mycommunity);
return (Integer) result;
}
想問下測試方法怎么寫 在線等 展開