@Test public void testForExistingNames() { LicenseAcceptance.assertLicenseAccepted("a"); LicenseAcceptance.assertLicenseAccepted("b"); }
@Test(expected = IllegalStateException.class) public void testForMissingNames() { LicenseAcceptance.assertLicenseAccepted("c"); } }
/** * Configures the container to use the enterprise edition of the default docker image. * <br><br> * Please have a look at the <a href="https://neo4j.com/licensing/">Neo4j Licensing page</a>. While the Neo4j * Community Edition can be used for free in your projects under the GPL v3 license, Neo4j Enterprise edition * needs either a commercial, education or evaluation license. * * @return This container. */ public S withEnterpriseEdition() { if (!defaultImage) { throw new IllegalStateException( String.format("Cannot use enterprise version with alternative image %s.", getDockerImageName())); } setDockerImageName(DOCKER_IMAGE_NAME + "-enterprise"); LicenseAcceptance.assertLicenseAccepted(getDockerImageName()); addEnv("NEO4J_ACCEPT_LICENSE_AGREEMENT", "yes"); return self(); }
@Override protected void configure() { addExposedPort(MS_SQL_SERVER_PORT); LicenseAcceptance.assertLicenseAccepted(this.getDockerImageName()); addEnv("ACCEPT_EULA", "Y"); addEnv("SA_PASSWORD", password); }