mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-03-30 16:38:18 +02:00
Исправление тестов
This commit is contained in:
parent
33668db3a4
commit
d0f26e921e
@ -47,7 +47,6 @@
|
||||
<unit id="com._1c.g5.v8.dt.xtext.runtime.feature.group" version="0.0.0"/>
|
||||
<unit id="com._1c.g5.v8.dt.xtext.ui.feature.group" version="0.0.0"/>
|
||||
<unit id="com._1c.g5.wiring.feature.feature.group" version="0.0.0"/>
|
||||
<unit id="com.e1c.g5.v8.dt.javadocs" version="0.0.0"/>
|
||||
<unit id="com.company1c.link.agent.core.feature.feature.group" version="0.0.0"/>
|
||||
<unit id="com.company1c.link.agent.dependencies.feature.feature.group" version="0.0.0"/>
|
||||
<unit id="com.company1c.link.ide.edt.feature.feature.group" version="0.0.0"/>
|
||||
@ -55,10 +54,6 @@
|
||||
<unit id="com.e1c.g5.v8.dt.mw.feature.feature.group" version="0.0.0"/>
|
||||
<unit id="com.make.chromium.cef.feature.feature.group" version="0.0.0"/>
|
||||
<unit id="de.itemis.xtext.antlr.feature.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.babel.nls_eclipse_ru.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.babel.nls_technology.egit_ru.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.babel.nls_technology.jgit_ru.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.babel.nls_webtools_ru.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.draw2d.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.e4.rcp.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.ecf.core.feature.feature.group" version="0.0.0"/>
|
||||
@ -122,6 +117,7 @@
|
||||
<!-- LIBS -->
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit">
|
||||
<unit id="org.mockito" version="0.0.0"/>
|
||||
<unit id="org.objenesis" version="0.0.0"/>
|
||||
<unit id="net.bytebuddy.byte-buddy" version="0.0.0"/>
|
||||
<unit id="net.bytebuddy.byte-buddy-agent" version="0.0.0"/>
|
||||
<repository location="https://download.eclipse.org/tools/orbit/downloads/drops/R20211213173813/repository/"/>
|
||||
|
@ -36,7 +36,7 @@ public final class DbObjectAnyRefTypeCheckTest
|
||||
{
|
||||
private static final String CHECK_ID = "db-object-anyref-type"; //$NON-NLS-1$
|
||||
|
||||
private static final String PROJECT_NAME = "MdCompositeTypeCheck";
|
||||
private static final String PROJECT_NAME = "MdAnyRefType";
|
||||
|
||||
@Override
|
||||
protected String getTestConfigurationName()
|
||||
|
@ -65,7 +65,7 @@ public final class DbObjectRefNonRefTypesCheckTest
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOnlyOneType() throws Exception
|
||||
public void testOnlyOneNonRefType() throws Exception
|
||||
{
|
||||
IDtProject dtProject = dtProjectManager.getDtProject(PROJECT_NAME);
|
||||
assertNotNull(dtProject);
|
||||
@ -79,4 +79,19 @@ public final class DbObjectRefNonRefTypesCheckTest
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOnlyOneRefType() throws Exception
|
||||
{
|
||||
IDtProject dtProject = dtProjectManager.getDtProject(PROJECT_NAME);
|
||||
assertNotNull(dtProject);
|
||||
|
||||
IBmObject object = getTopObjectByFqn("Catalog.RefTest", dtProject);
|
||||
if (object instanceof Catalog)
|
||||
{
|
||||
CatalogAttribute att = ((Catalog)object).getAttributes().get(0);
|
||||
Marker marker = getFirstMarker(CHECK_ID, att.getType(), dtProject);
|
||||
assertNull(marker);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>MdAnyRefType</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
|
||||
<nature>com._1c.g5.v8.dt.core.V8ConfigurationNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
topObjects=true
|
@ -0,0 +1,3 @@
|
||||
addModuleStrictTypesAnnotation=false
|
||||
createModuleStructure=false
|
||||
eclipse.preferences.version=1
|
@ -0,0 +1,3 @@
|
||||
commonChecks=true
|
||||
eclipse.preferences.version=1
|
||||
standardChecks=true
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding/<project>=UTF-8
|
@ -0,0 +1,2 @@
|
||||
Manifest-Version: 1.0
|
||||
Runtime-Version: 8.3.19
|
@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mdclass:Catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:core="http://g5.1c.ru/v8/dt/mcore" xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="c57de896-950c-40ff-9392-162aafbe65e8">
|
||||
<producedTypes>
|
||||
<objectType typeId="49570972-f115-4bf7-adb5-340a3e43eea9" valueTypeId="f43b46de-43c8-4b34-87b8-9225a71e5253"/>
|
||||
<refType typeId="99d996f7-0a38-40a4-bf0f-dba1a5081e42" valueTypeId="6819d5ab-5e81-4ae6-861f-d1ef6488bb5f"/>
|
||||
<selectionType typeId="79894ea8-f669-49d4-a677-19c795108e01" valueTypeId="bbd57f5b-df5c-4ffa-b3a5-b2b146945479"/>
|
||||
<listType typeId="a3171af9-4e3e-4b5b-8dff-33d24518b9a7" valueTypeId="230755ed-076c-44df-a241-759eeafd8ec8"/>
|
||||
<managerType typeId="14668c89-b6c3-4541-b30e-f786ac6647e0" valueTypeId="94ce3d3c-0f3a-4c4a-8ba3-b6cd878c8c93"/>
|
||||
</producedTypes>
|
||||
<name>RefTest</name>
|
||||
<synonym>
|
||||
<key>en</key>
|
||||
<value>Ref test</value>
|
||||
</synonym>
|
||||
<useStandardCommands>true</useStandardCommands>
|
||||
<inputByString>Catalog.RefTest.StandardAttribute.Code</inputByString>
|
||||
<inputByString>Catalog.RefTest.StandardAttribute.Description</inputByString>
|
||||
<fullTextSearchOnInputByString>DontUse</fullTextSearchOnInputByString>
|
||||
<createOnInput>Use</createOnInput>
|
||||
<dataLockControlMode>Managed</dataLockControlMode>
|
||||
<fullTextSearch>Use</fullTextSearch>
|
||||
<levelCount>2</levelCount>
|
||||
<foldersOnTop>true</foldersOnTop>
|
||||
<codeLength>9</codeLength>
|
||||
<descriptionLength>25</descriptionLength>
|
||||
<codeType>String</codeType>
|
||||
<codeAllowedLength>Variable</codeAllowedLength>
|
||||
<checkUnique>true</checkUnique>
|
||||
<autonumbering>true</autonumbering>
|
||||
<defaultPresentation>AsDescription</defaultPresentation>
|
||||
<editType>InDialog</editType>
|
||||
<choiceMode>BothWays</choiceMode>
|
||||
<attributes uuid="d2e676d1-8bb9-4c41-b741-9ebf7fbd7477">
|
||||
<name>Attribute</name>
|
||||
<synonym>
|
||||
<key>en</key>
|
||||
<value>Attribute</value>
|
||||
</synonym>
|
||||
<type>
|
||||
<types>CatalogRef.AnyRefTest</types>
|
||||
</type>
|
||||
<minValue xsi:type="core:UndefinedValue"/>
|
||||
<maxValue xsi:type="core:UndefinedValue"/>
|
||||
<fillValue xsi:type="core:UndefinedValue"/>
|
||||
<fullTextSearch>Use</fullTextSearch>
|
||||
<dataHistory>Use</dataHistory>
|
||||
</attributes>
|
||||
</mdclass:Catalog>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cmi:CommandInterface xmlns:cmi="http://g5.1c.ru/v8/dt/cmi"/>
|
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mdclass:Configuration xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="0c29af1c-4fa9-48fb-a46c-8688b4169c7a">
|
||||
<name>MdAnyRefType</name>
|
||||
<synonym>
|
||||
<key>en</key>
|
||||
<value>Md any ref type</value>
|
||||
</synonym>
|
||||
<containedObjects classId="9cd510cd-abfc-11d4-9434-004095e12fc7" objectId="d0b6458d-9d50-4f2a-bf90-66dab91011e5"/>
|
||||
<containedObjects classId="9fcd25a0-4822-11d4-9414-008048da11f9" objectId="c01b49fd-f0d1-441f-aa0e-ee0929436b81"/>
|
||||
<containedObjects classId="e3687481-0a87-462c-a166-9f34594f9bba" objectId="d72e9da5-aa05-4550-b44f-0d8235dd793d"/>
|
||||
<containedObjects classId="9de14907-ec23-4a07-96f0-85521cb6b53b" objectId="3790a1d8-7004-4c89-88aa-f8cdb3ba9b3d"/>
|
||||
<containedObjects classId="51f2d5d8-ea4d-4064-8892-82951750031e" objectId="193eb4eb-1ed2-4b93-a102-be4731f20736"/>
|
||||
<containedObjects classId="e68182ea-4237-4383-967f-90c1e3370bc7" objectId="643bd68e-7062-41a1-9bd9-7881770ac712"/>
|
||||
<containedObjects classId="fb282519-d103-4dd3-bc12-cb271d631dfc" objectId="4b5541da-4095-4c9a-9e60-695af9888141"/>
|
||||
<configurationExtensionCompatibilityMode>8.3.21</configurationExtensionCompatibilityMode>
|
||||
<defaultRunMode>ManagedApplication</defaultRunMode>
|
||||
<usePurposes>PersonalComputer</usePurposes>
|
||||
<usedMobileApplicationFunctionalities>
|
||||
<functionality>
|
||||
<use>true</use>
|
||||
</functionality>
|
||||
<functionality>
|
||||
<functionality>OSBackup</functionality>
|
||||
<use>true</use>
|
||||
</functionality>
|
||||
</usedMobileApplicationFunctionalities>
|
||||
<defaultLanguage>Language.English</defaultLanguage>
|
||||
<dataLockControlMode>Managed</dataLockControlMode>
|
||||
<objectAutonumerationMode>NotAutoFree</objectAutonumerationMode>
|
||||
<modalityUseMode>DontUse</modalityUseMode>
|
||||
<synchronousPlatformExtensionAndAddInCallUseMode>DontUse</synchronousPlatformExtensionAndAddInCallUseMode>
|
||||
<compatibilityMode>8.3.21</compatibilityMode>
|
||||
<languages uuid="f144ba75-7899-4b85-a36f-8adf2f9e8666">
|
||||
<name>English</name>
|
||||
<synonym>
|
||||
<key>en</key>
|
||||
<value>English</value>
|
||||
</synonym>
|
||||
<languageCode>en</languageCode>
|
||||
</languages>
|
||||
<catalogs>Catalog.AnyRefTest</catalogs>
|
||||
<catalogs>Catalog.RefTest</catalogs>
|
||||
</mdclass:Configuration>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cmi:CommandInterface xmlns:cmi="http://g5.1c.ru/v8/dt/cmi"/>
|
@ -37,7 +37,7 @@
|
||||
<value>Attribute</value>
|
||||
</synonym>
|
||||
<type>
|
||||
<types>CatalogRef.AnyRefTest</types>
|
||||
<types>CatalogRef.OnlyOneTypeTest</types>
|
||||
<types>String</types>
|
||||
<stringQualifiers>
|
||||
<length>10</length>
|
||||
|
@ -37,7 +37,7 @@
|
||||
<value>Attribute</value>
|
||||
</synonym>
|
||||
<type>
|
||||
<types>CatalogRef.AnyRefTest</types>
|
||||
<types>CatalogRef.OnlyOneTypeTest</types>
|
||||
</type>
|
||||
<minValue xsi:type="core:UndefinedValue"/>
|
||||
<maxValue xsi:type="core:UndefinedValue"/>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</synonym>
|
||||
<languageCode>en</languageCode>
|
||||
</languages>
|
||||
<catalogs>Catalog.AnyRefTest</catalogs>
|
||||
<catalogs>Catalog.OnlyOneTypeTest</catalogs>
|
||||
<catalogs>Catalog.RefAndOtherTest</catalogs>
|
||||
<catalogs>Catalog.RefTest</catalogs>
|
||||
|
Loading…
x
Reference in New Issue
Block a user