public void shouldFindApplication()

in component-test/src/main/java/org/apache/fineract/cn/provisioner/application/ApplicationsApiDocumentation.java [103:124]


  public void shouldFindApplication ( ) throws Exception {
    Application application = new Application();
    application.setName("comp-test-app");
    application.setDescription("Component Test Application");
    application.setHomepage("http://www.component.test");
    application.setVendor("Component Test");

    provisioner.createApplication(application);

    this.mockMvc.perform(get("/applications/" + application.getName())
            .accept(MediaType.APPLICATION_JSON_VALUE)
            .contentType(MediaType.APPLICATION_JSON_VALUE))
            .andExpect(status().isOk())
            .andDo(document("document-find-application", preprocessResponse(prettyPrint()),
                    responseFields(
                            fieldWithPath("name").description("Application's name"),
                            fieldWithPath("description").description("Application's description"),
                            fieldWithPath("vendor").description("Application's vendor"),
                            fieldWithPath("homepage").description("Application's homepage")
                    )
            ));
  }