@@ -0,0 +1,1054 @@
+package org.springframework.site.test;%0A%0Aimport org.springframework.context.annotation.Primary;%0Aimport org.springframework.site.services.GitHubService;%0Aimport org.springframework.stereotype.Service;%0Aimport org.springframework.web.client.RestClientException;%0A%0A@Service%0A@Primary%0A@SuppressWarnings(%22unused%22)%0Apublic class FakeGithubService extends GitHubService %7B%0A%0A%09public FakeGithubService() %7B%0A%09%09super(null);%0A%09%7D%0A%0A%09@Override%0A%09public String renderToHtml(String markdownSource) %7B%0A%09%09return markdownSource;%0A%09%7D%0A%0A%09@Override%0A%09public %3CT%3E T postForObject(String path, Object request, Class%3CT%3E responseType, Object... uriVariables) %7B%0A%09%09try %7B%0A%09%09%09return responseType.newInstance();%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public %3CT%3E T getForObject(String path, Class%3CT%3E responseType, Object... uriVariables) throws RestClientException %7B%0A%09%09try %7B%0A%09%09%09return responseType.newInstance();%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public String getRawFileAsHtml(String path) %7B%0A%09%09return %22HTML%22;%0A%09%7D%0A%7D%0A

Add a fake github service to avoid network calls in our integration tests