Skip to content
Snippets Groups Projects
Commit 0dd137da authored by srosse's avatar srosse
Browse files

OO-4335: unit test need a real course

parent ec304ad1
No related branches found
No related tags found
No related merge requests found
...@@ -200,6 +200,8 @@ public class GTAReminderRuleTest extends OlatTestCase { ...@@ -200,6 +200,8 @@ public class GTAReminderRuleTest extends OlatTestCase {
Identity participant3 = JunitTestHelper.createAndPersistIdentityAsRndUser("gta-user-6"); Identity participant3 = JunitTestHelper.createAndPersistIdentityAsRndUser("gta-user-6");
Identity participant4 = JunitTestHelper.createAndPersistIdentityAsRndUser("gta-user-7"); Identity participant4 = JunitTestHelper.createAndPersistIdentityAsRndUser("gta-user-7");
RepositoryEntry re = deployGTACourse();
BusinessGroup businessGroup1 = businessGroupDao.createAndPersist(coach, "gdao", "gdao-desc", -1, -1, false, false, false, false, false); BusinessGroup businessGroup1 = businessGroupDao.createAndPersist(coach, "gdao", "gdao-desc", -1, -1, false, false, false, false, false);
BusinessGroup businessGroup2 = businessGroupDao.createAndPersist(coach, "gdao", "gdao-desc", -1, -1, false, false, false, false, false); BusinessGroup businessGroup2 = businessGroupDao.createAndPersist(coach, "gdao", "gdao-desc", -1, -1, false, false, false, false, false);
...@@ -209,7 +211,6 @@ public class GTAReminderRuleTest extends OlatTestCase { ...@@ -209,7 +211,6 @@ public class GTAReminderRuleTest extends OlatTestCase {
businessGroupRelationDao.addRole(participant4, businessGroup2, GroupRole.participant.name()); businessGroupRelationDao.addRole(participant4, businessGroup2, GroupRole.participant.name());
dbInstance.commit(); dbInstance.commit();
RepositoryEntry re = JunitTestHelper.createAndPersistRepositoryEntry("", false);
businessGroupRelationDao.addRelationToResource(businessGroup1, re); businessGroupRelationDao.addRelationToResource(businessGroup1, re);
businessGroupRelationDao.addRelationToResource(businessGroup2, re); businessGroupRelationDao.addRelationToResource(businessGroup2, re);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment