@@ -0,0 +1,1153 @@
+package com.krux.stdlib.statsd;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport joptsimple.OptionSet;%0Aimport java.net.URL;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport com.krux.stdlib.KruxStdLib;%0Aimport com.krux.stdlib.status.StatusHandler;%0Aimport com.krux.stdlib.statsd.KruxStatsdClient;%0A%0Aimport com.krux.stdlib.utils.DummyStatusHandler;%0A%0Apublic class KruxStatsdClientTest %7B%0A    private KruxStdLib stdlib;%0A    private StatusHandler handler = new DummyStatusHandler();%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        URL testPropertyFileURL = Thread.currentThread().getContextClassLoader().getResource(%22test_properties.properties%22);%0A%0A        // initialize%0A        stdlib = new KruxStdLib();%0A        KruxStdLib.ArgBuilder builder = new KruxStdLib.ArgBuilder().%0A            withPropertyFileName(testPropertyFileURL.getPath()).%0A            withEnableStatsd(true);%0A%0A        stdlib.initialize(stdlib.parse(builder), handler);%0A    %7D%0A%0A    @Test%0A    public void testInit() throws Exception %7B%0A        StatsdClient ksc = stdlib.getStatsdClient();%0A        assertNotNull(ksc);%0A    %7D%0A%7D%0A

Add a test