Searched refs:exceptionMock (Results 1 – 6 of 6) sorted by relevance
69 RetryHelperException exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow() local70 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()71 replay(exceptionMock); in testTranslateAndThrow()73 TranslateException.translateAndThrow(exceptionMock); in testTranslateAndThrow()79 verify(exceptionMock); in testTranslateAndThrow()82 exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow()83 expect(exceptionMock.getMessage()).andReturn("message").times(1); in testTranslateAndThrow()84 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()85 replay(exceptionMock); in testTranslateAndThrow()87 TranslateException.translateAndThrow(exceptionMock); in testTranslateAndThrow()[all …]
81 RetryHelperException exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow() local82 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()83 replay(exceptionMock); in testTranslateAndThrow()85 ResourceManagerException.translateAndThrow(exceptionMock); in testTranslateAndThrow()91 verify(exceptionMock); in testTranslateAndThrow()94 exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow()95 expect(exceptionMock.getMessage()).andReturn("message").times(1); in testTranslateAndThrow()96 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()97 replay(exceptionMock); in testTranslateAndThrow()99 ResourceManagerException.translateAndThrow(exceptionMock); in testTranslateAndThrow()[all …]
97 RetryHelperException exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow() local98 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()99 replay(exceptionMock); in testTranslateAndThrow()101 DnsException.translateAndThrow(exceptionMock); in testTranslateAndThrow()109 verify(exceptionMock); in testTranslateAndThrow()112 exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow()113 expect(exceptionMock.getMessage()).andReturn("message").times(1); in testTranslateAndThrow()114 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()115 replay(exceptionMock); in testTranslateAndThrow()117 DnsException.translateAndThrow(exceptionMock); in testTranslateAndThrow()[all …]
92 RetryHelper.RetryHelperException exceptionMock = in testTranslateAndThrow() local94 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()95 replay(exceptionMock); in testTranslateAndThrow()97 BaseServiceException.translate(exceptionMock); in testTranslateAndThrow()103 verify(exceptionMock); in testTranslateAndThrow()
127 RetryHelper.RetryHelperException exceptionMock = in testTranslateAndThrow() local129 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()130 replay(exceptionMock); in testTranslateAndThrow()132 BaseServiceException.translate(exceptionMock); in testTranslateAndThrow()138 verify(exceptionMock); in testTranslateAndThrow()
151 RetryHelper.RetryHelperException exceptionMock = in testTranslateAndThrow() local153 expect(exceptionMock.getCause()).andReturn(cause).times(2); in testTranslateAndThrow()154 replay(exceptionMock); in testTranslateAndThrow()156 BaseServiceException.translate(exceptionMock); in testTranslateAndThrow()162 verify(exceptionMock); in testTranslateAndThrow()