org.kuali.student.common.test.util
Class ListOfStringTester

java.lang.Object
  extended by org.kuali.student.common.test.util.ListOfStringTester

public class ListOfStringTester
extends Object

Helps create a dynamic

Author:
nwright

Constructor Summary
ListOfStringTester()
           
 
Method Summary
 void check(List<String> expectedList, List<String> actualList)
           
 void checkExistsAnyOrder(List<String> expectedList, List<String> actualList, boolean failForExtraElements)
          Verify that the expected elements exist in the actual list.
 void dump(List<String> list)
           
 void dump(List<String> expectedList, List<String> actualList)
           
static List<String> generateRandomListOfStringIds(int length, int upperBound)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListOfStringTester

public ListOfStringTester()
Method Detail

checkExistsAnyOrder

public void checkExistsAnyOrder(List<String> expectedList,
                                List<String> actualList,
                                boolean failForExtraElements)
Verify that the expected elements exist in the actual list. order is not important

Parameters:
expectedList -
actualList -
failForExtraElements - true if we should fail if there are other elements in the actual list.

check

public void check(List<String> expectedList,
                  List<String> actualList)

dump

public void dump(List<String> expectedList,
                 List<String> actualList)

dump

public void dump(List<String> list)

generateRandomListOfStringIds

public static List<String> generateRandomListOfStringIds(int length,
                                                         int upperBound)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.