Fix ResourceDAOTest when run individually.
It failed since the addition of Resource.checkMaxResources(). FEA: ItEr77S04BugFixing
This commit is contained in:
parent
9cb91ad3f5
commit
61162ad9fe
1 changed files with 10 additions and 0 deletions
|
|
@ -40,8 +40,10 @@ import java.util.UUID;
|
|||
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.joda.time.LocalDate;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.libreplan.business.IDataBootstrap;
|
||||
import org.libreplan.business.calendars.entities.ResourceCalendar;
|
||||
import org.libreplan.business.common.IAdHocTransactionService;
|
||||
import org.libreplan.business.common.IOnTransaction;
|
||||
|
|
@ -97,6 +99,14 @@ public class ResourceDAOTest {
|
|||
@Autowired
|
||||
private IUserDAO userDAO;
|
||||
|
||||
@javax.annotation.Resource
|
||||
private IDataBootstrap configurationBootstrap;
|
||||
|
||||
@Before
|
||||
public void loadRequiredaData() {
|
||||
configurationBootstrap.loadRequiredData();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void saveResourceWithCalendar() throws InstanceNotFoundException {
|
||||
Resource resource = givenValidWorker();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue