Package jodd.typeconverter

Source Code of jodd.typeconverter.URIConverterTest

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

package jodd.typeconverter;

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

import java.io.File;
import java.net.URI;

import static org.junit.Assert.assertNotNull;

public class URIConverterTest {

  @Test
  public void testConversion() {
    URIConverter uriConverter = new URIConverter();

    File f = new File("/folder/file.ext");
    URI uri = uriConverter.convert(f);
    assertNotNull(uri);
  }

}
TOP

Related Classes of jodd.typeconverter.URIConverterTest

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.