Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Jun 10, 2021
1 parent 55619a3 commit 3925bcf
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -18,6 +18,7 @@
import org.appng.api.Platform;
import org.appng.api.Scope;
import org.appng.api.messaging.Messaging;
import org.appng.api.model.Site.SiteState;
import org.appng.api.support.CallableDataSource;
import org.appng.testsupport.validation.WritingXmlValidator;
import org.junit.Test;
Expand All @@ -34,6 +35,7 @@ public void testClusterState() throws Exception {
environment.setAttribute(Scope.PLATFORM, Platform.Environment.PLATFORM_CONFIG,
Mockito.mock(org.appng.api.model.Properties.class));
System.setProperty(Messaging.APPNG_NODE_ID, "node1");
Mockito.when(site.getState()).thenReturn(SiteState.STARTED);
CallableDataSource siteDatasource = getDataSource("clusterState").getCallableDataSource();
siteDatasource.perform("test");
validate(siteDatasource.getDatasource().getConfig());
Expand Down

0 comments on commit 3925bcf

Please sign in to comment.