Package org.bladerunnerjs.testing.specutility.engine

Source Code of org.bladerunnerjs.testing.specutility.engine.BundlableNodeBuilder

package org.bladerunnerjs.testing.specutility.engine;

import java.io.IOException;
import org.bladerunnerjs.model.BundlableNode;
import org.bladerunnerjs.model.StaticContentAccessor;
import org.bladerunnerjs.model.exception.request.ContentProcessingException;
import org.bladerunnerjs.model.exception.request.MalformedRequestException;
import org.bladerunnerjs.model.exception.request.ResourceNotFoundException;

public class BundlableNodeBuilder<N extends BundlableNode> extends AssetContainerBuilder<N> {
  private BundlableNode bundlableNode;
 
  public BundlableNodeBuilder(SpecTest specTest, N bundlableNode) {
    super(specTest, bundlableNode);
    this.bundlableNode = bundlableNode;
  }
 
  public BuilderChainer hasReceivedRequest(String requestPath) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, IOException {
    bundlableNode.handleLogicalRequest(requestPath, new StaticContentAccessor(bundlableNode.app()), bundlableNode.root().getAppVersionGenerator().getDevVersion());
   
    return builderChainer;
  }
}
TOP

Related Classes of org.bladerunnerjs.testing.specutility.engine.BundlableNodeBuilder

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.