// Path: src/main/java/io/pivotal/strepsirrhini/chaosloris/web/IndexController.java
// @RestController
// public class IndexController {
// 
//     @RequestMapping(method = GET, value = "/", produces = HAL_JSON_VALUE)
//     ResponseEntity index() {
//         ResourceSupport resource = new ResourceSupport();
//         resource.add(linkTo(methodOn(IndexController.class).index()).withSelfRel());
//         resource.add(linkTo(ApplicationController.class).withRel("applications"));
//         resource.add(linkTo(ChaosController.class).withRel("chaoses"));
//         resource.add(linkTo(EventController.class).withRel("events"));
//         resource.add(linkTo(ScheduleController.class).withRel("schedules"));
// 
//         return ResponseEntity.ok(resource);
//     }
// 
// }
// 
// Path: src/test/java/io/pivotal/strepsirrhini/chaosloris/docs/DocumentationUtilities.java
// static RestDocumentationResultHandler document(Snippet... snippets) {
//     return MockMvcRestDocumentation.document("{method-name}",
//         preprocessRequest(prettyPrint()),
//         preprocessResponse(prettyPrint()),
//         snippets);
// }
// 
// Path: src/test/java/io/pivotal/strepsirrhini/chaosloris/docs/DocumentationUtilities.java
// static LinksSnippet links(LinkDescriptor... descriptors) {
//     return HypermediaDocumentation.links(
//         linkWithRel("self").ignored())
//         .and(descriptors);
// }


import io.pivotal.strepsirrhini.chaosloris.web.IndexController;
import org.cloudfoundry.client.CloudFoundryClient;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Answers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration;
import org.springframework.boot.test.autoconfigure.restdocs.AutoConfigureRestDocs;
import org.springframework.boot.test.autoconfigure.restdocs.RestDocsMockMvcConfigurationCustomizer;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer;
import org.springframework.restdocs.templates.TemplateFormats;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import static io.pivotal.strepsirrhini.chaosloris.docs.DocumentationUtilities.document;
import static io.pivotal.strepsirrhini.chaosloris.docs.DocumentationUtilities.links;
import static javax.servlet.RequestDispatcher.ERROR_MESSAGE;
import static javax.servlet.RequestDispatcher.ERROR_REQUEST_URI;
import static javax.servlet.RequestDispatcher.ERROR_STATUS_CODE;
import static org.springframework.hateoas.MediaTypes.HAL_JSON;
import static org.springframework.restdocs.hypermedia.HypermediaDocumentation.linkWithRel;
import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.get;
import static org.springframework.restdocs.payload.PayloadDocumentation.fieldWithPath;
import static org.springframework.restdocs.payload.PayloadDocumentation.responseFields;
/*
 * Copyright 2015-2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.pivotal.strepsirrhini.chaosloris.docs;



@AutoConfigureRestDocs(outputDir = "target/generated-snippets", uriScheme = "https", uriHost = "chaos-loris", uriPort = 443)
@RunWith(SpringRunner.class)
// Path: src/main/java/io/pivotal/strepsirrhini/chaosloris/web/IndexController.java
// @RestController
// public class IndexController {
// 
//     @RequestMapping(method = GET, value = "/", produces = HAL_JSON_VALUE)
//     ResponseEntity index() {
//         ResourceSupport resource = new ResourceSupport();
//         resource.add(linkTo(methodOn(IndexController.class).index()).withSelfRel());
//         resource.add(linkTo(ApplicationController.class).withRel("applications"));
//         resource.add(linkTo(ChaosController.class).withRel("chaoses"));
//         resource.add(linkTo(EventController.class).withRel("events"));
//         resource.add(linkTo(ScheduleController.class).withRel("schedules"));
// 
//         return ResponseEntity.ok(resource);
//     }
// 
// }
// 
// Path: src/test/java/io/pivotal/strepsirrhini/chaosloris/docs/DocumentationUtilities.java
// static RestDocumentationResultHandler document(Snippet... snippets) {
//     return MockMvcRestDocumentation.document("{method-name}",
//         preprocessRequest(prettyPrint()),
//         preprocessResponse(prettyPrint()),
//         snippets);
// }
// 
// Path: src/test/java/io/pivotal/strepsirrhini/chaosloris/docs/DocumentationUtilities.java
// static LinksSnippet links(LinkDescriptor... descriptors) {
//     return HypermediaDocumentation.links(
//         linkWithRel("self").ignored())
//         .and(descriptors);
// }


// Path: src/test/java/io/pivotal/strepsirrhini/chaosloris/docs/IndexDocumentation.java
import io.pivotal.strepsirrhini.chaosloris.web.IndexController;
import org.cloudfoundry.client.CloudFoundryClient;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Answers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration;
import org.springframework.boot.test.autoconfigure.restdocs.AutoConfigureRestDocs;
import org.springframework.boot.test.autoconfigure.restdocs.RestDocsMockMvcConfigurationCustomizer;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer;
import org.springframework.restdocs.templates.TemplateFormats;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import static io.pivotal.strepsirrhini.chaosloris.docs.DocumentationUtilities.document;
import static io.pivotal.strepsirrhini.chaosloris.docs.DocumentationUtilities.links;
import static javax.servlet.RequestDispatcher.ERROR_MESSAGE;
import static javax.servlet.RequestDispatcher.ERROR_REQUEST_URI;
import static javax.servlet.RequestDispatcher.ERROR_STATUS_CODE;
import static org.springframework.hateoas.MediaTypes.HAL_JSON;
import static org.springframework.restdocs.hypermedia.HypermediaDocumentation.linkWithRel;
import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.get;
import static org.springframework.restdocs.payload.PayloadDocumentation.fieldWithPath;
import static org.springframework.restdocs.payload.PayloadDocumentation.responseFields;

/*
 * Copyright 2015-2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.pivotal.strepsirrhini.chaosloris.docs;



@AutoConfigureRestDocs(outputDir = "target/generated-snippets", uriScheme = "https", uriHost = "chaos-loris", uriPort = 443)
@RunWith(SpringRunner.class)
@WebMvcTest(IndexController.class)