Package org.python.pydev.refactoring.utils.TestUtils

Examples of org.python.pydev.refactoring.utils.TestUtils.Marker


    public void testGetMarkers() {
        List<Marker> markers = TestUtils.getMarkers("x = 10 ## type int\ny = 'hello' ## type str");

        assertEquals(2, markers.size());

        Marker intMarker = markers.get(0);

        assertEquals("x = 10", intMarker.expr);
        assertEquals("int", intMarker.type);
        assertEquals(1, intMarker.beginLine);

        Marker strMarker = markers.get(1);

        assertEquals("y = 'hello'", strMarker.expr);
        assertEquals("str", strMarker.type);
        assertEquals(2, strMarker.beginLine);
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.utils.TestUtils.Marker

Copyright © 2018 www.massapicom. 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.