mirror of
https://github.com/tiennm99/tjahzi.git
synced 2026-10-20 02:18:25 +00:00
Re #87: Added more refactorings and bugfixes.
This commit is contained in:
1 parent
61c4adcc08
commit
b6df3a4312
1 file changed
+4
@@ -12,6 +12,7 @@ class HttpHeadersFactoryTest {
|
||||
void shouldAddAuthHeaderIfCredentialsAreProvided_NoAdditionalHeaders() {
|
||||
// Given
|
||||
ClientConfiguration configuration = ClientConfiguration.builder()
|
||||
.withHost("blah")
|
||||
.withUsername("foob")
|
||||
.withPassword("ar")
|
||||
.build();
|
||||
@@ -36,6 +37,7 @@ class HttpHeadersFactoryTest {
|
||||
void shouldAddAuthHeaderIfCredentialsAreProvided_WithAdditionalHeaders() {
|
||||
// Given
|
||||
ClientConfiguration configuration = ClientConfiguration.builder()
|
||||
.withHost("blah")
|
||||
.withUsername("foob")
|
||||
.withPassword("ar")
|
||||
.build();
|
||||
@@ -65,6 +67,7 @@ class HttpHeadersFactoryTest {
|
||||
void shouldNotAddAuthHeader_NoAdditionalHeaders() {
|
||||
// Given
|
||||
ClientConfiguration configuration = ClientConfiguration.builder()
|
||||
.withHost("blah")
|
||||
.build();
|
||||
|
||||
String[] additionalHeaders = new String[0];
|
||||
@@ -84,6 +87,7 @@ class HttpHeadersFactoryTest {
|
||||
void shouldNOtAddAuthHeader_WithAdditionalHeaders() {
|
||||
// Given
|
||||
ClientConfiguration configuration = ClientConfiguration.builder()
|
||||
.withHost("blah")
|
||||
.build();
|
||||
|
||||
String[] additionalHeaders = new String[]{
|
||||
|
||||
Reference in new issue
Block a user