org.nuiton.jredmine.model.io.xpp3
Class RedmineXpp3HelperTest.TestAction

java.lang.Object
  extended by org.nuiton.jredmine.model.io.xpp3.RedmineXpp3HelperTest.TestAction
Enclosing class:
RedmineXpp3HelperTest

public abstract static class RedmineXpp3HelperTest.TestAction
extends java.lang.Object

A little action wrapper to simplify this test class :)


Constructor Summary
RedmineXpp3HelperTest.TestAction()
           
 
Method Summary
 void run(java.lang.String name, java.util.List<?>... expected)
           
protected abstract
<T> void
runForType(java.io.File rootDir, java.lang.Class<T> type, java.util.List<?> expected)
          Implements the logic of action for the given type and the expected datas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedmineXpp3HelperTest.TestAction

public RedmineXpp3HelperTest.TestAction()
Method Detail

runForType

protected abstract <T> void runForType(java.io.File rootDir,
                                       java.lang.Class<T> type,
                                       java.util.List<?> expected)
                            throws java.lang.Exception
Implements the logic of action for the given type and the expected datas.

Type Parameters:
T - the type of data used
Parameters:
rootDir - the rootdir file of the local cache
type - the type of data used
expected - the list of expected datas
Throws:
java.lang.Exception - if any pb

run

public void run(java.lang.String name,
                java.util.List<?>... expected)
         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009 CodeLutin. All Rights Reserved.