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 void
setUp()
void
test1()
New line before preprocessor "name" partvoid
test10()
Expressions before preprocessor "endIf" partvoid
test11()
Expressions after preprocessor "endREgion" partvoid
test12()
Expressions after preprocessor "else" partvoid
test13()
Expressions after preprocessor "then" partvoid
test14()
Expressions after preprocessor "endIf" partvoid
test15()
Expressions after preprocessor "name" partvoid
test16()
Preprocessor conditional expression at 2 linesvoid
test17()
Preprocessor conditional expression at 2 linesvoid
test18()
No errorsvoid
test19()
No errorsvoid
test2()
New line before preprocessor "then" partvoid
test20()
No errorsvoid
test21()
No errorsvoid
test22()
Nested if statement into preprocessorvoid
test23()
void
test24()
void
test25()
void
test3()
New line before preprocessor expression partvoid
test4()
New line before preprocessor "then" part in elsIfvoid
test5()
Expressions before preprocessor "region" partvoid
test6()
Expressions before preprocessor "Endregion" partvoid
test7()
Expressions before preprocessor "if" partvoid
test8()
Expressions before preprocessor "elsIf" partvoid
test9()
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 Exception
New line before preprocessor "name" part- Throws:
Exception
-
test2
public void test2() throws Exception
New line before preprocessor "then" part- Throws:
Exception
-
test3
public void test3() throws Exception
New line before preprocessor expression part- Throws:
Exception
-
test4
public void test4() throws Exception
New line before preprocessor "then" part in elsIf- Throws:
Exception
-
test5
public void test5() throws Exception
Expressions before preprocessor "region" part- Throws:
Exception
-
test6
public void test6() throws Exception
Expressions before preprocessor "Endregion" part- Throws:
Exception
-
test7
public void test7() throws Exception
Expressions before preprocessor "if" part- Throws:
Exception
-
test8
public void test8() throws Exception
Expressions before preprocessor "elsIf" part- Throws:
Exception
-
test9
public void test9() throws Exception
Expressions before preprocessor "else" part- Throws:
Exception
-
test10
public void test10() throws Exception
Expressions before preprocessor "endIf" part- Throws:
Exception
-
test11
public void test11() throws Exception
Expressions after preprocessor "endREgion" part- Throws:
Exception
-
test12
public void test12() throws Exception
Expressions after preprocessor "else" part- Throws:
Exception
-
test13
public void test13() throws Exception
Expressions after preprocessor "then" part- Throws:
Exception
-
test14
public void test14() throws Exception
Expressions after preprocessor "endIf" part- Throws:
Exception
-
test15
public void test15() throws Exception
Expressions after preprocessor "name" part- Throws:
Exception
-
test16
public void test16() throws Exception
Preprocessor conditional expression at 2 lines- Throws:
Exception
-
test17
public void test17() throws Exception
Preprocessor conditional expression at 2 lines- Throws:
Exception
-
test22
public void test22() throws Exception
Nested if statement into preprocessor- Throws:
Exception
-
-