mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fixing test cases in CorsFilterTest.java
This commit is contained in:
parent
89a3fdcd39
commit
66aa3b229e
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ public class CorsFilterTest {
|
|||
count++;
|
||||
return null;
|
||||
}
|
||||
}).when(mockResponse).addHeader(anyString(), anyString());
|
||||
}).when(mockResponse).setHeader(anyString(), anyString());
|
||||
|
||||
filter.doFilter(mockRequest, mockResponse, mockedFilterChain);
|
||||
Assert.assertTrue(headers[0].equals("http://localhost:8080"));
|
||||
|
|
@ -82,7 +82,7 @@ public class CorsFilterTest {
|
|||
count++;
|
||||
return null;
|
||||
}
|
||||
}).when(mockResponse).addHeader(anyString(), anyString());
|
||||
}).when(mockResponse).setHeader(anyString(), anyString());
|
||||
|
||||
filter.doFilter(mockRequest, mockResponse, mockedFilterChain);
|
||||
Assert.assertTrue(headers[0].equals(""));
|
||||
|
|
|
|||
Loading…
Reference in a new issue