Skip to content

Commit

Permalink
MGR-74 fix SitesTest (side effect of APPNG-2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Jun 4, 2019
1 parent 57b6eb5 commit 196d063
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -31,6 +31,7 @@
import org.appng.core.repository.ApplicationRepository;
import org.appng.core.repository.GroupRepository;
import org.appng.core.repository.PermissionRepository;
import org.appng.core.repository.PropertyRepository;
import org.appng.core.repository.RepoRepository;
import org.appng.core.repository.RoleRepository;
import org.appng.core.repository.SiteApplicationRepository;
Expand Down Expand Up @@ -69,6 +70,9 @@ public class AbstractTest extends TestBase {
@Autowired
PermissionRepository permissionRepository;

@Autowired
PropertyRepository propertyRepository;

@Autowired
@Qualifier("entityManager")
EntityManager em;
Expand Down
Expand Up @@ -18,10 +18,12 @@
import java.io.IOException;

import org.appng.api.FieldProcessor;
import org.appng.api.Platform;
import org.appng.api.ProcessingException;
import org.appng.api.support.CallableAction;
import org.appng.api.support.CallableDataSource;
import org.appng.application.manager.form.SiteForm;
import org.appng.core.domain.PropertyImpl;
import org.appng.core.domain.SiteImpl;
import org.junit.FixMethodOrder;
import org.junit.Test;
Expand All @@ -34,6 +36,8 @@ public class SitesTest extends AbstractTest {

@Test
public void testCreateSite() throws Exception {
propertyRepository.save(new PropertyImpl("platform." + Platform.Property.MESSAGING_ENABLED, null, "false"));

SiteImpl siteToCreate = new SiteImpl();
SiteForm siteForm = new SiteForm(siteToCreate);
siteToCreate.setName("localhost");
Expand Down

0 comments on commit 196d063

Please sign in to comment.