Examples of FakeHTable


Examples of org.kiji.testing.fakehtable.FakeHTable

public class TestHBaseSystemTable {
  @Test
  public void testSetDataVersion() throws IOException {
    final Configuration conf = HBaseConfiguration.create();
    final HTableDescriptor desc = new HTableDescriptor();
    final FakeHTable table = new FakeHTable("system", desc, conf, false, 0, true, true, null);

    final KijiURI uri = KijiURI.newBuilder("kiji://test/instance").build();
    final HBaseSystemTable systemTable = new HBaseSystemTable(uri, table);
    systemTable.setDataVersion(ProtocolVersion.parse("kiji-100"));
    assertEquals(ProtocolVersion.parse("kiji-100"), systemTable.getDataVersion());
View Full Code Here
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.