Search in sources :

Example 16 with ClassWithJavascript

use of org.stjs.generator.ClassWithJavascript in project st-js by st-js.

the class DependencyTest method testStaticInitializerBlockWithInnerClassStaticMethodDep.

@Test
public void testStaticInitializerBlockWithInnerClassStaticMethodDep() {
    generate(Dep12b.class);
    generate(Dep12.class);
    ClassWithJavascript jsClass = stjsClass(Dep12.class);
    assertNotNull(jsClass);
    assertDependency(jsClass.getDirectDependencyMap(), Dep12b.class, DependencyType.STATIC);
}
Also used : ClassWithJavascript(org.stjs.generator.ClassWithJavascript) AbstractStjsTest(org.stjs.generator.utils.AbstractStjsTest) Test(org.junit.Test)

Aggregations

ClassWithJavascript (org.stjs.generator.ClassWithJavascript)16 Test (org.junit.Test)12 AbstractStjsTest (org.stjs.generator.utils.AbstractStjsTest)11 File (java.io.File)3 IOException (java.io.IOException)3 URLClassLoader (java.net.URLClassLoader)3 BridgeClass (org.stjs.generator.BridgeClass)3 URI (java.net.URI)2 ArrayList (java.util.ArrayList)2 DependencyResolutionRequiredException (org.apache.maven.artifact.DependencyResolutionRequiredException)2 MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)2 MojoFailureException (org.apache.maven.plugin.MojoFailureException)2 InclusionScanException (org.codehaus.plexus.compiler.util.scan.InclusionScanException)2 SourceMapping (org.codehaus.plexus.compiler.util.scan.mapping.SourceMapping)2 SuffixMapping (org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping)2 GenerationDirectory (org.stjs.generator.GenerationDirectory)2 Generator (org.stjs.generator.Generator)2 GeneratorConfiguration (org.stjs.generator.GeneratorConfiguration)2 GeneratorConfigurationBuilder (org.stjs.generator.GeneratorConfigurationBuilder)2 JavascriptFileGenerationException (org.stjs.generator.JavascriptFileGenerationException)2