@@ -0,0 +1,1693 @@
+/*%0A * (C) Copyright 2016 Boni Garcia (http://bonigarcia.github.io/)%0A *%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the GNU Lesser General Public License%0A * (LGPL) version 2.1 which accompanies this distribution, and is available at%0A * http://www.gnu.org/licenses/lgpl-2.1.html%0A *%0A * This library 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 GNU%0A * Lesser General Public License for more details.%0A *%0A */%0Apackage io.github.bonigarcia.wdm.test;%0A%0Aimport java.net.URL;%0Aimport java.util.List;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport io.github.bonigarcia.wdm.Architecture;%0Aimport io.github.bonigarcia.wdm.BrowserManager;%0Aimport io.github.bonigarcia.wdm.PhantomJsDriverManager;%0A%0A/**%0A * Filter test.%0A *%0A * @author Boni Garcia (boni.gg@gmail.com)%0A * @since 1.3.2%0A */%0Apublic class FilterTest %7B%0A%0A%09protected static final Logger log = LoggerFactory%0A%09%09%09.getLogger(FilterTest.class);%0A%0A%09@Test%0A%09public void testFilterPhantomJs() throws Exception %7B%0A%09%09BrowserManager phatomJsManager = PhantomJsDriverManager.getInstance();%0A%09%09List%3CURL%3E driversUrls = phatomJsManager.getDrivers();%0A%09%09String phantomJsBinaryName = %22phantomjs%22;%0A%09%09List%3CURL%3E candidateUrls = phatomJsManager.getLatest(driversUrls,%0A%09%09%09%09phantomJsBinaryName);%0A%09%09List%3CURL%3E filteredUrls = phatomJsManager.filter(candidateUrls,%0A%09%09%09%09Architecture.x64);%0A%0A%09%09log.info(%22Filtered URLS for %7B%7D : %7B%7D%22, phantomJsBinaryName,%0A%09%09%09%09filteredUrls);%0A%0A%09%09Assert.assertTrue(!filteredUrls.isEmpty());%0A%09%7D%0A%0A%7D%0A

Add new test: filter URL feature