Example #1
0
 FileForJUnitOutputTests* file(const char* filename)
 {
     for (FileForJUnitOutputTests* current = firstFile_; current != NULL; current = current->nextFile())
         if (current->name() == filename)
             return current;
     return NULL;
 }
Example #2
0
 ~FileSystemForJUnitTestOutputTests()
 {
     while (firstFile_) {
         FileForJUnitOutputTests* fileToBeDeleted = firstFile_;
         firstFile_ = firstFile_->nextFile();
         delete fileToBeDeleted;
     }
 }
Example #3
0
 void clear(void)
 {
     while (firstFile_) {
         FileForJUnitOutputTests* fileToBeDeleted = firstFile_;
         firstFile_ = firstFile_->nextFile();
         delete fileToBeDeleted;
     }
 }
Example #4
0
 void closeFile()
 {
     currentOpenFile_->close();
     currentOpenFile_ = 0;
 }
Example #5
0
 void writeToFile(const SimpleString& buffer)
 {
     currentOpenFile_->write(buffer);
 }
Example #6
0
 int amountOfFiles() {
     int totalAmountOfFiles = 0;
     for (FileForJUnitOutputTests* current = firstFile_; current != NULL; current = current->nextFile())
         totalAmountOfFiles++;
     return totalAmountOfFiles;
 }