Examples of propertiesToTypesafe()


Examples of com.vercer.engine.persist.PropertyTranslator.propertiesToTypesafe()

        // create instance
        Object value;
        try
        {
          value = translator.propertiesToTypesafe(childProperties, fieldPath, type);
        }
        catch (Exception e)
        {
          // add a bit of context to the trace
          throw new IllegalStateException("Problem translating field " + field, e);
View Full Code Here

Examples of com.vercer.engine.persist.translator.ListTranslator.propertiesToTypesafe()

    assertEquals(1, encoded.size());

    Field field = getClass().getDeclaredField("values");

    @SuppressWarnings("unchecked")
    List<String> decoded = (List<String>) translator.propertiesToTypesafe(encoded, Path.EMPTY_PATH, field.getGenericType());

    assertEquals("is", decoded.get(1));
    assertEquals(3, decoded.size());
  }
View Full Code Here

Examples of com.vercer.engine.persist.translator.ListTranslator.propertiesToTypesafe()

    assertEquals(1, encoded.iterator().next().getPath().getParts().size());

    Field field = getClass().getDeclaredField("values");

    @SuppressWarnings("unchecked")
    List<String> decoded = (List<String>) translator.propertiesToTypesafe(encoded, Path.EMPTY_PATH, field.getGenericType());

    assertEquals("is", decoded.get(1));
    assertEquals(3, decoded.size());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.