From 0542bc932745deaa1b9ebafe36b0064b7ca2d027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D0=BF=D1=80=D0=B0=D0=BB=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Tue, 3 Aug 2021 08:43:28 +0300 Subject: [PATCH 1/5] =?UTF-8?q?=D0=9C=D0=B5=D1=82=D0=BE=D0=B4=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2=20updateCom?= =?UTF-8?q?monModule=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../internal/md/itests/CheckMd.java | 81 +++++++++++++++++++ .../CommonModuleNameClientServerTest.java | 55 +------------ .../md/itests/CommonModuleNameClientTest.java | 55 +------------ .../md/itests/CommonModuleNameGlobalTest.java | 55 +------------ .../md/itests/CommonModuleTypeTest.java | 43 ++-------- 5 files changed, 95 insertions(+), 194 deletions(-) create mode 100644 tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java new file mode 100644 index 000000000..e8f5627bb --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java @@ -0,0 +1,81 @@ +/******************************************************************************* + * Copyright (C) 2021, 1C-Soft LLC and others. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Aleksandr Kapralov - initial API and implementation + *******************************************************************************/ +package com.e1c.v8codestyle.internal.md.itests; + +import java.util.Map; +import java.util.Map.Entry; + +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.ecore.EStructuralFeature; + +import com._1c.g5.v8.bm.core.IBmObject; +import com._1c.g5.v8.bm.core.IBmTransaction; +import com._1c.g5.v8.bm.integration.AbstractBmTask; +import com._1c.g5.v8.bm.integration.IBmModel; +import com._1c.g5.v8.dt.core.platform.IDtProject; +import com._1c.g5.v8.dt.metadata.mdclass.CommonModule; +import com._1c.g5.v8.dt.metadata.mdclass.ReturnValuesReuse; +import com.e1c.g5.v8.dt.testing.check.CheckTestBase; + +/** + * @author Aleksandr Kapralov + * + */ +public abstract class CheckMd + extends CheckTestBase +{ + + protected void updateCommonModule(IDtProject dtProject, String fqn, Map types, + ReturnValuesReuse returnValueReuse, String newFqn) + { + IBmModel model = bmModelManager.getModel(dtProject); + model.execute(new AbstractBmTask("change type") + { + @Override + public Void execute(IBmTransaction transaction, IProgressMonitor monitor) + { + IBmObject object = transaction.getTopObjectByFqn(fqn); + + for (Entry entry : types.entrySet()) + { + object.eSet(entry.getKey(), entry.getValue()); + } + + if (!(object instanceof CommonModule)) + { + return null; + } + + CommonModule module = (CommonModule)object; + + if (returnValueReuse != null) + { + module.setReturnValuesReuse(returnValueReuse); + } + + if (newFqn != null) + { + String[] fqnArray = newFqn.split("[.]"); + if (fqnArray.length == 2) + { + module.setName(fqnArray[1]); + transaction.updateTopObjectFqn(object, newFqn); + } + } + + return null; + } + }); + waitForDD(dtProject); + } +} diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientServerTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientServerTest.java index 3731324ad..e0a759238 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientServerTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientServerTest.java @@ -16,22 +16,12 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; -import java.util.Map; -import java.util.Map.Entry; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.ecore.EStructuralFeature; import org.junit.Test; -import com._1c.g5.v8.bm.core.IBmObject; -import com._1c.g5.v8.bm.core.IBmTransaction; -import com._1c.g5.v8.bm.integration.AbstractBmTask; -import com._1c.g5.v8.bm.integration.IBmModel; import com._1c.g5.v8.dt.core.platform.IDtProject; -import com._1c.g5.v8.dt.metadata.mdclass.CommonModule; import com._1c.g5.v8.dt.metadata.mdclass.ReturnValuesReuse; import com._1c.g5.v8.dt.validation.marker.Marker; -import com.e1c.g5.v8.dt.testing.check.CheckTestBase; +import com.e1c.v8codestyle.internal.md.itests.CheckMd; import com.e1c.v8codestyle.md.check.CommonModuleNameClientServer; import com.e1c.v8codestyle.md.check.CommonModuleType; @@ -42,7 +32,7 @@ * */ public class CommonModuleNameClientServerTest - extends CheckTestBase + extends CheckMd { private static final String CHECK_ID = "common-module-name-client-server"; @@ -127,45 +117,4 @@ public void testCommonModuleNameClientServerReturnValueReuseCorrect() throws Exc assertNull(marker); } - private void updateCommonModule(IDtProject dtProject, String fqn, Map types, - ReturnValuesReuse returnValueReuse, String newFqn) - { - IBmModel model = bmModelManager.getModel(dtProject); - model.execute(new AbstractBmTask("change type") - { - @Override - public Void execute(IBmTransaction transaction, IProgressMonitor monitor) - { - IBmObject object = transaction.getTopObjectByFqn(fqn); - - for (Entry entry : types.entrySet()) - { - object.eSet(entry.getKey(), entry.getValue()); - } - - if (!(object instanceof CommonModule)) - { - return null; - } - - CommonModule module = (CommonModule)object; - - module.setReturnValuesReuse(returnValueReuse); - - if (newFqn != null) - { - String[] fqnArray = newFqn.split("[.]"); - if (fqnArray.length == 2) - { - module.setName(fqnArray[1]); - transaction.updateTopObjectFqn(object, newFqn); - } - } - - return null; - } - }); - waitForDD(dtProject); - } - } diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientTest.java index 6e0fef206..74d3be40f 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientTest.java @@ -16,22 +16,12 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; -import java.util.Map; -import java.util.Map.Entry; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.ecore.EStructuralFeature; import org.junit.Test; -import com._1c.g5.v8.bm.core.IBmObject; -import com._1c.g5.v8.bm.core.IBmTransaction; -import com._1c.g5.v8.bm.integration.AbstractBmTask; -import com._1c.g5.v8.bm.integration.IBmModel; import com._1c.g5.v8.dt.core.platform.IDtProject; -import com._1c.g5.v8.dt.metadata.mdclass.CommonModule; import com._1c.g5.v8.dt.metadata.mdclass.ReturnValuesReuse; import com._1c.g5.v8.dt.validation.marker.Marker; -import com.e1c.g5.v8.dt.testing.check.CheckTestBase; +import com.e1c.v8codestyle.internal.md.itests.CheckMd; import com.e1c.v8codestyle.md.check.CommonModuleNameClient; import com.e1c.v8codestyle.md.check.CommonModuleType; @@ -42,7 +32,7 @@ * */ public class CommonModuleNameClientTest - extends CheckTestBase + extends CheckMd { private static final String CHECK_ID = "common-module-name-client"; @@ -127,45 +117,4 @@ public void testCommonModuleNameClientReturnValueReuseCorrect() throws Exception assertNull(marker); } - private void updateCommonModule(IDtProject dtProject, String fqn, Map types, - ReturnValuesReuse returnValueReuse, String newFqn) - { - IBmModel model = bmModelManager.getModel(dtProject); - model.execute(new AbstractBmTask("change type") - { - @Override - public Void execute(IBmTransaction transaction, IProgressMonitor monitor) - { - IBmObject object = transaction.getTopObjectByFqn(fqn); - - for (Entry entry : types.entrySet()) - { - object.eSet(entry.getKey(), entry.getValue()); - } - - if (!(object instanceof CommonModule)) - { - return null; - } - - CommonModule module = (CommonModule)object; - - module.setReturnValuesReuse(returnValueReuse); - - if (newFqn != null) - { - String[] fqnArray = newFqn.split("[.]"); - if (fqnArray.length == 2) - { - module.setName(fqnArray[1]); - transaction.updateTopObjectFqn(object, newFqn); - } - } - - return null; - } - }); - waitForDD(dtProject); - } - } diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameGlobalTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameGlobalTest.java index 804234427..a8dbf8639 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameGlobalTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameGlobalTest.java @@ -16,22 +16,12 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; -import java.util.Map; -import java.util.Map.Entry; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.ecore.EStructuralFeature; import org.junit.Test; -import com._1c.g5.v8.bm.core.IBmObject; -import com._1c.g5.v8.bm.core.IBmTransaction; -import com._1c.g5.v8.bm.integration.AbstractBmTask; -import com._1c.g5.v8.bm.integration.IBmModel; import com._1c.g5.v8.dt.core.platform.IDtProject; -import com._1c.g5.v8.dt.metadata.mdclass.CommonModule; import com._1c.g5.v8.dt.metadata.mdclass.ReturnValuesReuse; import com._1c.g5.v8.dt.validation.marker.Marker; -import com.e1c.g5.v8.dt.testing.check.CheckTestBase; +import com.e1c.v8codestyle.internal.md.itests.CheckMd; import com.e1c.v8codestyle.md.check.CommonModuleNameGlobal; import com.e1c.v8codestyle.md.check.CommonModuleType; @@ -42,7 +32,7 @@ * */ public class CommonModuleNameGlobalTest - extends CheckTestBase + extends CheckMd { private static final String CHECK_ID = "common-module-name-global"; @@ -203,45 +193,4 @@ public void testCommonModuleNameServerGlobalReturnValueReuseCorrect() throws Exc assertNull(marker); } - private void updateCommonModule(IDtProject dtProject, String fqn, Map types, - ReturnValuesReuse returnValueReuse, String newFqn) - { - IBmModel model = bmModelManager.getModel(dtProject); - model.execute(new AbstractBmTask("change type") - { - @Override - public Void execute(IBmTransaction transaction, IProgressMonitor monitor) - { - IBmObject object = transaction.getTopObjectByFqn(fqn); - - for (Entry entry : types.entrySet()) - { - object.eSet(entry.getKey(), entry.getValue()); - } - - if (!(object instanceof CommonModule)) - { - return null; - } - - CommonModule module = (CommonModule)object; - - module.setReturnValuesReuse(returnValueReuse); - - if (newFqn != null) - { - String[] fqnArray = newFqn.split("[.]"); - if (fqnArray.length == 2) - { - module.setName(fqnArray[1]); - transaction.updateTopObjectFqn(object, newFqn); - } - } - - return null; - } - }); - waitForDD(dtProject); - } - } diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleTypeTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleTypeTest.java index a6ef2171c..4e4d30962 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleTypeTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleTypeTest.java @@ -16,20 +16,11 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; -import java.util.Map; -import java.util.Map.Entry; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.ecore.EStructuralFeature; import org.junit.Test; -import com._1c.g5.v8.bm.core.IBmObject; -import com._1c.g5.v8.bm.core.IBmTransaction; -import com._1c.g5.v8.bm.integration.AbstractBmTask; -import com._1c.g5.v8.bm.integration.IBmModel; import com._1c.g5.v8.dt.core.platform.IDtProject; import com._1c.g5.v8.dt.validation.marker.Marker; -import com.e1c.g5.v8.dt.testing.check.CheckTestBase; +import com.e1c.v8codestyle.internal.md.itests.CheckMd; import com.e1c.v8codestyle.md.check.CommonModuleType; /** @@ -39,7 +30,7 @@ * */ public class CommonModuleTypeTest - extends CheckTestBase + extends CheckMd { private static final String CHECK_ID = "common-module-type"; @@ -75,7 +66,7 @@ public void testTypeServerCorrect() throws Exception String fqn = "CommonModule.Common"; - updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_SERVER); + updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_SERVER, null, null); long id = getTopObjectIdByFqn(fqn, dtProject); Marker marker = getFirstMarker(CHECK_ID, id, dtProject); assertNull(marker); @@ -110,7 +101,7 @@ public void testTypeServerCallCorrect() throws Exception String fqn = "CommonModule.CommonServerCall"; - updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_SERVER_CALL); + updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_SERVER_CALL, null, null); long id = getTopObjectIdByFqn(fqn, dtProject); Marker marker = getFirstMarker(CHECK_ID, id, dtProject); assertNull(marker); @@ -145,7 +136,7 @@ public void testTypeClientCorrect() throws Exception String fqn = "CommonModule.CommonClient"; - updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_CLIENT); + updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_CLIENT, null, null); long id = getTopObjectIdByFqn(fqn, dtProject); Marker marker = getFirstMarker(CHECK_ID, id, dtProject); assertNull(marker); @@ -180,7 +171,7 @@ public void testTypeServerClientCorrect() throws Exception String fqn = "CommonModule.CommonServerClient"; - updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_CLIENT_SERVER); + updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_CLIENT_SERVER, null, null); long id = getTopObjectIdByFqn(fqn, dtProject); Marker marker = getFirstMarker(CHECK_ID, id, dtProject); assertNull(marker); @@ -215,7 +206,7 @@ public void testTypeServerGlobalCorrect() throws Exception String fqn = "CommonModule.CommonServerGlobal"; - updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_SERVER_GLOBAL); + updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_SERVER_GLOBAL, null, null); long id = getTopObjectIdByFqn(fqn, dtProject); Marker marker = getFirstMarker(CHECK_ID, id, dtProject); assertNull(marker); @@ -250,28 +241,10 @@ public void testTypeClientGlobalCorrect() throws Exception String fqn = "CommonModule.CommonClientGlobal"; - updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_CLIENT_GLOBAL); + updateCommonModule(dtProject, fqn, CommonModuleType.TYPE_CLIENT_GLOBAL, null, null); long id = getTopObjectIdByFqn(fqn, dtProject); Marker marker = getFirstMarker(CHECK_ID, id, dtProject); assertNull(marker); } - private void updateCommonModule(IDtProject dtProject, String fqn, Map types) - { - IBmModel model = bmModelManager.getModel(dtProject); - model.execute(new AbstractBmTask("change type") - { - @Override - public Void execute(IBmTransaction transaction, IProgressMonitor monitor) - { - IBmObject object = transaction.getTopObjectByFqn(fqn); - for (Entry entry : types.entrySet()) - { - object.eSet(entry.getKey(), entry.getValue()); - } - return null; - } - }); - waitForDD(dtProject); - } } From 6042d48137338d294c110b9edabf5fbb63a10aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D0=BF=D1=80=D0=B0=D0=BB=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Tue, 3 Aug 2021 08:51:03 +0300 Subject: [PATCH 2/5] =?UTF-8?q?=D0=92=20=D0=B8=D0=BC=D1=8F=20=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D0=B2=D0=BE=D0=B3=D0=BE=20=D0=BF=D0=B0=D0=BA?= =?UTF-8?q?=D0=B5=D1=82=D0=B0=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=81=D0=BB=D0=BE=D0=B2=D0=BE=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java | 1 + .../md/{ => check}/itests/CommonModuleNameClientServerTest.java | 2 +- .../md/{ => check}/itests/CommonModuleNameClientTest.java | 2 +- .../md/{ => check}/itests/CommonModuleNameGlobalTest.java | 2 +- .../v8codestyle/md/{ => check}/itests/CommonModuleTypeTest.java | 2 +- .../md/{ => check}/itests/ConfigurationDataLockTest.java | 2 +- .../md/{ => check}/itests/MdObjectNameLengthTest.java | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/CommonModuleNameClientServerTest.java (98%) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/CommonModuleNameClientTest.java (98%) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/CommonModuleNameGlobalTest.java (99%) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/CommonModuleTypeTest.java (99%) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/ConfigurationDataLockTest.java (98%) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/MdObjectNameLengthTest.java (97%) diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java index e8f5627bb..768bf1d46 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/internal/md/itests/CheckMd.java @@ -78,4 +78,5 @@ public Void execute(IBmTransaction transaction, IProgressMonitor monitor) }); waitForDD(dtProject); } + } diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientServerTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameClientServerTest.java similarity index 98% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientServerTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameClientServerTest.java index e0a759238..47a308552 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientServerTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameClientServerTest.java @@ -11,7 +11,7 @@ * 1C-Soft LLC - initial API and implementation * Aleksandr Kapralov - issue #14 *******************************************************************************/ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameClientTest.java similarity index 98% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameClientTest.java index 74d3be40f..a6be55d10 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameClientTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameClientTest.java @@ -11,7 +11,7 @@ * 1C-Soft LLC - initial API and implementation * Aleksandr Kapralov - issue #14 *******************************************************************************/ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameGlobalTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameGlobalTest.java similarity index 99% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameGlobalTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameGlobalTest.java index a8dbf8639..b1fcea319 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleNameGlobalTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleNameGlobalTest.java @@ -11,7 +11,7 @@ * 1C-Soft LLC - initial API and implementation * Aleksandr Kapralov - issue #14 *******************************************************************************/ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleTypeTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleTypeTest.java similarity index 99% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleTypeTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleTypeTest.java index 4e4d30962..9b6d60244 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/CommonModuleTypeTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/CommonModuleTypeTest.java @@ -11,7 +11,7 @@ * 1C-Soft LLC - initial API and implementation * Aleksandr Kapralov - issue #15 *******************************************************************************/ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java similarity index 98% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java index 1b48f4b4f..bb5ed7366 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java @@ -1,7 +1,7 @@ /** * */ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java similarity index 97% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java index e46b308b2..f701a6080 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java @@ -1,7 +1,7 @@ /** * */ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; From 0a8ff8b1f9cdc245dbd73329b1a14ef8be50e658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D0=BF=D1=80=D0=B0=D0=BB=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Fri, 17 Sep 2021 14:53:47 +0300 Subject: [PATCH 3/5] =?UTF-8?q?=D0=A0=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BD=D1=84=D0=BB=D0=B8=D0=BA=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../md/check/itests/ConfigurationDataLockTest.java | 13 +++++++++++-- .../md/check/itests/MdObjectNameLengthTest.java | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java index bb5ed7366..69cd37f08 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java @@ -1,6 +1,15 @@ -/** +/******************************************************************************* + * Copyright (C) 2021, 1C-Soft LLC and others. * - */ + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * 1C-Soft LLC - initial API and implementation + *******************************************************************************/ package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java index f701a6080..ab6e176c0 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java @@ -1,6 +1,15 @@ -/** +/******************************************************************************* + * Copyright (C) 2021, 1C-Soft LLC and others. * - */ + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * 1C-Soft LLC - initial API and implementation + *******************************************************************************/ package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; From da1766edfc61ec25186f842df738806752f6347d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D0=BF=D1=80=D0=B0=D0=BB=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Fri, 17 Sep 2021 14:55:37 +0300 Subject: [PATCH 4/5] =?UTF-8?q?=D0=A0=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BD=D1=84=D0=BB=D0=B8=D0=BA=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../md/{check => }/itests/ConfigurationDataLockTest.java | 2 +- .../md/{check => }/itests/MdObjectNameLengthTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{check => }/itests/ConfigurationDataLockTest.java (98%) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{check => }/itests/MdObjectNameLengthTest.java (97%) diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java similarity index 98% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java index 69cd37f08..6630cc4a1 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java @@ -10,7 +10,7 @@ * Contributors: * 1C-Soft LLC - initial API and implementation *******************************************************************************/ -package com.e1c.v8codestyle.md.check.itests; +package com.e1c.v8codestyle.md.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java similarity index 97% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java index ab6e176c0..8b1acc474 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java @@ -10,7 +10,7 @@ * Contributors: * 1C-Soft LLC - initial API and implementation *******************************************************************************/ -package com.e1c.v8codestyle.md.check.itests; +package com.e1c.v8codestyle.md.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; From edd289c88ac90ddea8bf7a8d17cd108f97939ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D0=BF=D1=80=D0=B0=D0=BB=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Fri, 17 Sep 2021 14:56:46 +0300 Subject: [PATCH 5/5] =?UTF-8?q?=D0=A0=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BD=D1=84=D0=BB=D0=B8=D0=BA=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../md/{ => check}/itests/ConfigurationDataLockTest.java | 2 +- .../{ => check}/itests/MdListObjectPresentationCheckTest.java | 2 +- .../md/{ => check}/itests/MdObjectNameLengthTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/ConfigurationDataLockTest.java (98%) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/MdListObjectPresentationCheckTest.java (97%) rename tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/{ => check}/itests/MdObjectNameLengthTest.java (97%) diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java similarity index 98% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java index 6630cc4a1..69cd37f08 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/ConfigurationDataLockTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/ConfigurationDataLockTest.java @@ -10,7 +10,7 @@ * Contributors: * 1C-Soft LLC - initial API and implementation *******************************************************************************/ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdListObjectPresentationCheckTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdListObjectPresentationCheckTest.java similarity index 97% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdListObjectPresentationCheckTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdListObjectPresentationCheckTest.java index 5cbbbe330..44ec2e004 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdListObjectPresentationCheckTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdListObjectPresentationCheckTest.java @@ -10,7 +10,7 @@ * Contributors: * 1C-Soft LLC - initial API and implementation *******************************************************************************/ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java similarity index 97% rename from tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java rename to tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java index 8b1acc474..ab6e176c0 100644 --- a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/itests/MdObjectNameLengthTest.java +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectNameLengthTest.java @@ -10,7 +10,7 @@ * Contributors: * 1C-Soft LLC - initial API and implementation *******************************************************************************/ -package com.e1c.v8codestyle.md.itests; +package com.e1c.v8codestyle.md.check.itests; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull;