Package jodd.typeconverter

Source Code of jodd.typeconverter.URLConverterTest

// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.

package jodd.typeconverter;

import jodd.typeconverter.impl.URLConverter;
import org.junit.Test;

import java.io.File;
import java.net.URL;

import static org.junit.Assert.assertNotNull;

public class URLConverterTest {

  @Test
  public void testConversion() {
    URLConverter urlConverter = new URLConverter();

    File f = new File("/folder/file.ext");
    URL url = urlConverter.convert(f);
    assertNotNull(url);
  }
}
TOP

Related Classes of jodd.typeconverter.URLConverterTest

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.