* 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 ValueTypesTest {
+public class LithiumWriteObjectMappingTest {
@Test
public void testStringType() {
- assertEquals(ValueTypes.STRING_TYPE, ValueTypes.getSerializableType("foobar"));
+ assertEquals(ValueTypes.STRING_TYPE, AbstractLithiumDataOutput.getSerializableType("foobar"));
final String largeString = largeString(ValueTypes.STRING_BYTES_LENGTH_THRESHOLD);
- assertEquals(ValueTypes.STRING_BYTES_TYPE, ValueTypes.getSerializableType(largeString));
+ assertEquals(ValueTypes.STRING_BYTES_TYPE, AbstractLithiumDataOutput.getSerializableType(largeString));
}
- private static String largeString(int minSize) {
+ 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++) {