<commit_before>package com.beta.api.v1;

public class NewBetaUserAcceptanceTest {
}<commit_msg>Basic tests for serialization of Routes<commit_after>package com.beta.api.v1;

import com.beta.Main;
import com.google.common.base.Charsets;
import com.google.common.io.CharStreams;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import io.dropwizard.testing.junit.DropwizardAppRule;
import org.junit.ClassRule;
import org.junit.Test;

import java.io.IOException;
import java.io.InputStreamReader;

import static io.dropwizard.testing.FixtureHelpers.fixture;


public class NewBetaUserAcceptanceTest {
    @ClassRule
    public static final DropwizardAppRule<Main.BetaConfig> RULE =
            new DropwizardAppRule<>(Main.class, "beta.yaml");

    @Test
    public void loginHandlerRedirectsAfterPost() throws IOException {
        Client client = new Client();

        ClientResponse response = client.resource(
                String.format("http://localhost:%d/api/v1/profiles/add", RULE.getLocalPort()))
                .post(ClientResponse.class, fixture("fixtures/NewBetaUser.json"));

        System.out.println(CharStreams.toString(new InputStreamReader(response.getEntityInputStream(), Charsets.UTF_8)));
    }
}
{'fraction_non_alphanumeric': 0.10943695479777954, 'fraction_numerical': 0.0031720856463124504, 'mean_word_length': 4.370212765957447, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3225947', 'n_tokens_mistral': 382, 'n_tokens_neox': 377, 'n_words': 67}