> Hello,
>
> For unit test, sometime, space is irrelevant, for example, in the case
> of phone profiles in xml format, but the one extra space can cause the
> test fail, and sometime is extremely hard to find where it is. I am
> wondering if Junit provide an API that can ignore space?
>
> Thanks,
> Huijun
>
>
>If you run your tests from Eclipse, it displays really nice
side-by-side comparison for each equals that failed. Just > click on a
failing assertion.
> If the spaces really are irrelevant you may want to trim them before
testing. I found however that comparing the exact > output to the
expected files without any preprocessing lets me find the problems
faster than comparing preprocessed > output, or comparing files lines by
line.
Thanks. I was not using Eclipse, and I will move to it.
Huijun
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev