| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS. |
| | | * Portions Copyright 2015-2016 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.server.tools; |
| | |
| | | }; |
| | | assertEquals(LDIFSearch.mainSearch(args, false, System.out, System.err), 0); |
| | | Entry e = readEntry(); |
| | | assertThat(e.getAttribute("objectclass")).isNotEmpty(); |
| | | assertThat(e.getAllAttributes("objectclass")).isNotEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | }; |
| | | assertEquals(LDIFSearch.mainSearch(args, false, System.out, System.err), 0); |
| | | Entry e = readEntry(); |
| | | assertThat(e.getAttribute("objectclass")).isEmpty(); |
| | | assertThat(e.getAllAttributes("objectclass")).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | }; |
| | | assertEquals(LDIFSearch.mainSearch(args, false, System.out, System.err), 0); |
| | | Entry e = readEntry(); |
| | | assertThat(e.getAttribute("objectclass")).isEmpty(); |
| | | assertThat(e.getAttribute("mail")).isNotEmpty(); |
| | | assertThat(e.getAttribute("uid")).isNotEmpty(); |
| | | assertThat(e.getAllAttributes("objectclass")).isEmpty(); |
| | | assertThat(e.getAllAttributes("mail")).isNotEmpty(); |
| | | assertThat(e.getAllAttributes("uid")).isNotEmpty(); |
| | | } |
| | | |
| | | |
| | |
| | | }; |
| | | assertEquals(LDIFSearch.mainSearch(args, false, System.out, System.err), 0); |
| | | Entry e = readEntry(); |
| | | assertThat(e.getAttribute("objectclass")).isEmpty(); |
| | | assertThat(e.getAttribute("mail")).isNotEmpty(); |
| | | assertThat(e.getAttribute("uid")).isNotEmpty(); |
| | | assertThat(e.getAllAttributes("objectclass")).isEmpty(); |
| | | assertThat(e.getAllAttributes("mail")).isNotEmpty(); |
| | | assertThat(e.getAllAttributes("uid")).isNotEmpty(); |
| | | } |
| | | } |