1 /** 2 * 3 */ 4 package com.btmatthews.ldapunit.impl; 5 6 import com.btmatthews.ldapunit.ILDAPDataSet; 7 8 /** 9 * @author <a href="mailto:brian@btmatthews.com">Brian Matthews</a> 10 * @version 1.0 11 */ 12 public final class LDAPDataSetAssertions 13 { 14 /** 15 * Assert that the cardinality of set <code>a</code> is <code>n</code>. 16 * 17 * @param n 18 * The expected cardinality. 19 * @param a 20 * The set being tested. 21 * @return <code>true</code> if the cardinality of <code>a</code> is 22 * <code>n</code>. 23 */ 24 public static boolean assertCardinality(final int n, final ILDAPDataSet a) 25 { 26 return false; 27 } 28 29 /** 30 * Asserts that sets <code>a</code> and <code>b</code> are equivalent. 31 * 32 * @param a 33 * A set being tested. 34 * @param b 35 * A set being tested. 36 * @return <code>true</code> if the <code>a</code> and <code>b</code> are equivalent. 37 */ 38 public static boolean assertEquals(final ILDAPDataSet a, 39 final ILDAPDataSet b) 40 { 41 return false; 42 } 43 44 /** 45 * Asserts that <code>a</code> is a subset of <code>b</code>. This means 46 * that <code>a</code> contains some or all of the elements of 47 * <code>b</code>. 48 * 49 * @param a 50 * The subset being tested. 51 * @param b 52 * The superset being tested. 53 * @return <code>true</code> if <code>a</code> is a proper subset of 54 * <code>b</code>. 55 */ 56 public static boolean assertSubSetOf(final ILDAPDataSet a, 57 final ILDAPDataSet b) 58 { 59 return false; 60 } 61 62 /** 63 * Asserts that <code>a</code> is a proper subset of <code>b</code>. This 64 * means that <code>a</code> contains some but not all of the elements 65 * <code>b</code>. 66 * 67 * @param a 68 * The subset being tested. 69 * @param b 70 * The superset being tested. 71 * @return <code>true</code> if <code>a</code> is a proper subset of 72 * <code>b</code>. 73 */ 74 public static boolean assertProperSubSetOf(final ILDAPDataSet a, 75 final ILDAPDataSet b) 76 { 77 return false; 78 } 79 }