}
@Test
- public void testGetVarId_notFoundIsStored() throws SQLException, TypeMismatchException {
+ public void testGetVarId_notFoundIsStored() throws SQLException, TypeMismatchException, StoreException {
LocalVariable var = new LocalVariable(2345678901L, "VariableNameDoesNotYetExist", "VARIABLE_READ");
Long varId = m_store.getVarId(var);
Long secondVarId = m_store.getVarId(var);
assertEquals(varId, secondVarId);
+
+ LocalVariable loadedVar = m_store.getVar(secondVarId);
+ assertEquals(var, loadedVar);
}
}