mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Violette Roche-Montane
06.32.2014 ae2964516ff5296a50b354b4c1283879a637dc0c
opendj-server/src/test/java/org/forgerock/opendj/server/setup/model/ModelTestCase.java
@@ -396,35 +396,4 @@
        assertTrue(ds.hasLicense());
        ds.validate();
    }
    /**
     * Performs security checks.
     *
     * @throws ConfigException
     *             If a configuration exception occurs.
     */
    @Test()
    public void testCheckJavaVersion() throws ConfigException {
        final Model ds = new DataStoreModel();
        ds.checkJavaVersion();
    }
    /**
     * Performs security checks. In this case, java version is invalid.
     *
     * @throws ConfigException
     *             If a configuration exception occurs.
     */
    @Test(expectedExceptions = Exception.class)
    public void testInvalidJavaVersion() throws Exception {
        final Model ds = new DataStoreModel();
        final String original = System.getProperty("java.specification.version");
        System.setProperty("java.specification.version", "1.5");
        try {
            ds.checkJavaVersion();
        } finally {
            System.setProperty("java.specification.version", original);
        }
    }
}