1398: Ref Data: convert error messages to use Message

Test Case #:1398


Test Case Name: Ref Data: convert error messages to use Message

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:30.01.2017

Short description

  • All English strings in the service use the Message class
  • i18n keys use convention laid out in the style guide
  • Error handling should use the guidelines in the ERROR HANDLING doc. throw new ValidationMessageException

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

 

 

Step

Action

Expected system response

Comment

1

  Delete facility which do not exist.     

                - DELETE /ap/facilities/id                     


                                                            Proper error message is displayed.                                                                

                                                 

2

Return all facilities when wrong supervisoryNodeId is provided.
  • GET /api/facilities/supplying

 

Proper error message is displayed. 

 

3

  

 

4

  

 

5

   

6

  

 

7

  

 

8

                                                 

 

 

 

Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software