Package org.faktorips.runtime.test
Class IpsTest2
- java.lang.Object
-
- org.faktorips.runtime.test.IpsTest2
-
- Direct Known Subclasses:
IpsTestCaseBase,IpsTestSuite
public abstract class IpsTest2 extends java.lang.Object- Author:
- Jan Ortmann
-
-
Constructor Summary
Constructors Constructor Description IpsTest2(java.lang.String qName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intcountTestCases()Returns the number of test cases in this test.java.lang.StringgetFullPath()Returns the test's file name including the path.java.lang.StringgetName()Returns the test's unqualified name.java.lang.StringgetQualifiedName()Returns the test's qualified name.IRuntimeRepositorygetRepository()Returns the runtime repository for searching and creating object during the test run.protected abstract voidrun(IpsTestResult result)voidsetFullPath(java.lang.String fileName)Sets the test's file name including the path.voidsetRepository(IRuntimeRepository runtimeRepository)Sets the runtime repository.
-
-
-
Method Detail
-
getQualifiedName
public java.lang.String getQualifiedName()
Returns the test's qualified name.
-
getFullPath
public java.lang.String getFullPath()
Returns the test's file name including the path.
-
setFullPath
public void setFullPath(java.lang.String fileName)
Sets the test's file name including the path.
-
getName
public java.lang.String getName()
Returns the test's unqualified name.
-
getRepository
public IRuntimeRepository getRepository()
Returns the runtime repository for searching and creating object during the test run.
-
setRepository
public void setRepository(IRuntimeRepository runtimeRepository)
Sets the runtime repository.
-
countTestCases
public abstract int countTestCases()
Returns the number of test cases in this test. If this is a test the method returns 1, if this is a suite the number of test cases in the suite itself and all suites that are contained in this one.
-
run
protected abstract void run(IpsTestResult result)
-
-