Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JUnit Console-Output
JUnit Console-Output [message #68182] Thu, 26 June 2003 15:36 Go to next message
Michael Taege is currently offline Michael TaegeFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

if I get an AssertionFailedError during a JUnit test I get the following
output in the console:

testEntityGetAspectString(): getAspectString: expected:<User....> but
was:<...>

caused by the the fallowing assertion

assertEquals("getAspectString: ", "User.UserGroup",
group.getAspectString());

Why are the Strings cropped? Is this an issue of Eclipse or JUnit?

Thanks for any suggestions to solve this problem.

Michael Taege
Re: JUnit Console-Output [message #68392 is a reply to message #68182] Thu, 26 June 2003 21:38 Go to previous message
Eclipse UserFriend
Originally posted by: dcorbin.imperitek.com

Michael Taege wrote:
> Hello,
>
> if I get an AssertionFailedError during a JUnit test I get the following
> output in the console:
>
> testEntityGetAspectString(): getAspectString: expected:<User....>
> but was:<...>
>
> caused by the the fallowing assertion
>
> assertEquals("getAspectString: ", "User.UserGroup",
> group.getAspectString());
>
> Why are the Strings cropped? Is this an issue of Eclipse or JUnit?
>
> Thanks for any suggestions to solve this problem.
>
> Michael Taege


This is JUnit. I think it's done that way because the strings might be
many Kbytes long, so they just show you the difference. Some vague
memory tells me this is controlable throught a System setting, but I
could be wrong.

David
Previous Topic:[ANN] RMI plugin new version 1.5.0 (RC1)
Next Topic:Running Ant
Goto Forum:
  


Current Time: Sun Oct 06 14:15:46 GMT 2024

Powered by FUDForum. Page generated in 0.03546 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top