Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.mapdb;
 
 import org.junit.After;
 import org.junit.Test;

https://github.com/jankotek/MapDB/issues/78

Author(s):
Nandor Kracser
public class Issue78Test {
    @Before
    public void setUp() {
    }
    @After
    public void tearDown() {
    }
    @Test(expected = RuntimeException.class, timeout = 10000)
    public void testIssue() {
        DB db = DBMaker.newTempFileDB().make();
        HTreeMap<StringNotSerializableusersMap = db.getHashMap("values");
        usersMap.put("thisKillsTheAsyncWriteThread"new NotSerializable());
        db.commit();
    }
    class NotSerializable {
    }
New to GrepCode? Check out our FAQ X