Package ro.redeul.google.go.lang

Source Code of ro.redeul.google.go.lang.GoCodeInsightTestCase

package ro.redeul.google.go.lang;

import com.intellij.testFramework.fixtures.*;
import com.intellij.testFramework.fixtures.impl.LightTempDirTestFixtureImpl;
import ro.redeul.google.go.GoTestCase;

public abstract class GoCodeInsightTestCase extends GoTestCase<CodeInsightTestFixture> {

    @Override
    protected CodeInsightTestFixture createTestFixture(IdeaProjectTestFixture fixture)
        throws Exception {

        JavaCodeInsightTestFixture codeInsightFixture =
                JavaTestFixtureFactory.getFixtureFactory()
                                      .createCodeInsightFixture(
                                          fixture,
                                          new LightTempDirTestFixtureImpl(true));

        codeInsightFixture.setTestDataPath(getTestRootPath());

        return codeInsightFixture;
    }
}
TOP

Related Classes of ro.redeul.google.go.lang.GoCodeInsightTestCase

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.