com.btmatthews.ldapunit.impl
Class LDAPDataSetAssertions

java.lang.Object
  extended by com.btmatthews.ldapunit.impl.LDAPDataSetAssertions

public final class LDAPDataSetAssertions
extends java.lang.Object

Version:
1.0
Author:
Brian Matthews

Constructor Summary
LDAPDataSetAssertions()
           
 
Method Summary
static boolean assertCardinality(int n, ILDAPDataSet a)
          Assert that the cardinality of set a is n.
static boolean assertEquals(ILDAPDataSet a, ILDAPDataSet b)
          Asserts that sets a and b are equivalent.
static boolean assertProperSubSetOf(ILDAPDataSet a, ILDAPDataSet b)
          Asserts that a is a proper subset of b.
static boolean assertSubSetOf(ILDAPDataSet a, ILDAPDataSet b)
          Asserts that a is a subset of b.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPDataSetAssertions

public LDAPDataSetAssertions()
Method Detail

assertCardinality

public static boolean assertCardinality(int n,
                                        ILDAPDataSet a)
Assert that the cardinality of set a is n.

Parameters:
n - The expected cardinality.
a - The set being tested.
Returns:
true if the cardinality of a is n.

assertEquals

public static boolean assertEquals(ILDAPDataSet a,
                                   ILDAPDataSet b)
Asserts that sets a and b are equivalent.

Parameters:
a - A set being tested.
b - A set being tested.
Returns:
true if the a and b are equivalent.

assertSubSetOf

public static boolean assertSubSetOf(ILDAPDataSet a,
                                     ILDAPDataSet b)
Asserts that a is a subset of b. This means that a contains some or all of the elements of b.

Parameters:
a - The subset being tested.
b - The superset being tested.
Returns:
true if a is a proper subset of b.

assertProperSubSetOf

public static boolean assertProperSubSetOf(ILDAPDataSet a,
                                           ILDAPDataSet b)
Asserts that a is a proper subset of b. This means that a contains some but not all of the elements b.

Parameters:
a - The subset being tested.
b - The superset being tested.
Returns:
true if a is a proper subset of b.


Copyright © 2008 Brian Thomas Matthews. All Rights Reserved.