-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (core): Provide URLParameter helper to add a query param to a list
- Loading branch information
Showing
5 changed files
with
134 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...test/java/com/sinch/sdk/core/databind/query_parameter/InstantToIso8601SerializerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
core/src/test/java/com/sinch/sdk/core/http/URLParameterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.sinch.sdk.core.http; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import com.sinch.sdk.core.http.URLParameter.STYLE; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class URLParameterTest { | ||
|
||
@Test | ||
void matrix() { | ||
assertEquals(STYLE.MATRIX, URLParameter.matrix); | ||
} | ||
|
||
@Test | ||
void label() { | ||
assertEquals(STYLE.LABEL, URLParameter.label); | ||
} | ||
|
||
@Test | ||
void form() { | ||
assertEquals(STYLE.FORM, URLParameter.form); | ||
} | ||
|
||
@Test | ||
void simple() { | ||
assertEquals(STYLE.SIMPLE, URLParameter.simple); | ||
} | ||
|
||
@Test | ||
void spaceDelimited() { | ||
assertEquals(STYLE.SPACE_DELIMITED, URLParameter.spaceDelimited); | ||
} | ||
|
||
@Test | ||
void pipeDelimited() { | ||
assertEquals(STYLE.PIPE_DELIMITED, URLParameter.pipeDelimited); | ||
} | ||
|
||
@Test | ||
void deepObject() { | ||
assertEquals(STYLE.DEEP_OBJECT, URLParameter.deepObject); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters