package jetbrains.mps.editorTest;

/*Generated by MPS */

import jetbrains.mps.MPSLaunch;
import jetbrains.mps.lang.test.runtime.BaseTransformationTest;
import org.junit.jupiter.api.extension.RegisterExtension;
import jetbrains.mps.lang.test.runtime.TestParametersCacheExtension;
import jetbrains.mps.lang.test.runtime.TestParametersCache;
import org.junit.jupiter.api.Test;
import jetbrains.mps.lang.test.runtime.BaseEditorTestBody;
import jetbrains.mps.lang.test.runtime.TransformationTest;
import org.junit.Assert;

@MPSLaunch
public class ToggleStaticMethodInInterfaceDoesNotWorkOnPrivate_Test extends BaseTransformationTest {
  @RegisterExtension
  private static final TestParametersCacheExtension ourParametersCacheExtension = new TestParametersCacheExtension(new TestParametersCache(ToggleStaticMethodInInterfaceDoesNotWorkOnPrivate_Test.class, "${mps_home}", "r:914ee49a-537d-44b2-a5fb-bac87a54743d(jetbrains.mps.editorTest@tests)", false));

  public ToggleStaticMethodInInterfaceDoesNotWorkOnPrivate_Test() {
    super(ourParametersCacheExtension.getParametersCache());
  }

  @Test
  public void test_ToggleStaticMethodInInterfaceDoesNotWorkOnPrivate() throws Throwable {
    new TestBody(this).testMethod();
  }

  /*package*/ static class TestBody extends BaseEditorTestBody {

    /*package*/ TestBody(TransformationTest owner) {
      super(owner);
    }

    @Override
    public void testMethodImpl() throws Exception {
      initEditorComponent("1076865108590316956", "1076865108590316964");
      boolean res = isIntentionApplicable("jetbrains.mps.baseLanguage.intentions.ToggleMethodStatic_Intention", myStart.getNode());
      Assert.assertFalse(res);
    }
  }
}
