Class ChartOfAccountsValidatorTest
- java.lang.Object
-
- com._1c.g5.v8.dt.metadata.mdclass.impl.ChartOfAccountsValidatorTest
-
public class ChartOfAccountsValidatorTest extends Object
Testing class for Chart of accounts validator.
-
-
Constructor Summary
Constructors Constructor Description ChartOfAccountsValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
tearDown()
void
testMissingExtDimensionTypesSeparator()
Test validation in the case when one of the data separators of the extra dimension types is missing from the list of separators of the validated chart of accounts.void
testNonuniqueNameOfPredefinedItems()
Test validation of predefined items name uniqueness.void
testNotAllSharedSeparatorsFromChartOfAccountsInAccumulationRegister()
Test validation in the case there is an accounting register with a set of shared separators that does not include all shared separators of its chart of accountsvoid
testOrderLength()
Tests validation in the case when autoordering is ON and the order length is less than code length.void
testSeverenityOk(org.eclipse.emf.common.util.BasicDiagnostic diagnostics)
void
testSeverityError(int errorCode, Object[] errorData, org.eclipse.emf.common.util.BasicDiagnostic diagnostics)
void
testUnequalIndependentSeparators()
Test validation in the case there is an accounting register with a different set of independent separators than that of its chart of accounts.void
testUnspecifiedExtDimensionTypes()
Tests validation in the case when extra dimension types are not specified while the maximum number of extra dimensions is greater than zero.void
testValidChartOfAccountsBare()
Tests validation of a valid chart of accounts with minimum required features specified.void
testValidChartOfAccountsRich()
Tests validation of a valid chart of accounts with all features specified.
-
-
-
Method Detail
-
testValidChartOfAccountsBare
public void testValidChartOfAccountsBare()
Tests validation of a valid chart of accounts with minimum required features specified.
-
testValidChartOfAccountsRich
public void testValidChartOfAccountsRich()
Tests validation of a valid chart of accounts with all features specified.
-
testUnspecifiedExtDimensionTypes
public void testUnspecifiedExtDimensionTypes()
Tests validation in the case when extra dimension types are not specified while the maximum number of extra dimensions is greater than zero.
-
testMissingExtDimensionTypesSeparator
public void testMissingExtDimensionTypesSeparator()
Test validation in the case when one of the data separators of the extra dimension types is missing from the list of separators of the validated chart of accounts.
-
testUnequalIndependentSeparators
public void testUnequalIndependentSeparators()
Test validation in the case there is an accounting register with a different set of independent separators than that of its chart of accounts.
-
testNotAllSharedSeparatorsFromChartOfAccountsInAccumulationRegister
public void testNotAllSharedSeparatorsFromChartOfAccountsInAccumulationRegister()
Test validation in the case there is an accounting register with a set of shared separators that does not include all shared separators of its chart of accounts
-
testNonuniqueNameOfPredefinedItems
public void testNonuniqueNameOfPredefinedItems()
Test validation of predefined items name uniqueness.
-
testOrderLength
public void testOrderLength()
Tests validation in the case when autoordering is ON and the order length is less than code length.
-
testSeverityError
public void testSeverityError(int errorCode, Object[] errorData, org.eclipse.emf.common.util.BasicDiagnostic diagnostics)
-
testSeverenityOk
public void testSeverenityOk(org.eclipse.emf.common.util.BasicDiagnostic diagnostics)
-
-