Assert.assertFalse(aScen.isCheckedout(),
"Scenario is still marked as checked out after checkin.");
// Check that new document versions are created for checked in documents
- boolean caseFound = false;
for (StepDTO step : stepsToCheckin) {
for (DocumentDTO docDTO : step.getDocs()) {
if ((docDTO.getId() != 0) && (docDTO.getId() != null)) {
+ using.getTitle() + " ("
+ using.getType().getName()
+ ") must become outdated.");
- caseFound = true;
}
}
} else {
+ docDTO.getFiles().get(0).getPath()
+ " attached to the document "
+ docDTO.getTitle() + "#" + docDTO.getId() + " doesn't exist");
+ LOG.debug("Source format: " + curDoc.getFormat() + ", new format: " + newFormat);
}
}
}
}
- Assert.assertTrue(caseFound,
- "Not checked in dependent documents must become outdated.");
// ///////////////////////////////////////////////////////////
// Call checkin method for a not existing id.
doc.getId(), doc.getTitle());
for (FileDTO file : doc.getFiles()) {
if (file.getPath().endsWith(format)
- || (file.getPath().endsWith("py") && format
- .equals("brep"))) {
+ || (file.getPath().endsWith("py") && (format
+ .equals("brep") || format
+ .equals("med")))) {
// Create a file in the download directory
docToCheckin.addFile(createDownloadedFile(userId,
doc.getTitle() + "_result", format));
// <source-file>.brep
// <attached-file>.med
dprop.setName("document" + i++).setType(dtype);
- if (step.getNumber() > 3) {
+/* if (step.getNumber() > 3) {
dprop.setFormat("med");
} else {
- dprop.setFormat("py");
- }
+*/ dprop.setFormat("py");
+// }
dprop.setLocalPath(dprop.getName() + "." + dprop.getFormat());
Publication pub = createDoc(aScenario, aScStep, dprop, "med",
false);