File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/test/java/com/getindata/connectors/http/internal Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com .getindata .connectors .http .internal ;
2
+
3
+ import org .junit .jupiter .params .ParameterizedTest ;
4
+ import org .junit .jupiter .params .provider .CsvSource ;
5
+ import static org .assertj .core .api .Assertions .assertThat ;
6
+
7
+ public class ComposeHeaderPreprocessorTest {
8
+ @ ParameterizedTest
9
+ @ CsvSource ({
10
+ "a, a" ,
11
+ "a123, a123" ,
12
+ "user:password, user:password" ,
13
+ "Basic dXNlcjpwYXNzd29yZA==, Basic dXNlcjpwYXNzd29yZA=="
14
+ })
15
+ public void testNoPreprocessors (String rawValue , String expectedValue ) {
16
+ var noPreprocessorHeaderPreprocessor = new ComposeHeaderPreprocessor (null );
17
+ var obtainedValue = noPreprocessorHeaderPreprocessor
18
+ .preprocessValueForHeader ("someHeader" , rawValue );
19
+ assertThat (obtainedValue ).isEqualTo (expectedValue );
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments