// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.search.query.gui; import com.yahoo.application.Networking; import com.yahoo.application.container.JDisc; import com.yahoo.application.container.handler.Request; import com.yahoo.application.container.handler.Response; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.IOException; /** * @author Henrik Høiness */ public class GUIHandlerTest { private JDisc container; @Before public void startContainer() { container = JDisc.fromServicesXml(servicesXml(), Networking.enable); } @After public void stopContainer() { /* try { Thread.sleep(100_000); } catch (InterruptedException e) { e.printStackTrace(); }*/ container.close(); } @Test public void testRequest() throws Exception { assertResponse("/querybuilder/", "