Package hipi.unittest

Source Code of hipi.unittest.HARImageBundleTestCase

package hipi.unittest;

import hipi.imagebundle.AbstractImageBundle;
import hipi.imagebundle.HARImageBundle;

import java.io.IOException;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;

public class HARImageBundleTestCase extends AbstractImageBundleTestCase {

  @Override
  public AbstractImageBundle createImageBundleAndOpen(int mode) throws IOException {
    Configuration conf = new Configuration();
    HARImageBundle sib = new HARImageBundle(new Path("/tmp/bundle.har"), conf);
    sib.open(mode, true);
    return sib;
  }
}
TOP

Related Classes of hipi.unittest.HARImageBundleTestCase

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.