Package org.scf4j.util

Examples of org.scf4j.util.TypeCoercer


    assertEquals(TEST_VALUE, config.getStringProperty());
  }

  @Test
  public void testOtherProperties() throws IOException, ConfigurationException {
    TypeCoercer coercer = mock(TypeCoercer.class);
    Object obj = mock(Object.class);

    when(coercer.coerce(TEST_VALUE, Object.class)).thenReturn(obj);

    makeMinimalConfig(folder.newFile(TEST_PROPS));

    configurator.setTypeCoercer(coercer);
    TestOtherProp config = configurator.getConfiguration(TestOtherProp.class);
View Full Code Here

TOP

Related Classes of org.scf4j.util.TypeCoercer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.