| | |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | | |
| | | import static org.assertj.core.api.Assertions.*; |
| | | |
| | | import java.io.ByteArrayInputStream; |
| | | import java.util.ArrayList; |
| | |
| | | import org.testng.annotations.DataProvider; |
| | | import org.testng.annotations.Test; |
| | | |
| | | import static org.testng.Assert.*; |
| | | |
| | | /** |
| | | * This class defines a set of tests for the |
| | | * org.opends.server.plugins.EntryUUIDPlugin class. |
| | |
| | | DirectoryServer.getPluginConfigManager().getRegisteredPlugin(dn); |
| | | plugin.doLDIFImport(importConfig, e); |
| | | |
| | | assertNotNull(e.getAttribute("entryuuid")); |
| | | assertThat(e.getAttribute("entryuuid")).isNotEmpty(); |
| | | } |
| | | |
| | | |
| | |
| | | DirectoryServer.getPluginConfigManager().getRegisteredPlugin(dn); |
| | | plugin.doLDIFImport(importConfig, e); |
| | | |
| | | assertNotNull(e.getAttribute("entryuuid")); |
| | | assertThat(e.getAttribute("entryuuid")).isNotEmpty(); |
| | | } |
| | | |
| | | |
| | |
| | | "objectClass: top", |
| | | "objectClass: device", |
| | | "cn: test"); |
| | | assertNotNull(e.getAttribute("entryuuid")); |
| | | assertThat(e.getAttribute("entryuuid")).isNotEmpty(); |
| | | } |
| | | |
| | | |
| | |
| | | "objectClass: device", |
| | | "cn: test", |
| | | "entryUUID: " + UUID.randomUUID()); |
| | | assertNotNull(e.getAttribute("entryuuid")); |
| | | assertThat(e.getAttribute("entryuuid")).isNotEmpty(); |
| | | } |
| | | } |
| | | |