From: Mathieu Desnoyers Date: Thu, 22 Oct 2015 20:51:49 +0000 (-0400) Subject: Remove stale tests/java-jul test X-Git-Tag: v2.7.1~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5eb846035d7dff4f3e494b32e3f1731596801c3b;p=lttng-ust.git Remove stale tests/java-jul test This test has been superseded by lttng-tools tests and https://github.com/lttng/lttng-ust-java-tests . This test was not in configure.ac nor had any automake Makefile.am anyway. Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/java-jul/JULTest.java b/tests/java-jul/JULTest.java deleted file mode 100644 index bc8f65a0..00000000 --- a/tests/java-jul/JULTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2013 - David Goulet - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -import java.io.IOException; -import java.util.concurrent.Semaphore; -import java.util.logging.LogManager; - -import org.lttng.ust.jul.*; - -public class JULTest { - private final static int NUM_TESTS = 5; - private static int testCount = 1; - - /* Singleton agent object. */ - private static LTTngAgent agent; - private static LTTngLogHandler handler; - private static LTTngTCPSessiondClient client; - - private static Semaphore sem; - - private static void ok(String desc) { - System.out.println("ok " + testCount + " - " + desc); - testCount++; - } - - public static void go() throws IOException { - client = new LTTngTCPSessiondClient("127.0.0.1", sem); - assert client != null; - ok("TCP client is valid"); - client.destroy(); - ok("TCP client destroyed"); - - agent = LTTngAgent.getLTTngAgent(); - assert agent != null; - ok("LTTngAgent is valid"); - agent.dispose(); - ok("LTTngAgent disposed"); - } - - public static void main(String args[]) throws Exception { - System.out.println("1.." + NUM_TESTS); - go(); - } -}