From: Chris Jaekl Date: Wed, 30 Dec 2015 09:51:18 +0000 (+0900) Subject: Further unit tests: loading a variable. X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=327080b11e9161f059432b680a97c9341deb4a5c;p=cfb.git Further unit tests: loading a variable. --- diff --git a/test/net/jaekl/cfb/store/DbStoreTest.java b/test/net/jaekl/cfb/store/DbStoreTest.java index 9c6c117..1e78029 100644 --- a/test/net/jaekl/cfb/store/DbStoreTest.java +++ b/test/net/jaekl/cfb/store/DbStoreTest.java @@ -294,7 +294,7 @@ public class DbStoreTest { } @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); @@ -303,5 +303,8 @@ public class DbStoreTest { Long secondVarId = m_store.getVarId(var); assertEquals(varId, secondVarId); + + LocalVariable loadedVar = m_store.getVar(secondVarId); + assertEquals(var, loadedVar); } }