package jetbrains.mps.lang.editor.menus.substitute.tests.tests;
/*Generated by MPS */
import jetbrains.mps.MPSLaunch;
import jetbrains.mps.lang.test.runtime.BaseTransformationTest;
import org.junit.Test;
import jetbrains.mps.lang.test.runtime.BaseEditorTestBody;
import java.util.List;
import jetbrains.mps.openapi.editor.cells.SubstituteAction;
import junit.framework.Assert;
@MPSLaunch
public class TestSideTransform_TestWrappedItem_Test extends BaseTransformationTest {
@Test
public void test_TestSideTransform_TestWrappedItem() throws Throwable {
initTest("${mps_home}", "r:62873c84-7a76-488a-9b84-4e0ffdbec8db(jetbrains.mps.lang.editor.menus.substitute.tests.tests@tests)");
runTest("jetbrains.mps.lang.editor.menus.substitute.tests.tests.TestSideTransform_TestWrappedItem_Test$TestBody", "testMethod", false);
}
@MPSLaunch
public static class TestBody extends BaseEditorTestBody {
@Override
public void testMethodImpl() throws Exception {
initEditorComponent("1179171206859335701", "1179171206859335703");
typeString(" ");
List<SubstituteAction> matchingActions = getEditorComponent().getSelectedCell().getSubstituteInfo().getMatchingActions("child matching text", false);
Assert.assertTrue(matchingActions.size() == 1 && eq_qmbq6r_a0a0d0a2(matchingActions.get(0).getDescriptionText("child matching text"), "child description text wrapper description text"));
typeString("child matching text");
}
private static boolean eq_qmbq6r_a0a0d0a2(Object a, Object b) {
return (a != null ? a.equals(b) : a == b);
}
}
}