com.evolveum.midpoint.test.util
Class TestUtil

java.lang.Object
  extended by com.evolveum.midpoint.test.util.TestUtil

public class TestUtil
extends java.lang.Object

Unit test utility. The utility is able to locate and unmarshall sample XML objects. It is expected that this will be used by other unit tests to reuse the same XML objects instead of each test creating its own set of testing objects.

Since:
1.0.0
Version:
$Revision$ $Date$
Author:
$author$

Field Summary
static java.lang.String code_id
           
static javax.xml.bind.JAXBContext ctx
           
 
Constructor Summary
TestUtil()
           
 
Method Summary
static ExtensibleObjectType getSampleObject(SampleObjects object)
          Gets an object from the sample object store and unmarshall it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

ctx

public static final javax.xml.bind.JAXBContext ctx
Constructor Detail

TestUtil

public TestUtil()
Method Detail

getSampleObject

public static ExtensibleObjectType getSampleObject(SampleObjects object)
Gets an object from the sample object store and unmarshall it. The sample objects are stored in XML form in /repository/%s.xml files. The objects are referenceable by SampleObjects enum.

Parameters:
object -
Returns:
the sample object instance or assert null error if the object is not available


Copyright © 2011 evolveum. All Rights Reserved.