use of org.forgerock.openam.cts.CoreTokenConfig in project OpenAM by OpenRock.
the class TokenStrategyFactoryTest method shouldReturnCompression.
@Test
public void shouldReturnCompression() {
// Given
CoreTokenConfig config = mock(CoreTokenConfig.class);
given(config.isTokenCompressed()).willReturn(true);
// When
Collection<BlobStrategy> strategies = factory.getStrategies(config);
// Then
assertThat(strategies).contains(compression);
}
Aggregations