/*
 * (C) Copyright 2018 Boni Garcia (http://bonigarcia.github.io/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package io.github.bonigarcia.wdm.test;

import static org.junit.Assert.assertTrue;

import java.io.File;

import org.junit.Test;

import io.github.bonigarcia.wdm.WebDriverManager;

/**
 * Using different properties.
 *
 * @author Boni Garcia (boni.gg@gmail.com)
 * @since 2.1.1
 */
public class PropertiesTest {

    @Test
    public void testCustomProperties() {
        WebDriverManager chromedriver = WebDriverManager.chromedriver();
        chromedriver.config().setProperties("wdm-test.properties");
        chromedriver.setup();
        String binaryPath = chromedriver.getBinaryPath();
        File binary = new File(binaryPath);
        assertTrue(binary.exists());
    }

    @Test
    public void testEmptyProperties() {
        WebDriverManager.chromedriver().properties("").setup();
    }

}

/*
 * (C) Copyright 2018 Boni Garcia (http://bonigarcia.github.io/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package io.github.bonigarcia.wdm.test;

import static org.junit.Assert.assertTrue;

import java.io.File;

import org.junit.Test;

import io.github.bonigarcia.wdm.WebDriverManager;

/**
 * Using different properties.
 *
 * @author Boni Garcia (boni.gg@gmail.com)
 * @since 2.1.1
 */
public class PropertiesTest {

    @Test
    public void testCustomProperties() {
        WebDriverManager chromedriver = WebDriverManager.chromedriver();
        chromedriver.config().setProperties("wdm-test.properties");
        chromedriver.setup();
        String binaryPath = chromedriver.getBinaryPath();
        File binary = new File(binaryPath);
        assertTrue(binary.exists());
    }

    @Test
    public void testEmptyProperties() {
        WebDriverManager.chromedriver().properties("").setup();
        assertTrue(true);
    }

}

Include assert in properties test