mobile/android/tests/background/junit3/src/sync/helpers/ExpectFinishFailDelegate.java

branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
equal deleted inserted replaced
-1:000000000000 0:93878d7448b8
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
3
4 package org.mozilla.gecko.background.sync.helpers;
5
6 import org.mozilla.gecko.sync.repositories.InvalidSessionTransitionException;
7
8 public class ExpectFinishFailDelegate extends DefaultFinishDelegate {
9 @Override
10 public void onFinishFailed(Exception ex) {
11 if (!(ex instanceof InvalidSessionTransitionException)) {
12 performNotify("Expected InvalidSessionTransititionException but got ", ex);
13 }
14 }
15 }

mercurial