| | |
| | | * Header, with the fields enclosed by brackets [] replaced by your own identifying |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2024 3A Systems LLC. |
| | | * Copyright 2024-2026 3A Systems LLC. |
| | | */ |
| | | |
| | | package org.openidentityplatform.opendj.embedded; |
| | |
| | | embeddedOpenDJ.run(); |
| | | assertTrue(embeddedOpenDJ.isRunning()); |
| | | |
| | | File serverRoot = embeddedOpenDJ.getServerRootDirectory(); |
| | | assertTrue(serverRoot.isDirectory()); |
| | | |
| | | //import ldif data from an input stream |
| | | URI resUri = getClass().getClassLoader().getResource("opendj/data.ldif").toURI(); |
| | | byte[] bytes = Files.readAllBytes(Paths.get(resUri)); |
| | |
| | | //stop OpenDJ |
| | | embeddedOpenDJ.close(); |
| | | assertFalse(embeddedOpenDJ.isRunning()); |
| | | |
| | | //the per-instance temporary directory is deleted on close |
| | | assertFalse(serverRoot.exists()); |
| | | assertFalse(serverRoot.getParentFile().exists()); |
| | | } |
| | | } |
| | | } |