org.nuiton.jredmine
Class TestHelper
java.lang.Object
org.nuiton.jredmine.TestHelper
public abstract class TestHelper
- extends Object
- Since:
- 1.0.0
- Author:
- tchemit
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
basedir
protected static File basedir
DEFAULT_CONFIGURATION
protected static org.nuiton.io.rest.RestClientConfiguration DEFAULT_CONFIGURATION
defaultConfig
protected static Properties defaultConfig
userConfig
protected static Properties userConfig
memoryModel
protected static EnumMap<org.nuiton.jredmine.model.RedmineModelEnum,List<?>> memoryModel
TestHelper
public TestHelper()
initDefaultConfiguration
public static void initDefaultConfiguration()
throws IOException
- Throws:
IOException
getTestConfiguration
public static org.nuiton.io.rest.RestClientConfiguration getTestConfiguration()
throws IOException
- Throws:
IOException
copyConfiguration
public static void copyConfiguration(org.nuiton.io.rest.RestClientConfiguration src,
org.nuiton.io.rest.RestClientConfiguration dst)
getBasedir
public static File getBasedir()
- Returns:
- the basedir for all tests
setBasedir
public static void setBasedir(File basedir)
isVerbose
public static boolean isVerbose()
getTestDir
public static File getTestDir(String type,
String prefix)
getFile
public static File getFile(File base,
String... paths)
getRelativePath
public static String getRelativePath(File base,
File file)
getAttachments
public static List<org.nuiton.jredmine.model.Attachment> getAttachments()
getIssues
public static List<org.nuiton.jredmine.model.Issue> getIssues()
getProjects
public static List<org.nuiton.jredmine.model.Project> getProjects()
getTrackers
public static List<org.nuiton.jredmine.model.Tracker> getTrackers()
getUsers
public static List<org.nuiton.jredmine.model.User> getUsers()
getVersions
public static List<org.nuiton.jredmine.model.Version> getVersions()
getModel
public static <T> List<T> getModel(Class<T> type)
tearDownClass
public static void tearDownClass()
throws Exception
- Throws:
Exception
assertMyListEquals
public static <T> void assertMyListEquals(Class<T> type,
List<T> expecteds,
T... actuals)
throws Exception
- Throws:
Exception
assertMyEquals
public static void assertMyEquals(Class<?> type,
Object expected,
Object actual)
throws Exception
- Throws:
Exception
getMemoryModel
public static EnumMap<org.nuiton.jredmine.model.RedmineModelEnum,List<?>> getMemoryModel()
loadMemoryModel
public static void loadMemoryModel()
throws Exception
- Throws:
Exception
Copyright © 2009-2012 CodeLutin. All Rights Reserved.