From 704e7bd6b2b843aad13ac1e6ab50438d569f864e Mon Sep 17 00:00:00 2001 From: memeeerit Date: Tue, 28 Nov 2023 16:29:16 -0500 Subject: [PATCH] db test fix --- .../se/nvip/db/repositories/RawDescriptionRepositoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/src/test/java/edu/rit/se/nvip/db/repositories/RawDescriptionRepositoryTest.java b/db/src/test/java/edu/rit/se/nvip/db/repositories/RawDescriptionRepositoryTest.java index b536ce7d5..70a4cb6ce 100644 --- a/db/src/test/java/edu/rit/se/nvip/db/repositories/RawDescriptionRepositoryTest.java +++ b/db/src/test/java/edu/rit/se/nvip/db/repositories/RawDescriptionRepositoryTest.java @@ -222,7 +222,7 @@ public void markGarbageTest() { @SneakyThrows public void getUsedRawVulnerabilitiesTest() { when(mockRS.next()).thenReturn(true, true, false); - when(mockRS.getInt(anyString())).thenReturn(1); + when(mockRS.getInt(anyString())).thenReturn(1,2); when(mockRS.getString(anyString())).thenReturn("desc"); when(mockRS.getTimestamp(anyString())).thenReturn(new Timestamp(System.currentTimeMillis()));