test_class.declarator: facesContext = null
test_class.modifier: @Mocked
      private
test_class.original_string: @Mocked
      private FacesContext facesContext = null;
test_class.type: FacesContext
test_class.var_name: facesContext
test_class.file: framework/frontend/src/test/java/org/koenighotze/jee7hotel/framework/frontend/component/BootstrappedMessagesTest.java
test_class.identifier: BootstrappedMessagesTest
test_case.body: @Test
      public void the_message_list_contains_all_global_messages() {
          final FacesMessage message = new FacesMessage(SEVERITY_INFO, "", "");
  
          prepareExpectedMessages(singletonList(message));
  
          List<FacesMessage> facesMessages = new BootstrappedMessages().getFacesMessages();
          assertThat(facesMessages).isEqualTo(singletonList(message));
      }
test_case.class_method_signature: BootstrappedMessagesTest.the_message_list_contains_all_global_messages()
test_case.full_signature: @Test public void the_message_list_contains_all_global_messages()
test_case.identifier: the_message_list_contains_all_global_messages
test_case.invocations: prepareExpectedMessages singletonList getFacesMessages isEqualTo assertThat singletonList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void the_message_list_contains_all_global_messages()
focal_class.file: framework/frontend/src/main/java/org/koenighotze/jee7hotel/framework/frontend/component/BootstrappedMessages.java
focal_class.identifier: BootstrappedMessages
focal_class.class_method_signature: BootstrappedMessages.getFacesMessages()
focal_class.full_signature: public List<FacesMessage> getFacesMessages()
focal_class.identifier: getFacesMessages
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<FacesMessage>
focal_class.signature: List<FacesMessage> getFacesMessages()
focal_class.superclass: extends UINamingContainer
focal_method.body: public List<FacesMessage> getFacesMessages() {
          List<FacesMessage> messageList = new ArrayList<>();
  
          Iterator<FacesMessage> messageItr = getFacesContext().getMessages(null);
          while (messageItr.hasNext()) {
              FacesMessage message = messageItr.next();
              messageList.add(message);
              messageItr.remove();
          }
  
          return messageList;
      }
focal_method.class_method_signature: BootstrappedMessages.getFacesMessages()
focal_method.full_signature: public List<FacesMessage> getFacesMessages()
focal_method.identifier: getFacesMessages
focal_method.invocations: getMessages getFacesContext hasNext next add remove
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<FacesMessage>
focal_method.signature: List<FacesMessage> getFacesMessages()