11package io .appium .java_client .remote .options ;
22
3- import static org .junit .jupiter .api .Assertions .*;
4-
53import org .junit .jupiter .params .ParameterizedTest ;
64import org .junit .jupiter .params .provider .CsvSource ;
75
8- class BaseOptionsTest {
6+ import static org . junit . jupiter . api . Assertions . assertEquals ;
97
8+ class BaseOptionsTest {
109
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+ }
2524}
0 commit comments