use of com.forgerock.openbanking.common.model.version.OBVersion in project openbanking-aspsp by OpenBankingToolkit.
the class ApiVersionMatcherTest method shouldGetVersionGiven3_1_5.
@Test
public void shouldGetVersionGiven3_1_5() {
// Given
String requestUri = "v3.1.5";
// When
OBVersion version = ApiVersionUtils.getOBVersion(requestUri);
// Then
assertThat(version).isEqualTo(OBVersion.v3_1_5);
}
use of com.forgerock.openbanking.common.model.version.OBVersion in project openbanking-aspsp by OpenBankingToolkit.
the class ApiVersionMatcherTest method shouldGetVersionGiven3_0.
@Test
public void shouldGetVersionGiven3_0() {
// Given
String requestUri = "/open-banking/v3.0/pisp";
// When
OBVersion version = ApiVersionUtils.getOBVersion(requestUri);
// Then
assertThat(version).isEqualTo(OBVersion.v3_0);
}
Aggregations