Package org.bladerunnerjs.plugin.proxy

Examples of org.bladerunnerjs.plugin.proxy.VirtualProxyTagHandlerPlugin


  public void setup() throws Exception
  {
    MockPluginLocator mockPluginLocator = new MockPluginLocator();
   
    /* valid tags */
    mockPluginLocator.tagHandlers.add( new VirtualProxyTagHandlerPlugin( new MockTagHandler("tag", "replaced tag!", "") ) );
    mockPluginLocator.tagHandlers.add( new VirtualProxyTagHandlerPlugin( new MockTagHandler("amIDevOrProd", "dev", "prod") ) );
    mockPluginLocator.tagHandlers.add( new VirtualProxyTagHandlerPlugin( new MockTagHandler("a.tag", "replaced tag!", "") ) );
    mockPluginLocator.tagHandlers.add( new VirtualProxyTagHandlerPlugin( new MockTagHandler("a_tag", "replaced tag!", "") ) );
    mockPluginLocator.tagHandlers.add( new VirtualProxyTagHandlerPlugin( new MockTagHandler("a-tag", "replaced tag!", "") ) );
   
    /* invalid valid tags */
    mockPluginLocator.tagHandlers.add( new VirtualProxyTagHandlerPlugin( new MockTagHandler("1tag", "replaced tag!", "") ) );
    mockPluginLocator.tagHandlers.add( new VirtualProxyTagHandlerPlugin( new MockTagHandler("-tag", "replaced tag!", "") ) );
   
    /* asset location support */
    mockPluginLocator.assetLocationPlugins.add(new VirtualProxyAssetLocationPlugin(new BRJSConformantAssetLocationPlugin()));
   
    File tempDir = createTestSdkDirectory();
View Full Code Here


  {
    verifyBrjsIsNotSet();
   
    for(TagHandlerPlugin tagHandler : tagHandlers)
    {
      specTest.pluginLocator.tagHandlers.add( new VirtualProxyTagHandlerPlugin(tagHandler) );
    }
   
    return builderChainer;
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.plugin.proxy.VirtualProxyTagHandlerPlugin

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.