Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 package org.mozilla.gecko.background.sync.helpers;
6 import static junit.framework.Assert.assertNotNull;
7 import junit.framework.AssertionFailedError;
9 import org.mozilla.gecko.sync.repositories.RepositorySession;
11 public class ExpectBeginDelegate extends DefaultBeginDelegate {
12 @Override
13 public void onBeginSucceeded(RepositorySession session) {
14 try {
15 assertNotNull(session);
16 } catch (AssertionFailedError e) {
17 performNotify("Expected non-null session", e);
18 return;
19 }
20 performNotify();
21 }
22 }