Home
last modified time | relevance | path

Searched refs:exceptionMock (Results 1 – 6 of 6) sorted by relevance

/external/google-cloud-java/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/
DTranslateExceptionTest.java69 RetryHelperException exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow() local
70 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 …]
/external/google-cloud-java/java-resourcemanager/google-cloud-resourcemanager/src/test/java/com/google/cloud/resourcemanager/
DResourceManagerExceptionTest.java81 RetryHelperException exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow() local
82 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 …]
/external/google-cloud-java/java-dns/src/test/java/com/google/cloud/dns/
DDnsExceptionTest.java97 RetryHelperException exceptionMock = createMock(RetryHelperException.class); in testTranslateAndThrow() local
98 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 …]
/external/sdk-platform-java/java-core/google-cloud-core-grpc/src/test/java/com/google/cloud/grpc/
DBaseGrpcServiceExceptionTest.java92 RetryHelper.RetryHelperException exceptionMock = in testTranslateAndThrow() local
94 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()
/external/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/
DBaseServiceExceptionTest.java127 RetryHelper.RetryHelperException exceptionMock = in testTranslateAndThrow() local
129 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()
/external/sdk-platform-java/java-core/google-cloud-core-http/src/test/java/com/google/cloud/http/
DBaseHttpServiceExceptionTest.java151 RetryHelper.RetryHelperException exceptionMock = in testTranslateAndThrow() local
153 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()