I’m writing some unit-tests in which input is Soap request. My request is minimum 80 lines long, when I copy that into Eclipse for unit-test, it doesn’t append + " in each new line. (I’d worked in IDEA before and that use to nicely format it and I just have to take care of escaping double quotes). Is there a better way of doing this, than manually appending + and then enclosing each line in double-quotes.
I think using File I/O is too much for unit-tests.
When you paste the code into a string in Eclipse you can automatically insert special characters, see
Window Preferences->Java->Editor->Typing->Escape text when pasting into a string literalPasting
into
gives