Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.mapdb;
 
 import static org.mapdb.BTreeKeySerializer.BASIC;
 import static org.mapdb.BTreeMap.COMPARABLE_COMPARATOR;
 import static org.mapdb.BTreeMap.createRootRef;
 
public class BTreeMapContainsKeyTest extends JSR166TestCase {
	boolean valsOutsideNodes = true;
	Engine r = new StoreDirect(Volume.memoryFactory(false, 0L, false));
                6, , 0, , 0);

    
When valsOutsideNodes is true should not deserialize value during .containsKey
    	.put(1, "abc");
    	boolean contains = .containsKey(1);
		assertEquals(truecontains );
    	assertEquals("Deserialize was called"false.isDeserializeCalled() );
    }
    static class RecordingSerializer extends SerializerBase implements Serializable {
		private static final long serialVersionUID = 1L;
		private boolean deserializeCalled = false;
    	public Object deserialize(DataInput isint capacitythrows IOException {
    		return super.deserialize(iscapacity);
    	}
		public boolean isDeserializeCalled() {
		}
    }
New to GrepCode? Check out our FAQ X