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 void
setUp()
void
testDifficultIssue1()
Test error order with difficult issuevoid
testDifficultIssue2()
Test error order with difficult issuevoid
testDifficultIssue3()
Test error order with difficult issuevoid
testDifficultIssue4()
Test error order with difficult issuevoid
testNestedPreprocessor()
Test error order with nested Preprocessorvoid
testRightOrderModule()
Test right order module, no errors after validation for codeIBslErrorCode.WRONG_GRAMMAR_ORDER
void
testWrongDecStatStatementOrderInMethod()
Test error order for declare statement and statement in methodvoid
testWrongDelareStatementMethodOrder()
Test error order for declare statement and methodvoid
testWrongDelareStatementStatementOrder()
Test error order for declare statement and statementvoid
testWrongMethodStatementOrder()
Test error order for method and statementvoid
testWrongMethodStatementOrderIfPrep()
Test error order for method and statement with ifPreprocessorvoid
testWrongMethodStatementOrderIfPrepStartDecStat()
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 Exception
Test right order module, no errors after validation for codeIBslErrorCode.WRONG_GRAMMAR_ORDER
- Throws:
Exception
-
testWrongDelareStatementMethodOrder
public void testWrongDelareStatementMethodOrder() throws Exception
Test error order for declare statement and method- Throws:
Exception
-
testWrongDelareStatementStatementOrder
public void testWrongDelareStatementStatementOrder() throws Exception
Test error order for declare statement and statement- Throws:
Exception
-
testWrongMethodStatementOrder
public void testWrongMethodStatementOrder() throws Exception
Test error order for method and statement- Throws:
Exception
-
testWrongMethodStatementOrderIfPrep
public void testWrongMethodStatementOrderIfPrep() throws Exception
Test error order for method and statement with ifPreprocessor- Throws:
Exception
-
testWrongMethodStatementOrderIfPrepStartDecStat
public void testWrongMethodStatementOrderIfPrepStartDecStat() throws Exception
Test error order for method and statement with ifPreprocessor (several section) [start with declare statement]- Throws:
Exception
-
testWrongDecStatStatementOrderInMethod
public void testWrongDecStatStatementOrderInMethod() throws Exception
Test error order for declare statement and statement in method- Throws:
Exception
-
testNestedPreprocessor
public void testNestedPreprocessor() throws Exception
Test error order with nested Preprocessor- Throws:
Exception
-
testDifficultIssue1
public void testDifficultIssue1() throws Exception
Test error order with difficult issue- Throws:
Exception
-
testDifficultIssue2
public void testDifficultIssue2() throws Exception
Test error order with difficult issue- Throws:
Exception
-
testDifficultIssue3
public void testDifficultIssue3() throws Exception
Test error order with difficult issue- Throws:
Exception
-
-