I wanted to ask if there is a way to trim String data before comparing it with the data in the table. For example, if we have
|MyCompareClass|
|getString? |
|string1 |
And the result of getString() will be "string1 ". I want the comparison to be green and not Expected "string1". I'm looking for a way to do it without modifying the MyCompareClass source code. Any ideas?
You can write a custom string compare operator class:
Then register your class with the
Fitnesseconfigure fixture: