1
1
package io .appium .java_client .remote .options ;
2
2
3
- import static org .junit .jupiter .api .Assertions .*;
4
-
5
3
import org .junit .jupiter .params .ParameterizedTest ;
6
4
import org .junit .jupiter .params .provider .CsvSource ;
7
5
8
- class BaseOptionsTest {
6
+ import static org . junit . jupiter . api . Assertions . assertEquals ;
9
7
8
+ class BaseOptionsTest {
10
9
11
- @ ParameterizedTest
12
- @ CsvSource ({
13
- "test, appium:test" ,
14
- "appium:test, appium:test" ,
15
- "browserName, browserName" ,
16
- "digital.ai:accessKey, digital.ai:accessKey" ,
17
- "digital-ai:accessKey, digital-ai:accessKey" ,
18
- "digital-ai:my_custom-cap:xyz, digital-ai:my_custom-cap:xyz" ,
19
- "digital-ai:my_custom-cap?xyz, digital-ai:my_custom-cap?xyz" ,
20
- })
21
- void verifyW3CMapping (String capName , String expected ) {
22
- var w3cName = BaseOptions .toW3cName (capName );
23
- assertEquals (expected , w3cName );
24
- }
10
+ @ ParameterizedTest
11
+ @ CsvSource ({
12
+ "test, appium:test" ,
13
+ "appium:test, appium:test" ,
14
+ "browserName, browserName" ,
15
+ "digital.ai:accessKey, digital.ai:accessKey" ,
16
+ "digital-ai:accessKey, digital-ai:accessKey" ,
17
+ "digital-ai:my_custom-cap:xyz, digital-ai:my_custom-cap:xyz" ,
18
+ "digital-ai:my_custom-cap?xyz, digital-ai:my_custom-cap?xyz" ,
19
+ })
20
+ void verifyW3CMapping (String capName , String expected ) {
21
+ var w3cName = BaseOptions .toW3cName (capName );
22
+ assertEquals (expected , w3cName );
23
+ }
25
24
}
0 commit comments