@@ -0,0 +1,1845 @@
+/*%0A * This file is part of LibrePlan%0A *%0A * Copyright (C) 2013 St. Antoniusziekenhuis%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero 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 * This program 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 Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage importers;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.IOException;%0Aimport java.util.Properties;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.libreplan.importers.TimSoapClient;%0A%0A/**%0A * Test for %7B@link TimSoapClient%7D%0A *%0A * @author Miciele Ghiorghis %3Cm.ghiorghis@antoniusziekenhuis.nl%3E%0A */%0Apublic class TimSoapClientTest %7B%0A%0A    private Properties properties = null;%0A%0A    @Before%0A    public void loadProperties() throws FileNotFoundException, IOException %7B%0A        String filename = System.getProperty(%22user.dir%22)%0A                + %22/../scripts/tim-connector/tim-conn.properties%22;%0A        properties = new Properties();%0A        properties.load(new FileInputStream(filename));%0A    %7D%0A%0A    @Test%0A    public void testAuthorization() %7B%0A        boolean result = TimSoapClient.checkAuthorization(%0A                properties.getProperty(%22url%22),%0A                properties.getProperty(%22username%22),%0A                properties.getProperty(%22password%22));%0A        assertTrue(result);%0A    %7D%0A%0A%7D%0A

Test for TimSoapClient