Hello again,
Something appears to be going wrong with converting the expected results
to Strings. For example, you get the failure:
<quote>
testDoTranslationConcatenateFileListWorker(net.sf.taverna.t2.activities.localworker.translator.LocalworkerTranslatorTest)
Time elapsed: 0.39 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<...der the apple boughs[
About the lilting house and happy as the grass was green,
The night above the dingle starry,
Time let me hail and climb
Golden in the heydays of his eyes,
And honoured among wagons I was prince of the apple towns
And once below a time I lordly had the trees and leaves
Trail with daisies and barley
Down the rivers of the windfall light.]
> but was:<...der the apple boughs[
About the lilting house and happy as the grass was green,
The night above the dingle starry,
Time let me hail and climb
Golden in the heydays of his eyes,
And honoured among wagons I was prince of the apple towns
And once below a time I lordly had the trees and leaves
Trail with daisies and barley
Down the rivers of the windfall light.
]
</quote>
but looking at the expected result (in
/net.sf.taverna.t2.translators.localworker-translator/src/test/resources/concatenateTestOut.txt)
it _is_ meant to have a newline at the end. So the output you get from
the worker is correct. It is the
IOUtils.toString(LocalworkerTranslator.class.getResourceAsStream("/concatenateTestOut.txt"))
that seems to be wrong.
Can you try just printing that String out?
Alan
------------------------------------------------------------------------------
_______________________________________________
taverna-hackers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/taverna-hackers
Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html
FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq