Skip to content

Commit

Permalink
OGM-1379 Pass the right parameters to RemoteAuthenticationFailureTest
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Jan 24, 2018
1 parent e5ad7ea commit 17c78f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Expand Up @@ -16,8 +16,10 @@
import org.hibernate.ogm.cfg.OgmProperties;
import org.hibernate.ogm.datastore.impl.DatastoreProviderType;
import org.hibernate.ogm.datastore.neo4j.remote.common.impl.RemoteNeo4jDatastoreProvider;
import org.hibernate.ogm.datastore.neo4j.utils.Neo4jTestHelper;
import org.hibernate.ogm.datastore.neo4j.utils.PropertiesReader;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
Expand All @@ -29,6 +31,11 @@ public class RemoteAuthenticationFailureTest {

private final Map<String, String> properties = new HashMap<String, String>( 2 );

@BeforeClass
public static void initEnvironment() {
Neo4jTestHelper.initEnvironment();
}

@Before
public void setup() {
copyFromSystemPropertiesToLocalEnvironment( OgmProperties.HOST, properties );
Expand Down
Expand Up @@ -37,6 +37,10 @@
public class Neo4jTestHelper extends BaseGridDialectTestHelper implements GridDialectTestHelper {

static {
initEnvironment();
}

public static void initEnvironment() {
// Read host, username and password from environment variable
// Maven's surefire plugin set it to the string 'null'
String neo4jHost = System.getenv( "NEO4J_HOSTNAME" );
Expand Down

0 comments on commit 17c78f8

Please sign in to comment.