ConversionContext { public Configuration getConfiguration(){ return configuration; } protected  ConversionContext(Builder builder); String getKey(); List<PropertyValue> getValues(); TypeLiteral<?> getTargetType(); AnnotatedElement getAnnotatedElement(); Configuration getConfiguration(); Map<String, String> getMeta(); void addSupportedFormats(@SuppressWarnings("rawtypes") Class<?> converterType, String... formatDescriptors); List<String> getSupportedFormats(); Builder toBuilder(); @Override String toString(); @Deprecated ConfigurationContext getConfigurationContext(); static final ConversionContext EMPTY; }
@Test public void testConfiguration() throws Exception { Configuration config = Configuration.EMPTY; ConversionContext ctx = new ConversionContext.Builder("testConfiguration", TypeLiteral.of(List.class)) .setConfiguration(config).build(); assertThat(ctx.getConfiguration()).isEqualTo(config); }