From 9255568baf91af0065a5fea1963d19ecfcf90f7a Mon Sep 17 00:00:00 2001 From: ramverma Date: Fri, 25 Jan 2019 15:26:52 +0000 Subject: Fix compilation error on policy-distribution Change-Id: Ic190774c74c11a2d11c3b3b7e0144f69cd8770e8 Issue-ID: POLICY-1428 Signed-off-by: ramverma --- .../handling/file/TestFileSystemReceptionHandler.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'plugins/reception-plugins') diff --git a/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/file/TestFileSystemReceptionHandler.java b/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/file/TestFileSystemReceptionHandler.java index 20922a1b..28408700 100644 --- a/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/file/TestFileSystemReceptionHandler.java +++ b/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/file/TestFileSystemReceptionHandler.java @@ -91,11 +91,15 @@ public class TestFileSystemReceptionHandler { } @Test - public final void testInit() throws IOException { + public final void testInit() throws IOException, InterruptedException { final FileSystemReceptionHandler sypHandler = Mockito.spy(fileSystemHandler); Mockito.doNothing().when(sypHandler).initFileWatcher(Mockito.isA(String.class)); - sypHandler.initializeReception(pssdConfigParameters.getName()); - Mockito.verify(sypHandler, Mockito.times(1)).initFileWatcher(Mockito.isA(String.class)); + try { + sypHandler.initializeReception(pssdConfigParameters.getName()); + } catch (final Exception exp) { + LOGGER.error(exp); + fail("Test should not throw any exception"); + } } @Test -- cgit 1.2.3-korg