blob: e5f14ed80fc5458e1d3fc9141d5c728c93b674cd [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 Rushan R. Gilmullin and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Rushan R. Gilmullin - initial API and implementation
*******************************************************************************/
//package org.eclipse.osbp.vaaclipse.test;
//
//import org.eclipse.osbp.vaaclipse.util.Utils;
//
///**
// * @author rushan
// *
// */
//public class ConvertTest
//{
// final static String uri1 = "platform:/plugin/org.somebundle/img/blabla.png";
//
// static final String url1 = "/VAADIN/themes/generated_theme/org.somebundle/img/blabla.png";
// static final String url2 = "/VAADIN/themes/reindeer/img/blabla.png";
//
// public static void main(String[] args)
// {
// System.out.println(Utils.restorePath("/VAADIN/themes/reindeer/styles.css", "generated_theme", "path to css"));
// System.out.println(Utils.restorePath("/VAADIN/themes/generated_theme/styles.css", "generated_theme", "path to css"));
// System.out.println(Utils.restorePath(url1, "generated_theme", "path to css"));
// System.out.println(Utils.restorePath(url2, "generated_theme", "path to css"));
//
//
// System.out.println(Utils.convertPath(uri1));
//
// System.out.println(Utils.restorePath("/VAADIN/themes/generated_theme/" + Utils.convertPath(uri1), "generated_theme", "path to css").equals(uri1));
// }
// }