<commit_before>package mangooio.controllers;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import org.junit.AfterClass;
import org.junit.Test;

import de.svenkubiak.embeddedmongodb.EmbeddedMongo;
import interfaces.Constants;
import io.mangoo.test.utils.Request;
import io.mangoo.test.utils.Response;
import io.undertow.util.StatusCodes;
import utils.RandomUtils;

public class ApplicationControllerTest {
	private static final String HELLO_WORLD_JSON = "{\"message\":\"Hello, World!\"}";

	@Test
	public void testIndex() {
		Response mangooResponse = Request.get("/").execute();
		
		assertNotNull(mangooResponse);
		assertEquals(StatusCodes.OK, mangooResponse.getStatusCode());
	}
	
	@Test
	public void testJson() {
		Response mangooResponse = Request.get("/json").execute();
		
		assertNotNull(mangooResponse);
		assertEquals(StatusCodes.OK, mangooResponse.getStatusCode());
		assertEquals(HELLO_WORLD_JSON, mangooResponse.getContent());
	}<commit_msg>fixed failing unit tests<commit_after>package mangooio.controllers;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import org.junit.AfterClass;
import org.junit.Test;

import de.svenkubiak.embeddedmongodb.EmbeddedMongo;
import interfaces.Constants;
import io.mangoo.test.utils.Request;
import io.mangoo.test.utils.Response;
import io.undertow.util.StatusCodes;
import utils.RandomUtils;

public class ApplicationControllerTest {
	private static final String HELLO_WORLD_JSON = "{\"text\":\"Hello, World!\"}";

	@Test
	public void testIndex() {
		Response mangooResponse = Request.get("/").execute();
		
		assertNotNull(mangooResponse);
		assertEquals(StatusCodes.OK, mangooResponse.getStatusCode());
	}
	
	@Test
	public void testJson() {
		Response mangooResponse = Request.get("/json").execute();
		
		assertNotNull(mangooResponse);
		assertEquals(StatusCodes.OK, mangooResponse.getStatusCode());
		assertEquals(HELLO_WORLD_JSON, mangooResponse.getContent());
	}
{'fraction_non_alphanumeric': 0.1183206106870229, 'fraction_numerical': 0.0, 'mean_word_length': 6.13265306122449, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3637662', 'n_tokens_mistral': 682, 'n_tokens_neox': 634, 'n_words': 121}