@@ -0,0 +1,1685 @@
+/*%0A * Copyright 2012-2014 TORCH GmbH%0A *%0A * This file is part of Graylog2.%0A *%0A * Graylog2 is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * Graylog2 is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A *%0A * You should have received a copy of the GNU General Public License%0A * along with Graylog2.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage org.graylog2.gelfclient;%0A%0Aimport org.graylog2.gelfclient.transport.GelfTcpTransport;%0Aimport org.graylog2.gelfclient.transport.GelfTransport;%0Aimport org.graylog2.gelfclient.transport.GelfUdpTransport;%0Aimport org.testng.annotations.Test;%0A%0Aimport static org.testng.AssertJUnit.assertEquals;%0A%0Apublic class GelfTransportsTest %7B%0A    @Test%0A    public void testCreateUdp() throws Exception %7B%0A        GelfConfiguration config = new GelfConfiguration();%0A%0A        config.setTransport(GelfTransports.UDP);%0A%0A        GelfTransport transportUdp = GelfTransports.create(config);%0A%0A        assertEquals(GelfUdpTransport.class, transportUdp.getClass());%0A    %7D%0A%0A    @Test%0A    public void testCreateTcp() throws Exception %7B%0A        GelfConfiguration config = new GelfConfiguration();%0A%0A        config.setTransport(GelfTransports.TCP);%0A%0A        GelfTransport transportTcp = GelfTransports.create(config);%0A%0A        assertEquals(GelfTcpTransport.class, transportTcp.getClass());%0A    %7D%0A%7D

Add tests for GelfTransports.