package org.twig.syntax.parser.node;

import org.junit.Test;

public class ModuleTests {
    @Test
    public void canCompileClassHeader() {
        // TODO with mocked compiler
    }
}

@@ -58,124 +58,825 @@
 st;%0A
-%0Apublic class ModuleTests %7B%0A    @Test%0A    public void canCompileClassHeader() %7B%0A        // TODO with mocked compiler
+import org.twig.compiler.ClassCompiler;%0A%0Aimport java.util.ArrayList;%0A%0Aimport static org.mockito.Mockito.*;%0A%0Apublic class ModuleTests %7B%0A    @Test%0A    public void canCompileEmptyClass() %7B%0A        ClassCompiler classCompilerStub = mock(ClassCompiler.class);%0A%0A        Module module = new Module(new ArrayList%3C%3E());%0A        module.setFileName(%22foo%22);%0A%0A        module.compile(classCompilerStub);%0A%0A        verify(classCompilerStub).writeLine(%22package org.twig.template;%5Cn%22);%0A        verify(classCompilerStub).writeLine(%22/**%22);%0A        verify(classCompilerStub).writeLine(%22 * foo%22);%0A        verify(classCompilerStub).writeLine(%22 */%22);%0A        verify(classCompilerStub).write(%22public class TODO%22); // TODO%0A        verify(classCompilerStub).writeLine(%22 extends BASECLASS %7B%22); // TODO%0A        verify(classCompilerStub).indent();
 %0A   

Add compile class test