Package name.abuchen.portfolio.online

Source Code of name.abuchen.portfolio.online.WebLocationTest

package name.abuchen.portfolio.online;

import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertThat;
import name.abuchen.portfolio.model.Security;
import name.abuchen.portfolio.online.impl.YahooFinanceQuoteFeed;

import org.junit.Test;

@SuppressWarnings("nls")
public class WebLocationTest
{

    @Test
    public void testURLCreation()
    {
        WebLocation page = new WebLocation("", "http://-{tickerSymbol}-{isin}-");
        Security security = new Security("Daimler", "DE0007100000", "DAI.DE", YahooFinanceQuoteFeed.ID);

        assertThat(page.constructURL(security), equalTo("http://-DAI.DE-DE0007100000-"));
    }
}
TOP

Related Classes of name.abuchen.portfolio.online.WebLocationTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.