39 std::vector<mitk::IFileReader *> readers =
43 for (std::vector<mitk::IFileReader *>::const_iterator iter = readers.begin(), end = readers.end(); iter != end;
46 std::string testName =
"test1";
51 "Testing confidence level with invalid input file name!");
55 std::string filePath = argv[1];
58 "Testing confidence level with valid input file name!");
59 std::vector<mitk::BaseData::Pointer> data = reader->
Read();
66 resultPS->GetTimeSteps() == 14,
67 "Testing output time step generation!");
69 resultPS->GetPointSet(resultPS->GetTimeSteps() - 1)->GetNumberOfPoints() == 0,
70 "Testing output time step generation with empty time step!");
virtual ConfidenceLevel GetConfidenceLevel() const =0
The confidence level of the reader or writer implementation.
std::vector< mitk::IFileReader * > GetReaders(const MimeType &mimeType, us::ModuleContext *context=us::GetModuleContext())
static MimeType GetMimeTypeForFile(const std::string &path, us::ModuleContext *context=us::GetModuleContext())
Get the highest ranked mime-type for the given file name.
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
virtual std::vector< itk::SmartPointer< BaseData > > Read()=0
Reads the specified file or input stream and returns its contents.
virtual void SetInput(const std::string &location)=0
Set the input location.
Data structure which stores a set of points. Superclass of mitk::Mesh.
An object of this class represents an exception of MITK. Please don't instantiate exceptions manually...
int mitkPointSetReaderTest(int argc, char *argv[])
The common interface for all MITK file readers.