You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by James Mao <ja...@iona.com> on 2007/09/24 03:55:29 UTC

Re: svn commit: r578093 - in /incubator/cxf/trunk/tools: common/src/main/java/org/apache/cxf/tools/common/ common/src/main/java/org/apache/cxf/tools/util/ common/src/test/java/org/apache/cxf/tools/util/ common/src/test/java/org/apache/cxf/tools/util/resour...

> <raise exceptionName="eyebrow"/>
>
> I think readability suffers when formatting is placed in the message
> string (I think the trailing space above, after "equal", is to make the
> subsequent error message simpler to program, no?)  The trailing space
> looks like a bug to the reader of the source file raising the error, and
> it looks like the spaces were not properly inserted in to the reader of
> the source file processing the exception.  Perhaps in the future we can
> create or find a utility function that would eliminate the need to add
> trailing spaces to exception messages and at the same time make printing
> of the subsequent error message not so cumbersome.
>
>
>   


I think junit will format the error message, and add the '[]' to show 
the difference between the expected and the source, e.g
expected = "A";
source = "B";

The error message will be "expected [A] but was [B]"

Should be easy to identify the error point.


Thanks for the rest, seems need a grammar check now ;)


James


Re: svn commit: r578093 - in /incubator/cxf/trunk/tools: common/src/main/java/org/apache/cxf/tools/common/ common/src/main/java/org/apache/cxf/tools/util/ common/src/test/java/org/apache/cxf/tools/util/ common/src/test/java/org/apache/cxf/tools/util/resour...

Posted by Glen Mazza <gl...@verizon.net>.
Am Montag, den 24.09.2007, 09:55 +0800 schrieb James Mao:

> 
> Thanks for the rest, seems need a grammar check now ;)
> 
> 

I know!  We're all waiting for you to create bGrammar now ;-)

Glen


> James
>