package jetbrains.mps.lang.editor.diagram.tests;

/*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 java.awt.Component;
import java.awt.event.MouseEvent;

@MPSLaunch
public class SelectDiagramNode_Test extends BaseTransformationTest {
  @RegisterExtension
  private static final TestParametersCacheExtension ourParametersCacheExtension = new TestParametersCacheExtension(new TestParametersCache(SelectDiagramNode_Test.class, "${mps_home}", "r:e41d7e03-7ef3-4161-a48a-e48d8152e422(jetbrains.mps.lang.editor.diagram.tests@tests)", false));

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

  @Test
  public void test_SelectDiagramNode() 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("834109970984600336", "834109970984588281");
      {
        int x_tr19wc_a0 = 40;
        int y_tr19wc_a0 = 30;
        Component eventTargetComponent_tr19wc_a0 = processMouseEvent(x_tr19wc_a0, y_tr19wc_a0, MouseEvent.MOUSE_PRESSED);
        processSecondaryMouseEvent(eventTargetComponent_tr19wc_a0, x_tr19wc_a0, y_tr19wc_a0, MouseEvent.MOUSE_RELEASED);
        processSecondaryMouseEvent(eventTargetComponent_tr19wc_a0, x_tr19wc_a0, y_tr19wc_a0, MouseEvent.MOUSE_CLICKED);
      }
    }
  }
}
