Package ro.isdc.wro.model.resource.processor.impl

Examples of ro.isdc.wro.model.resource.processor.impl.PlaceholderProcessor


    final Properties properties = new Properties();
    properties.setProperty("prop1", "value1");
    properties.setProperty("prop2", "value2");
    properties.setProperty("prop3", "value3");
    properties.setProperty("prop4", "value4");
    final ResourcePreProcessor processor = new PlaceholderProcessor().setPropertiesFactory(WroUtil.simpleObjectFactory(properties));
    final URL url = getClass().getResource("placeholder");

    final File testFolder = new File(url.getFile(), "test");
    final File expectedFolder = new File(url.getFile(), "expected");
    WroTestUtils.compareFromDifferentFoldersByExtension(testFolder, expectedFolder, "css", processor);
View Full Code Here


  }

  @Test(expected=WroRuntimeException.class)
  public void noIgnoreForMissingVariables()
      throws Exception {
    final ResourcePreProcessor processor = new PlaceholderProcessor().setIgnoreMissingVariables(false);
    final URL url = getClass().getResource("placeholder");

    final File testFolder = new File(url.getFile(), "test");
    final File expectedFolder = new File(url.getFile(), "expected");
    WroTestUtils.compareFromDifferentFoldersByExtension(testFolder, expectedFolder, "css", processor);
View Full Code Here

  }
 

  @Test
  public void shouldSupportCorrectResourceTypes() {
    WroTestUtils.assertProcessorSupportResourceTypes(new PlaceholderProcessor(), ResourceType.CSS,
        ResourceType.JS);
  }
View Full Code Here

TOP

Related Classes of ro.isdc.wro.model.resource.processor.impl.PlaceholderProcessor

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.