1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-01-20 21:18:18 +02:00

Исправление тестов

This commit is contained in:
Dmitriy Marmyshev 2021-10-10 20:03:34 +03:00
parent 8c8d13e2c2
commit 68014a2942
8 changed files with 69 additions and 65 deletions

View File

@ -97,9 +97,10 @@ public class AbstractSingleModuleTestBase
}
@Before
public void setUp() throws CoreException {
public void setUp() throws CoreException
{
IProject project = testingWorkspace.getProject(PROJECT_NAME);
IProject project = testingWorkspace.getProject(getTestConfigurationName());
if (!project.exists() || !project.isAccessible())
{

View File

@ -18,6 +18,7 @@ import java.util.List;
import org.junit.Test;
import com._1c.g5.v8.dt.validation.marker.IExtraInfoKeys;
import com._1c.g5.v8.dt.validation.marker.Marker;
import com.e1c.v8codestyle.bsl.check.EmptyExceptStatementCheck;
@ -49,7 +50,7 @@ public class EmptyExceptStatementCheckTest
List<Marker> markers = getModuleMarkers();
assertEquals(1, markers.size());
Marker marker = markers.get(0);
assertEquals("2", marker.getExtraInfo().get("line"));
assertEquals("2", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
}

View File

@ -30,6 +30,7 @@ import com._1c.g5.v8.dt.bsl.model.Module;
import com._1c.g5.v8.dt.bsl.model.Statement;
import com._1c.g5.v8.dt.core.platform.IDtProject;
import com._1c.g5.v8.dt.metadata.mdclass.Catalog;
import com._1c.g5.v8.dt.validation.marker.IExtraInfoKeys;
import com._1c.g5.v8.dt.validation.marker.Marker;
import com.e1c.g5.v8.dt.check.settings.CheckUid;
import com.e1c.g5.v8.dt.check.settings.ICheckSettings;
@ -75,7 +76,7 @@ public class EventDataExchangeLoadCheckTest
Marker marker = getFirstMarker(CHECK_ID, methods.get(0), dtProject);
assertNotNull(marker);
assertEquals("2", marker.getExtraInfo().get("line"));
assertEquals("2", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
Method method = methods.get(2);
assertEquals(2, method.allStatements().size());
@ -84,7 +85,7 @@ public class EventDataExchangeLoadCheckTest
marker = getFirstMarker(CHECK_ID, ((IfStatement)statement).getIfPart(), dtProject);
assertNotNull(marker);
assertEquals("24", marker.getExtraInfo().get("line"));
assertEquals("24", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
@ -117,7 +118,7 @@ public class EventDataExchangeLoadCheckTest
Method method = methods.get(2);
Marker marker = getFirstMarker(CHECK_ID, method, dtProject);
assertNotNull(marker);
assertEquals("18", marker.getExtraInfo().get("line"));
assertEquals("18", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(2, method.allStatements().size());
Statement statement = method.allStatements().get(1);

View File

@ -32,6 +32,7 @@ import com._1c.g5.v8.dt.core.platform.IDtProject;
import com._1c.g5.v8.dt.form.model.Form;
import com._1c.g5.v8.dt.metadata.mdclass.Catalog;
import com._1c.g5.v8.dt.metadata.mdclass.CommonModule;
import com._1c.g5.v8.dt.validation.marker.IExtraInfoKeys;
import com._1c.g5.v8.dt.validation.marker.Marker;
import com.e1c.g5.v8.dt.check.settings.CheckUid;
import com.e1c.g5.v8.dt.check.settings.ICheckSettings;
@ -94,7 +95,7 @@ public class EventHandlerBooleanParamCheckTest
Marker marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
Method compliantMethod = methods.get(1);
assertEquals(1, compliantMethod.allStatements().size());
@ -142,7 +143,7 @@ public class EventHandlerBooleanParamCheckTest
Marker marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
Method compliantMethod = methods.get(1);
assertEquals(1, compliantMethod.allStatements().size());
@ -189,7 +190,7 @@ public class EventHandlerBooleanParamCheckTest
Marker marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
// Noncompliant but disabled in check's parameters
Method compliantMethod = methods.get(1);
@ -238,14 +239,14 @@ public class EventHandlerBooleanParamCheckTest
Marker marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertTrue(noncompliantMethod.allStatements().get(1) instanceof SimpleStatement);
statement = (SimpleStatement)noncompliantMethod.allStatements().get(1);
marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("7", marker.getExtraInfo().get("line"));
assertEquals("7", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
noncompliantMethod = methods.get(1);
assertEquals(1, noncompliantMethod.allStatements().size());
@ -254,7 +255,7 @@ public class EventHandlerBooleanParamCheckTest
marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("15", marker.getExtraInfo().get("line"));
assertEquals("15", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
Method compliantMethod = methods.get(2);
assertEquals(2, compliantMethod.allStatements().size());
@ -309,7 +310,7 @@ public class EventHandlerBooleanParamCheckTest
Marker marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
Method compliantMethod = methods.get(1);
assertEquals(1, compliantMethod.allStatements().size());
@ -358,7 +359,7 @@ public class EventHandlerBooleanParamCheckTest
Marker marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
Method compliantMethod = methods.get(1);
assertEquals(1, compliantMethod.allStatements().size());
@ -407,7 +408,7 @@ public class EventHandlerBooleanParamCheckTest
Marker marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
// Noncompliant works only if enabled in check's parameters
noncompliantMethod = methods.get(1);
@ -417,7 +418,7 @@ public class EventHandlerBooleanParamCheckTest
marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("12", marker.getExtraInfo().get("line"));
assertEquals("12", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
Method compliantMethod = methods.get(2);
assertEquals(1, compliantMethod.allStatements().size());
@ -458,14 +459,14 @@ public class EventHandlerBooleanParamCheckTest
Marker marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertTrue(noncompliantMethod.allStatements().get(1) instanceof SimpleStatement);
statement = (SimpleStatement)noncompliantMethod.allStatements().get(1);
marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("7", marker.getExtraInfo().get("line"));
assertEquals("7", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
noncompliantMethod = methods.get(1);
assertEquals(1, noncompliantMethod.allStatements().size());
@ -474,7 +475,7 @@ public class EventHandlerBooleanParamCheckTest
marker = getFirstMarker(CHECK_ID, statement.getRight(), dtProject);
assertNotNull(marker);
assertEquals("15", marker.getExtraInfo().get("line"));
assertEquals("15", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
Method compliantMethod = methods.get(2);
assertEquals(2, compliantMethod.allStatements().size());

View File

@ -18,6 +18,7 @@ import static org.junit.Assert.assertNull;
import org.junit.Test;
import com._1c.g5.v8.dt.validation.marker.IExtraInfoKeys;
import com._1c.g5.v8.dt.validation.marker.Marker;
import com.e1c.v8codestyle.bsl.check.NstrStringLiteralFormatCheck;
@ -51,7 +52,6 @@ public class NstrStringLiteralFormatCheckTest
assertNull(marker);
}
/**
* Test that Nstr first parameter is string literal
*
@ -64,7 +64,7 @@ public class NstrStringLiteralFormatCheckTest
Marker marker = getModuleFirstMarker();
assertNotNull(marker);
assertEquals("4", marker.getExtraInfo().get("line"));
assertEquals("4", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
@ -80,7 +80,7 @@ public class NstrStringLiteralFormatCheckTest
Marker marker = getModuleFirstMarker();
assertNotNull(marker);
assertEquals("4", marker.getExtraInfo().get("line"));
assertEquals("4", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
@ -96,7 +96,7 @@ public class NstrStringLiteralFormatCheckTest
Marker marker = getModuleFirstMarker();
assertNotNull(marker);
assertEquals("4", marker.getExtraInfo().get("line"));
assertEquals("4", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
@ -112,7 +112,7 @@ public class NstrStringLiteralFormatCheckTest
Marker marker = getModuleFirstMarker();
assertNotNull(marker);
assertEquals("4", marker.getExtraInfo().get("line"));
assertEquals("4", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
@ -128,7 +128,7 @@ public class NstrStringLiteralFormatCheckTest
Marker marker = getModuleFirstMarker();
assertNotNull(marker);
assertEquals("4", marker.getExtraInfo().get("line"));
assertEquals("4", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
@ -144,7 +144,7 @@ public class NstrStringLiteralFormatCheckTest
Marker marker = getModuleFirstMarker();
assertNotNull(marker);
assertEquals("4", marker.getExtraInfo().get("line"));
assertEquals("4", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
@ -160,7 +160,7 @@ public class NstrStringLiteralFormatCheckTest
Marker marker = getModuleFirstMarker();
assertNotNull(marker);
assertEquals("4", marker.getExtraInfo().get("line"));
assertEquals("4", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}

View File

@ -165,6 +165,5 @@ public class QueryInLoopCheckTest
markers = getModuleMarkers();
assertEquals(1, markers.size());
}
}

View File

@ -21,6 +21,7 @@ import java.util.List;
import org.junit.Test;
import com._1c.g5.v8.dt.validation.marker.IExtraInfoKeys;
import com._1c.g5.v8.dt.validation.marker.Marker;
import com.e1c.v8codestyle.bsl.check.StructureCtorTooManyKeysCheck;
@ -51,7 +52,7 @@ public class StructureCtorTooManyKeysCheckTest
List<Marker> markers = getModuleMarkers();
assertEquals(1, markers.size());
Marker marker = markers.get(0);
assertEquals("11", marker.getExtraInfo().get("line"));
assertEquals("11", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
}

View File

@ -40,6 +40,7 @@ import com._1c.g5.v8.dt.bsl.model.StaticFeatureAccess;
import com._1c.g5.v8.dt.bsl.model.StringLiteral;
import com._1c.g5.v8.dt.bsl.model.Variable;
import com._1c.g5.v8.dt.metadata.mdclass.CommonModule;
import com._1c.g5.v8.dt.validation.marker.IExtraInfoKeys;
import com._1c.g5.v8.dt.validation.marker.Marker;
import com.e1c.g5.v8.dt.testing.check.SingleProjectReadOnlyCheckTestBase;
import com.e1c.v8codestyle.bsl.strict.check.DocCommentFieldTypeCheck;
@ -100,13 +101,13 @@ public class CommonModuleStrictTypesTest
Marker marker = markers.get(0);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
marker = markers.get(1);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -134,8 +135,8 @@ public class CommonModuleStrictTypesTest
Marker marker = markers.get(0);
assertEquals("4", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("4", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -163,8 +164,8 @@ public class CommonModuleStrictTypesTest
Marker marker = markers.get(0);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -192,12 +193,12 @@ public class CommonModuleStrictTypesTest
String uriToProblem = EcoreUtil.getURI(methods.get(0)).toString();
Marker marker = markers.get(0);
assertEquals("3", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("3", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
marker = markers.get(1);
assertEquals("3", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("3", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -217,7 +218,6 @@ public class CommonModuleStrictTypesTest
List<Method> methods = module.allMethods();
assertEquals(2, methods.size());
List<Marker> markers = getMarters(checkId, module);
// FIXME check-system duplicates issues
@ -226,12 +226,12 @@ public class CommonModuleStrictTypesTest
String uriToProblem = EcoreUtil.getURI(methods.get(0).getFormalParams().get(0)).toString();
Marker marker = markers.get(0);
assertEquals("3", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("3", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
marker = markers.get(1);
assertEquals("3", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("3", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -259,12 +259,12 @@ public class CommonModuleStrictTypesTest
String uriToProblem = EcoreUtil.getURI(dynamicMethods.get(0)).toString();
Marker marker = markers.get(0);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
marker = markers.get(0);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -292,12 +292,12 @@ public class CommonModuleStrictTypesTest
String uriToProblem = EcoreUtil.getURI(dynamicProperties.get(0)).toString();
Marker marker = markers.get(0);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
marker = markers.get(0);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -325,12 +325,12 @@ public class CommonModuleStrictTypesTest
String uriToProblem = EcoreUtil.getURI(statements.get(0)).toString();
Marker marker = markers.get(0);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
marker = markers.get(0);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -355,10 +355,10 @@ public class CommonModuleStrictTypesTest
assertEquals(2, markers.size());
Marker marker = markers.get(0);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
marker = markers.get(0);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}
@ -386,8 +386,8 @@ public class CommonModuleStrictTypesTest
String uriToProblem = EcoreUtil.getURI(finctions.get(0)).toString();
Marker marker = markers.get(0);
assertEquals("6", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("6", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -415,8 +415,8 @@ public class CommonModuleStrictTypesTest
String uriToProblem = EcoreUtil.getURI(statements.get(2)).toString();
Marker marker = markers.get(0);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals(uriToProblem, marker.getExtraInfo().get("uriToProblem"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
assertEquals(uriToProblem, marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_URI_TO_PROBLEM_KEY));
}
@ -440,7 +440,7 @@ public class CommonModuleStrictTypesTest
assertEquals(1, markers.size());
Marker marker = markers.get(0);
assertEquals("5", marker.getExtraInfo().get("line"));
assertEquals("5", marker.getExtraInfo().get(IExtraInfoKeys.TEXT_EXTRA_INFO_LINE_KEY));
}