Package com._1c.g5.v8.dt.bsl
Class GrammarOrderTest
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
-
- com._1c.g5.v8.dt.bsl.GrammarOrderTest
-
@InjectWith(BslInjectorProvider.class) public class GrammarOrderTest extends SimpleTestBslParseHelper
List of test for checking the validation of grammar order in Bsl Module with preprocessor elements
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
parser, resourceSet, resourceSetProvider
-
-
Constructor Summary
Constructors Constructor Description GrammarOrderTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidsetUp()voidtestDifficultIssue1()Test error order with difficult issuevoidtestDifficultIssue2()Test error order with difficult issuevoidtestDifficultIssue3()Test error order with difficult issuevoidtestDifficultIssue4()Test error order with difficult issuevoidtestNestedPreprocessor()Test error order with nested PreprocessorvoidtestRightOrderModule()Test right order module, no errors after validation for codeIBslErrorCode.WRONG_GRAMMAR_ORDERvoidtestWrongDecStatStatementOrderInMethod()Test error order for declare statement and statement in methodvoidtestWrongDelareStatementMethodOrder()Test error order for declare statement and methodvoidtestWrongDelareStatementStatementOrder()Test error order for declare statement and statementvoidtestWrongMethodStatementOrder()Test error order for method and statementvoidtestWrongMethodStatementOrderIfPrep()Test error order for method and statement with ifPreprocessorvoidtestWrongMethodStatementOrderIfPrepStartDecStat()Test error order for method and statement with ifPreprocessor (several section) [start with declare statement]-
Methods inherited from class com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
getModuleLineDelimeter, getTextFromFile, parseFile
-
-
-
-
Method Detail
-
setUp
public static void setUp()
-
testRightOrderModule
public void testRightOrderModule() throws ExceptionTest right order module, no errors after validation for codeIBslErrorCode.WRONG_GRAMMAR_ORDER- Throws:
Exception
-
testWrongDelareStatementMethodOrder
public void testWrongDelareStatementMethodOrder() throws ExceptionTest error order for declare statement and method- Throws:
Exception
-
testWrongDelareStatementStatementOrder
public void testWrongDelareStatementStatementOrder() throws ExceptionTest error order for declare statement and statement- Throws:
Exception
-
testWrongMethodStatementOrder
public void testWrongMethodStatementOrder() throws ExceptionTest error order for method and statement- Throws:
Exception
-
testWrongMethodStatementOrderIfPrep
public void testWrongMethodStatementOrderIfPrep() throws ExceptionTest error order for method and statement with ifPreprocessor- Throws:
Exception
-
testWrongMethodStatementOrderIfPrepStartDecStat
public void testWrongMethodStatementOrderIfPrepStartDecStat() throws ExceptionTest error order for method and statement with ifPreprocessor (several section) [start with declare statement]- Throws:
Exception
-
testWrongDecStatStatementOrderInMethod
public void testWrongDecStatStatementOrderInMethod() throws ExceptionTest error order for declare statement and statement in method- Throws:
Exception
-
testNestedPreprocessor
public void testNestedPreprocessor() throws ExceptionTest error order with nested Preprocessor- Throws:
Exception
-
testDifficultIssue1
public void testDifficultIssue1() throws ExceptionTest error order with difficult issue- Throws:
Exception
-
testDifficultIssue2
public void testDifficultIssue2() throws ExceptionTest error order with difficult issue- Throws:
Exception
-
testDifficultIssue3
public void testDifficultIssue3() throws ExceptionTest error order with difficult issue- Throws:
Exception
-
-