Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367318

Summary: Test fixture Message class should not accept empty string in the ctor
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: All   
OS: All   
Whiteboard:

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.