<commit_before>//package io.github.wonderbird.aircraftnoise.recorder;
//
//import io.vertx.core.Vertx;
//import io.vertx.ext.unit.Async;
//import io.vertx.ext.unit.TestContext;
//import io.vertx.ext.unit.junit.VertxUnitRunner;
//import org.junit.After;
//import org.junit.Before;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//
//@RunWith(VertxUnitRunner.class)
//public class AppTest {
//
//    private Vertx vertx;
//
//    @Before
//    public void setUp(TestContext context) {
//        vertx = Vertx.vertx();
//        vertx.deployVerticle(App.class.getName(),
//                context.asyncAssertSuccess());
//    }
//
//    @After
//    public void tearDown(TestContext context) {
//        vertx.close(context.asyncAssertSuccess());
//    }
//
//    @Test
//    public void testMyApplication(TestContext context) {
//        final Async async = context.async();
//
//        vertx.createHttpClient().getNow(80, "localhost", "/",
//                response -> response.handler(body -> {
//                    context.assertTrue(body.toString().contains("<h1>Aircraft Noise Recorder</h1>"));
//                    async.complete();
//                }));
//    }
//}<commit_msg>Activating unit test<commit_after>package io.github.wonderbird.aircraftnoise.recorder;

import io.vertx.core.Vertx;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(VertxUnitRunner.class)
public class AppTest {

    private Vertx vertx;

    @Before
    public void setUp(TestContext context) {
        vertx = Vertx.vertx();
        vertx.deployVerticle(App.class.getName(),
                context.asyncAssertSuccess());
    }

    @After
    public void tearDown(TestContext context) {
        vertx.close(context.asyncAssertSuccess());
    }

    @Test
    public void Homepage__ShouldDisplayHeading(TestContext context) {
        final Async async = context.async();

        vertx.createHttpClient().getNow(8080, "localhost", "/",
                response -> response.handler(body -> {
                    context.assertTrue(body.toString().contains("<h1>Aircraft Noise Recorder</h1>"));
                    async.complete();
                }));
    }
}
{'fraction_non_alphanumeric': 0.15017064846416384, 'fraction_numerical': 0.004266211604095563, 'mean_word_length': 2.49478390461997, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5013508', 'n_tokens_mistral': 727, 'n_tokens_neox': 706, 'n_words': 116}