Skip to content

Commit afce285

Browse files
committed
tidy
1 parent b8d1fb3 commit afce285

File tree

2 files changed

+48
-56
lines changed

2 files changed

+48
-56
lines changed
Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,46 @@
11
*** Settings ***
2-
Documentation Tests for checking that library initialization arguments are handled correctly. Taking libraries without arguments is not tested here, because almost every other suite does that.
3-
Suite Setup Run Tests ${EMPTY} test_libraries/java_library_imports_with_args.robot
4-
Force Tags require-jython
5-
Resource resource_for_importing_libs_with_args.robot
6-
Test Template Library import should have been successful
7-
2+
Documentation Tests for checking that library initialization arguments are handled correctly.
3+
... Taking libraries without arguments is not tested here, because almost every other suite does that.
4+
Suite Setup Run Tests ${EMPTY} test_libraries/java_library_imports_with_args.robot
5+
Force Tags require-jython
6+
Test Template Library import should have been successful
7+
Resource resource_for_importing_libs_with_args.robot
88

99
*** Test Cases ***
1010
Mandatory arguments
11-
MandatoryArgs first arg another arg
11+
MandatoryArgs first arg another arg
1212

1313
Default values
14-
DefaultArgs m1
15-
DefaultArgs m2 d1
16-
DefaultArgs m3 1 2
14+
DefaultArgs m1
15+
DefaultArgs m2 d1
16+
DefaultArgs m3 1 2
1717

1818
Variables containing objects
19-
MandatoryArgs 42 The name of the JavaObject
20-
MandatoryArgs {key: value} True
19+
MandatoryArgs 42 The name of the JavaObject
20+
MandatoryArgs {key: value} True
2121

2222
Too Few Arguments
23-
[Template] Library import should have failed
23+
[Template] Library import should have failed
2424
MandatoryArgs 2 arguments, got 1.
25-
DefaultArgs 1 to 3 arguments, got 0.
25+
DefaultArgs 1 to 3 arguments, got 0.
2626

2727
Too Many Arguments
28-
[Template] Library import should have failed
28+
[Template] Library import should have failed
2929
MandatoryArgs 2 arguments, got 4.
30-
DefaultArgs 1 to 3 arguments, got 5.
30+
DefaultArgs 1 to 3 arguments, got 5.
3131

3232
Non-existing variables
3333
[Template]
34-
Check syslog contains Variable '\${NON EXISTING}' not found.
35-
36-
37-
***Keywords***
34+
Check syslog contains Variable '\${NON EXISTING}' not found.
3835

36+
*** Keywords ***
3937
Library import should have been successful
40-
[Arguments] ${lib} @{params}
41-
Check Test Case ${TEST NAME}
42-
${par} = Catenate SEPARATOR=${SPACE}|${SPACE} @{params}
43-
Check Syslog Contains Imported test library class '${lib}' from unknown location.
44-
Check Syslog Contains Imported library '${lib}' with arguments [ ${par} ]
38+
[Arguments] ${lib} @{params}
39+
Check Test Case ${TEST NAME}
40+
${par} = Catenate SEPARATOR=${SPACE}|${SPACE} @{params}
41+
Check Syslog Contains Imported test library class '${lib}' from unknown location.
42+
Check Syslog Contains Imported library '${lib}' with arguments [ ${par} ]
4543

4644
Library import should have failed
47-
[Arguments] ${lib} ${err}
48-
Check Syslog Contains Test Library '${lib}' expected ${err}
45+
[Arguments] ${lib} ${err}
46+
Check Syslog Contains Test Library '${lib}' expected ${err}
Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,36 @@
11
*** Settings ***
2-
Library MandatoryArgs first arg another arg
2+
Library MandatoryArgs first arg another arg
33

4-
Library DefaultArgs m1 WITH NAME D1
5-
Library DefaultArgs m2 d1 WITH NAME D2
6-
Library DefaultArgs m3 1 2 WITH NAME D3
4+
Library DefaultArgs m1 WITH NAME D1
5+
Library DefaultArgs m2 d1 WITH NAME D2
6+
Library DefaultArgs m3 1 2 WITH NAME D3
77

8-
Variables java_vars_for_imports.py
9-
Library MandatoryArgs ${42} ${JAVA OBJECT} WITH NAME O1
10-
Library MandatoryArgs @{LIST WITH OBJECTS} WITH NAME O2
11-
12-
Library MandatoryArgs too few
13-
Library DefaultArgs
14-
15-
Library MandatoryArgs too many args here
16-
Library DefaultArgs too many args here too
17-
18-
Library MandatoryArgs ${NON EXISTING} hello
8+
Variables java_vars_for_imports.py
9+
Library MandatoryArgs ${42} ${JAVA OBJECT} WITH NAME O1
10+
Library MandatoryArgs @{LIST WITH OBJECTS} WITH NAME O2
1911

12+
Library MandatoryArgs too few
13+
Library DefaultArgs
14+
Library MandatoryArgs too many args here
15+
Library DefaultArgs too many args here too
16+
Library MandatoryArgs ${NON EXISTING} hello
2017

2118
*** Test Cases ***
22-
2319
Mandatory arguments
24-
Verify arguments MandatoryArgs first arg another arg
20+
Verify arguments MandatoryArgs first arg another arg
2521

2622
Default values
27-
Verify arguments D1 m1
28-
Verify arguments D2 m2 d1
29-
Verify arguments D3 m3 1 2
23+
Verify arguments D1 m1
24+
Verify arguments D2 m2 d1
25+
Verify arguments D3 m3 1 2
3026

3127
Variables containing objects
32-
Verify arguments O1 42 The name of the JavaObject
33-
Verify arguments O2 {key=value} true
34-
35-
36-
***Keywords***
28+
Verify arguments O1 42 The name of the JavaObject
29+
Verify arguments O2 {key=value} true
3730

31+
*** Keywords ***
3832
Verify arguments
39-
[Arguments] ${lib} @{expected args}
40-
${expected} = Catenate SEPARATOR=${SPACE}&${SPACE} @{expected args}
41-
${actual} = Run Keyword ${lib}.Get Args
42-
Should be equal ${actual} ${expected}
33+
[Arguments] ${lib} @{expected args}
34+
${expected} = Catenate SEPARATOR=${SPACE}&${SPACE} @{expected args}
35+
${actual} = Run Keyword ${lib}.Get Args
36+
Should be equal ${actual} ${expected}

0 commit comments

Comments
 (0)