Package iron9light.coffeescriptMavenPlugin.test

Source Code of iron9light.coffeescriptMavenPlugin.test.CoffeeScriptCompilerTest

package iron9light.coffeescriptMavenPlugin.test;

import iron9light.coffeescriptMavenPlugin.CoffeeScriptCompiler;
import org.junit.Test;

import java.net.MalformedURLException;
import java.net.URL;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;

/**
* @author iron9light
*/
public class CoffeeScriptCompilerTest {
    @Test
    public void testVersion() throws MalformedURLException {
        URL url = getClass().getResource("/coffee-script.js");
        CoffeeScriptCompiler compiler = new CoffeeScriptCompiler(url, false);
        assertThat(compiler.version, equalTo("1.3.3"));
    }
}
TOP

Related Classes of iron9light.coffeescriptMavenPlugin.test.CoffeeScriptCompilerTest

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.