Update Robolectric and make broken tests compilable again

This commit is contained in:
serso
2017-08-17 17:04:43 +02:00
parent 5feca3f549
commit f6e520eb56
13 changed files with 100 additions and 63 deletions

View File

@@ -28,6 +28,7 @@ import android.app.Application;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
import android.support.annotation.VisibleForTesting;
import android.text.TextUtils;
import com.squareup.otto.Bus;
@@ -97,8 +98,11 @@ public class Editor {
}
}
@VisibleForTesting
@Nullable
private final EditorTextProcessor textProcessor;
EditorTextProcessor textProcessor;
@Nonnull
private final Engine engine;
@Nullable
private AsyncHighlighter highlighterTask;
@Nullable
@@ -107,12 +111,11 @@ public class Editor {
private EditorState state = EditorState.empty();
@Inject
Bus bus;
@Inject
Engine engine;
@Inject
public Editor(@Nonnull Application application, @Nonnull SharedPreferences preferences, @Nonnull Engine engine) {
textProcessor = new EditorTextProcessor(application, preferences, engine);
this.engine = engine;
this.textProcessor = new EditorTextProcessor(application, preferences, engine);
}
public void init() {