Label { @Generated(hash = 1212652385) public List<LabelName> getNames() { if (names == null) { final DaoSession daoSession = this.daoSession; if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } LabelNameDao targetDao = daoSession.getLabelNameDao(); List<LabelName> namesNew = targetDao._queryLabel_Names(tag); synchronized (this) { if (names == null) { names = namesNew; } } } return names; } Label(); @Keep  Label(String tag, List<LabelName> names, String wikiDataId); @Keep  Label(String tag, List<LabelName> names); @Generated(hash = 1849619213)  Label(Long id, String tag, String wikiDataId, Boolean isWikiDataIdPresent); Long getId(); void setId(Long id); String getTag(); void setTag(String tag); Boolean getWikiDataIdPresent(); @Generated(hash = 1212652385) List<LabelName> getNames(); @Generated(hash = 1832659617) synchronized void resetNames(); @Generated(hash = 128553479) void delete(); @Generated(hash = 1942392019) void refresh(); @Generated(hash = 713229351) void update(); String getWikiDataId(); void setWikiDataId(String wikiDataId); Boolean getIsWikiDataIdPresent(); void setIsWikiDataIdPresent(Boolean isWikiDataIdPresent); @Generated(hash = 692607636) void __setDaoSession(DaoSession daoSession);  }
@Test public void getNamesWithNullNamesAndNullDaoSession_throwsDaoException() { assertThrows(DaoException.class, () -> mLabel.getNames()); }