// Path: latex-renderer/src/test/java/de/vsfexperts/latex/renderer/ClasspathUtils.java
// public static String getContent(final String classpathLocation) throws IOException {
// 	return IOUtils.toString(new ClassPathResource(classpathLocation).getInputStream(), Charset.forName("UTF-8"));
// }


import static de.vsfexperts.latex.renderer.ClasspathUtils.getContent;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assume.assumeThat;
import static org.springframework.http.HttpStatus.ACCEPTED;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.UUID;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.RestTemplate;
package de.vsfexperts.latex.renderer;




public class ApiIT {

	private static final Logger LOG = LoggerFactory.getLogger(ApiIT.class);
	private static final String TEST_DOCUMENT = "/META-INF/sample.tex";
	private static final String BASE_URL = "http://localhost:8080";
	private static final int MAX_RETRIES = 5;

	private RestTemplate rest;

	@Before
	public void setUp() {
		final HttpMessageConverter<String> messageConverter = new StringHttpMessageConverter(Charset.forName("UTF-8"));

		rest = new RestTemplate();
		rest.getMessageConverters().add(0, messageConverter);
	}

	@Test
	public void testDocumentSubmission() throws IOException {
// Path: latex-renderer/src/test/java/de/vsfexperts/latex/renderer/ClasspathUtils.java
// public static String getContent(final String classpathLocation) throws IOException {
// 	return IOUtils.toString(new ClassPathResource(classpathLocation).getInputStream(), Charset.forName("UTF-8"));
// }


// Path: latex-docker/src/test/java/de/vsfexperts/latex/renderer/ApiIT.java
import static de.vsfexperts.latex.renderer.ClasspathUtils.getContent;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assume.assumeThat;
import static org.springframework.http.HttpStatus.ACCEPTED;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.UUID;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.RestTemplate;

package de.vsfexperts.latex.renderer;




public class ApiIT {

	private static final Logger LOG = LoggerFactory.getLogger(ApiIT.class);
	private static final String TEST_DOCUMENT = "/META-INF/sample.tex";
	private static final String BASE_URL = "http://localhost:8080";
	private static final int MAX_RETRIES = 5;

	private RestTemplate rest;

	@Before
	public void setUp() {
		final HttpMessageConverter<String> messageConverter = new StringHttpMessageConverter(Charset.forName("UTF-8"));

		rest = new RestTemplate();
		rest.getMessageConverters().add(0, messageConverter);
	}

	@Test
	public void testDocumentSubmission() throws IOException {
		final String latexDocument = getContent(TEST_DOCUMENT);