it.openutils.testing
Class TestUtils

java.lang.Object
  extended by it.openutils.testing.TestUtils

public final class TestUtils
extends java.lang.Object

Version:
$Id: TestUtils.java 1301 2009-08-25 09:41:04Z mmunaretto $
Author:
fgiust

Method Summary
static
<T> java.util.List<T>
listWith(T... elements)
          Create a new list with all the elements.
static
<T> java.util.Set<T>
setWith(T... elements)
          Create a new set with all the elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setWith

public static <T> java.util.Set<T> setWith(T... elements)
Create a new set with all the elements.

Type Parameters:
T - the type of the elements. Also used to allocate the set.
Parameters:
elements - to put in the set.
Returns:
new allocated set.

listWith

public static <T> java.util.List<T> listWith(T... elements)
Create a new list with all the elements.

Type Parameters:
T - the type of the elements. Also used to allocate the list.
Parameters:
elements - to put in the list.
Returns:
new allocated list.


Copyright © 2005-2009 Openmind. All Rights Reserved.