org.faktorips.runtime.test
Class IpsTest2

java.lang.Object
  extended by org.faktorips.runtime.test.IpsTest2
Direct Known Subclasses:
IpsTestCaseBase, IpsTestSuite

public abstract class IpsTest2
extends Object

Author:
Jan Ortmann

Constructor Summary
IpsTest2(String qName)
           
 
Method Summary
abstract  int countTestCases()
          Returns the number of test cases in this test.
 String getFullPath()
          Returns the test's file name including the path.
 String getName()
          Returns the test's unqualified name.
 String getQualifiedName()
          Returns the test's qualified name.
 IRuntimeRepository getRepository()
          Returns the runtime repository for searching and creating object during the test run.
protected abstract  void run(IpsTestResult result)
           
 void setFullPath(String fileName)
          Sets the test's file name including the path.
 void setRepository(IRuntimeRepository runtimeRepository)
          Sets the runtime repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpsTest2

public IpsTest2(String qName)
Method Detail

getQualifiedName

public String getQualifiedName()
Returns the test's qualified name.


getFullPath

public String getFullPath()
Returns the test's file name including the path.


setFullPath

public void setFullPath(String fileName)
Sets the test's file name including the path.


getName

public 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)


Copyright © 2015. All rights reserved.