Package com._1c.g5.v8.dt.bsl
Class PreprocessorGrammarStructureTest
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
-
- com._1c.g5.v8.dt.bsl.PreprocessorGrammarStructureTest
-
@InjectWith(BslInjectorProvider.class) public class PreprocessorGrammarStructureTest extends SimpleTestBslParseHelper
Tests for preprocessor grammar structure
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
parser, resourceSet, resourceSetProvider
-
-
Constructor Summary
Constructors Constructor Description PreprocessorGrammarStructureTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidsetUp()voidtest1()New line before preprocessor "name" partvoidtest10()Expressions before preprocessor "endIf" partvoidtest11()Expressions after preprocessor "endREgion" partvoidtest12()Expressions after preprocessor "else" partvoidtest13()Expressions after preprocessor "then" partvoidtest14()Expressions after preprocessor "endIf" partvoidtest15()Expressions after preprocessor "name" partvoidtest16()Preprocessor conditional expression at 2 linesvoidtest17()Preprocessor conditional expression at 2 linesvoidtest18()No errorsvoidtest19()No errorsvoidtest2()New line before preprocessor "then" partvoidtest20()No errorsvoidtest21()No errorsvoidtest22()Nested if statement into preprocessorvoidtest23()voidtest24()voidtest25()voidtest3()New line before preprocessor expression partvoidtest4()New line before preprocessor "then" part in elsIfvoidtest5()Expressions before preprocessor "region" partvoidtest6()Expressions before preprocessor "Endregion" partvoidtest7()Expressions before preprocessor "if" partvoidtest8()Expressions before preprocessor "elsIf" partvoidtest9()Expressions before preprocessor "else" part-
Methods inherited from class com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
getModuleLineDelimeter, getTextFromFile, parseFile
-
-
-
-
Method Detail
-
setUp
public static void setUp()
-
test1
public void test1() throws ExceptionNew line before preprocessor "name" part- Throws:
Exception
-
test2
public void test2() throws ExceptionNew line before preprocessor "then" part- Throws:
Exception
-
test3
public void test3() throws ExceptionNew line before preprocessor expression part- Throws:
Exception
-
test4
public void test4() throws ExceptionNew line before preprocessor "then" part in elsIf- Throws:
Exception
-
test5
public void test5() throws ExceptionExpressions before preprocessor "region" part- Throws:
Exception
-
test6
public void test6() throws ExceptionExpressions before preprocessor "Endregion" part- Throws:
Exception
-
test7
public void test7() throws ExceptionExpressions before preprocessor "if" part- Throws:
Exception
-
test8
public void test8() throws ExceptionExpressions before preprocessor "elsIf" part- Throws:
Exception
-
test9
public void test9() throws ExceptionExpressions before preprocessor "else" part- Throws:
Exception
-
test10
public void test10() throws ExceptionExpressions before preprocessor "endIf" part- Throws:
Exception
-
test11
public void test11() throws ExceptionExpressions after preprocessor "endREgion" part- Throws:
Exception
-
test12
public void test12() throws ExceptionExpressions after preprocessor "else" part- Throws:
Exception
-
test13
public void test13() throws ExceptionExpressions after preprocessor "then" part- Throws:
Exception
-
test14
public void test14() throws ExceptionExpressions after preprocessor "endIf" part- Throws:
Exception
-
test15
public void test15() throws ExceptionExpressions after preprocessor "name" part- Throws:
Exception
-
test16
public void test16() throws ExceptionPreprocessor conditional expression at 2 lines- Throws:
Exception
-
test17
public void test17() throws ExceptionPreprocessor conditional expression at 2 lines- Throws:
Exception
-
test22
public void test22() throws ExceptionNested if statement into preprocessor- Throws:
Exception
-
-