Package com.ripariandata.timberwolf

Examples of com.ripariandata.timberwolf.MockHTable


{
    private HBaseManager manager = new HBaseManager();

    private IHBaseTable mockTable(final HBaseManager hbaseManager, final String tableName)
    {
        MockHTable table = MockHTable.create(tableName);
        HBaseTable hbaseTable = new HBaseTable(table);
        hbaseManager.addTable(hbaseTable);
        return hbaseTable;
    }
View Full Code Here


     * mock HTableInterface.
     */
    @Test
    public void testWrite()
    {
        MockHTable mockHTable = MockHTable.create();

        String arbitraryFamily = "columnFamily";
        String arbitraryHeader = "header";

        Dictionary<String, String> mailboxItemDescription = generateMailboxItemDescription();
View Full Code Here

     */
    @Test
    public void testInterfaces()
    {
        HBaseManager hbase = new HBaseManager();
        MockHTable mockHTable = MockHTable.create("defaultTableName");
        String tableName = Bytes.toString(mockHTable.getTableName());

        HBaseTable table = new HBaseTable(mockHTable);
        Assert.assertEquals(tableName, table.getName());
        hbase.addTable(table);

View Full Code Here

    {
        final String value1 = "val1";
        final String value2 = "val2";
        final byte[] key = Bytes.toBytes("key");

        MockHTable table = MockHTable.create(TEST_TABLE_NAME);

        try
        {
            put(table, key, value1);
            Assert.assertEquals(value1, get(table, key));
View Full Code Here

TOP

Related Classes of com.ripariandata.timberwolf.MockHTable

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.