From 327080b11e9161f059432b680a97c9341deb4a5c Mon Sep 17 00:00:00 2001 From: Chris Jaekl Date: Wed, 30 Dec 2015 18:51:18 +0900 Subject: [PATCH] Further unit tests: loading a variable. --- test/net/jaekl/cfb/store/DbStoreTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } } -- 2.39.2