/*
 * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.controller.cluster.datastore.node.utils.stream;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class LithiumWriteObjectMappingTest {
    @Test
    public void testStringType() {
        assertEquals(ValueTypes.STRING_TYPE, AbstractLithiumDataOutput.getSerializableType("foobar"));
        final String largeString = largeString(ValueTypes.STRING_BYTES_LENGTH_THRESHOLD);
        assertEquals(ValueTypes.STRING_BYTES_TYPE, AbstractLithiumDataOutput.getSerializableType(largeString));
    }

    private static String largeString(final int minSize) {
        final int pow = (int) (Math.log(minSize * 2) / Math.log(2));
        StringBuilder sb = new StringBuilder("X");
        for (int i = 0; i < pow; i++) {
            sb.append(sb);
        }
        return sb.toString();
    }
}

@@ -552,34 +552,36 @@
 ssertEquals(
+Lithium
 Value
-Types
 .STRING_TYPE
@@ -687,26 +687,28 @@
 eString(
+Lithium
 Value
-Types
 .STRING_
@@ -757,18 +757,20 @@
 als(
+Lithium
 Value
-Types
 .STR

Rename ValueTypes to LithiumValue