Package com.codingcrayons.aspectfaces.configuration

Examples of com.codingcrayons.aspectfaces.configuration.StaticConfiguration


  @Test
  public void testAddConfigurationByFile() {
    try {
      File file = new File(getConfig(CONFIG));
      Configuration configuration = new StaticConfiguration(file.getName());
      AFWeaver.addConfiguration(configuration, file, true, true);
      assertNotNull(ConfigurationStorage.getInstance().getConfiguration(file.getName()));
    } catch (Exception e) {
      fail("An unexpected exception: " + e.getMessage());
    }
View Full Code Here


   */
  public static void addStaticConfiguration(String filePath) throws ConfigurationParsingException,
    ConfigurationFileNotFoundException {

    File config = new File(filePath);
    addConfiguration(new StaticConfiguration(config.getName()), config, false, true);
  }
View Full Code Here

    AFWeaver.setCloseVariableBoundaryIdentifier("$");

    // set config (ignores fields)
    String CONFIG = "detail.config.xml";
    File file = new File(getResource("configuration/" + CONFIG));
    Configuration configuration = new StaticConfiguration(file.getName());
    configuration.addMapping(new Mapping("String", "path"));
    context.setConfiguration(configuration);

    List<MetaProperty> metaProperties = inspector.inspect(context);
    UIFragmentComposer composer = new UIFragmentComposer();
    composer.addAllFields(metaProperties);
View Full Code Here

  @BeforeMethod
  public void setUp() {
    try {
      file = new File("test/com/aspectfaces/config.xml");
      configration = new StaticConfiguration(file.getName());
      holder = new FileConfigurationHolder(configration, file, true, true);
    } catch (Exception e) {
      fail("An unexpected exception: " + e.getMessage());
    }
  }
View Full Code Here

  public void setUp() throws AFException {

    AFWeaver.registerAllAnnotations();

    ConfigurationStorage.getInstance().addConfiguration(
      new StaticConfiguration(CONFIG), new File(getConfig(CONFIG)), false, false
    );

    Context context = new Context("Test", null, null, null, false);
    context.setConfiguration(ConfigurationStorage.getInstance().getConfiguration(CONFIG));
    JavaInspector javaInspector = new JavaInspector(this.getClass());
View Full Code Here

TOP

Related Classes of com.codingcrayons.aspectfaces.configuration.StaticConfiguration

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.