Package gluebooster.basic.math

Examples of gluebooster.basic.math.TransformationByProperties


 
 
 
  @Test
  public void testFieldFormattingParts() throws Exception{
    TransformationByProperties trafo= ConfigurationPropertiesReader.createPropertiesTransformation();
   
    //This transformation is needed when this test is invoked from outside maven (for example eclipse)
    TransformationByStringReplace trafo2 = new TransformationByStringReplace();
    trafo2.setKey("${project.groupId}");
    trafo2.setValue("gluebooster/demos/finance");
    trafo.setPropertiesValueTransformation(trafo2);
   
    ObjectFormatterByXSD formatter = new ObjectFormatterByXSD();
    formatter.setResourcePathTransformation(trafo);
    ArrayList<String> list = new ArrayList<String>();
    list.add(ResourceUtils.CLASSPATH_URL_PREFIX+ "/${maven.project.group.id}/appConfiguration/definitions/fieldDefinitions.xsd");
View Full Code Here


    
    
   }
  
   public static TransformationByProperties createPropertiesTransformation() throws Exception{
     TransformationByProperties result = new TransformationByProperties();
     result.setKeyPrefix("${");
     result.setKeySuffix("}");
     result.setProperties(new ConfigurationPropertiesReader().getApplicationProperties());
     return result;
   }
View Full Code Here

TOP

Related Classes of gluebooster.basic.math.TransformationByProperties

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.