Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367318 - Test fixture Message class should not accept empty string in the ctor
Summary: Test fixture Message class should not accept empty string in the ctor
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5 M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-21 08:43 EST by Ivan Furnadjiev CLA
Modified: 2011-12-22 12:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Furnadjiev CLA 2011-12-21 08:43:53 EST
Currently the test fixture Message class accepts empty string ( or string with blanks only ) in his ctor. In this case, a default message is created with a requestCounter = 0 and no operations. This is wrong and we should throw an exception for invalid JSON in this case.
Comment 1 Ralf Sternberg CLA 2011-12-22 12:39:50 EST
Fixed by removing this obsolete workaround from Message class and adjusted all tests that relied on it.
The Message c'tor now throws an IAE when called with an empty string or whitespace.
Changes are in CVS HEAD.