1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * See the NOTICE file distributed with this work for additional
5
+ * information regarding copyright ownership.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package io .appium .java_client .remote .options ;
18
+
19
+ import org .junit .jupiter .params .ParameterizedTest ;
20
+ import org .junit .jupiter .params .provider .CsvSource ;
21
+
22
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
23
+
24
+ class BaseOptionsTest {
25
+
26
+ @ ParameterizedTest
27
+ @ CsvSource ({
28
+ "test, appium:test" ,
29
+ "appium:test, appium:test" ,
30
+ "browserName, browserName" ,
31
+ "digital.ai:accessKey, digital.ai:accessKey" ,
32
+ "digital-ai:accessKey, digital-ai:accessKey" ,
33
+ "digital-ai:my_custom-cap:xyz, digital-ai:my_custom-cap:xyz" ,
34
+ "digital-ai:my_custom-cap?xyz, digital-ai:my_custom-cap?xyz" ,
35
+ })
36
+ void verifyW3CMapping (String capName , String expected ) {
37
+ var w3cName = BaseOptions .toW3cName (capName );
38
+ assertEquals (expected , w3cName );
39
+ }
40
+ }
0 commit comments