I am having a look at some failing tests for CIXMLPublisherTest. This uses XMLWriter, which I haven't used before, so I'm looking for confirmation of the semantics I've guessed for #writeWith:. �� It seems that #writeWith: should not be nested. Since...
xmlWriter := XMLWriter new.
xmlWriter writeWith: [ :writer |
writer
tag: 'report'
with: [
writer tag: 'name' with: 'TestName - Report'.
xmlWriter writeWith: [ :writer2 |
writer2 tag: 'finality' with: 'succeed'��
]
]
]
...produces an error "CollectionIsEmpty: an OrderedCollection() is empty"
This pattern is the cause of 4 of the 8 tests for CIXMLPublisherTest to fail. In this case CIXMLPublisher >> publishValidationResult: does a #writeWith: then calls #publishSuccess: which does another #writeWith: .
cheers -ben