package typeinference;

import de.dhbwstuttgart.core.JavaTXCompiler;
import org.junit.Test;

import java.io.File;
import java.io.IOException;

import static org.junit.Assert.*;

public class JavaTXCompilerTest {

    private static final String rootDirectory = System.getProperty("user.dir")+"/test/javFiles/";


    @Test
    public void test() throws IOException, ClassNotFoundException {
        JavaTXCompiler compiler = new JavaTXCompiler();
        //compiler.parse(new File(rootDirectory+"Methods.jav"));
        compiler.parse(new File(rootDirectory+"Generics.jav"));
        compiler.typeInference();
    }
}