@@ -146,48 +146,36 @@ public void afterFirstSetOfEvents_nextRequestSendsLastResourceVersion() {
146146 @ SuppressWarnings ({"unchecked" , "rawtypes" })
147147 @ Test
148148 public void afterHttpGoneError_nextRequestSendsIncludedResourceVersion () {
149- try {
150- StubWatchFactory .addCallResponses (createHttpGoneErrorResponse (NEXT_RESOURCE_VERSION ));
151- scheduleDeleteResponse (createObjectWithMetaData ());
149+ StubWatchFactory .addCallResponses (createHttpGoneErrorResponse (NEXT_RESOURCE_VERSION ));
150+ scheduleDeleteResponse (createObjectWithMetaData ());
152151
153- createAndRunWatcher (NAMESPACE , stopping , INITIAL_RESOURCE_VERSION );
152+ createAndRunWatcher (NAMESPACE , stopping , INITIAL_RESOURCE_VERSION );
154153
155- assertThat (
156- StubWatchFactory .getRequestParameters ().get (1 ),
157- hasEntry ("resourceVersion" , Integer .toString (NEXT_RESOURCE_VERSION )));
158- } catch (Throwable t ) {
159- t .printStackTrace ();
160- }
154+ assertThat (
155+ StubWatchFactory .getRequestParameters ().get (1 ),
156+ hasEntry ("resourceVersion" , Integer .toString (NEXT_RESOURCE_VERSION )));
161157 }
162158
163159 @ SuppressWarnings ({"unchecked" , "rawtypes" })
164160 @ Test
165161 public void afterHttpGoneErrorWithoutResourceVersion_nextRequestSendsResourceVersionZero () {
166- try {
167- StubWatchFactory .addCallResponses (createHttpGoneErrorWithoutResourceVersionResponse ());
168- scheduleDeleteResponse (createObjectWithMetaData ());
162+ StubWatchFactory .addCallResponses (createHttpGoneErrorWithoutResourceVersionResponse ());
163+ scheduleDeleteResponse (createObjectWithMetaData ());
169164
170- createAndRunWatcher (NAMESPACE , stopping , INITIAL_RESOURCE_VERSION );
165+ createAndRunWatcher (NAMESPACE , stopping , INITIAL_RESOURCE_VERSION );
171166
172- assertThat (StubWatchFactory .getRequestParameters ().get (1 ), hasEntry ("resourceVersion" , "0" ));
173- } catch (Throwable t ) {
174- t .printStackTrace ();
175- }
167+ assertThat (StubWatchFactory .getRequestParameters ().get (1 ), hasEntry ("resourceVersion" , "0" ));
176168 }
177169
178170 @ SuppressWarnings ({"unchecked" , "rawtypes" })
179171 @ Test
180172 public void afterErrorWithoutStatus_nextRequestSendsResourceVersionZero () {
181- try {
182- StubWatchFactory .addCallResponses (createErrorWithoutStatusResponse ());
183- scheduleDeleteResponse (createObjectWithMetaData ());
173+ StubWatchFactory .addCallResponses (createErrorWithoutStatusResponse ());
174+ scheduleDeleteResponse (createObjectWithMetaData ());
184175
185- createAndRunWatcher (NAMESPACE , stopping , INITIAL_RESOURCE_VERSION );
176+ createAndRunWatcher (NAMESPACE , stopping , INITIAL_RESOURCE_VERSION );
186177
187- assertThat (StubWatchFactory .getRequestParameters ().get (1 ), hasEntry ("resourceVersion" , "0" ));
188- } catch (Throwable t ) {
189- t .printStackTrace ();
190- }
178+ assertThat (StubWatchFactory .getRequestParameters ().get (1 ), hasEntry ("resourceVersion" , "0" ));
191179 }
192180
193181 @ SuppressWarnings ({"unchecked" , "rawtypes" })
0 commit comments