File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
src/de/greenrobot/event/test
EventBus/src/de/greenrobot/event Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ protected PostingThreadState initialValue() {
72
72
private final boolean sendNoSubscriberEvent ;
73
73
private final boolean eventInheritance ;
74
74
75
+ private final int indexCount ;
76
+
75
77
/** Convenience singleton for apps using a process-wide EventBus instance. */
76
78
public static EventBus getDefault () {
77
79
if (defaultInstance == null ) {
@@ -109,6 +111,7 @@ public EventBus() {
109
111
mainThreadPoster = new HandlerPoster (this , Looper .getMainLooper (), 10 );
110
112
backgroundPoster = new BackgroundPoster (this );
111
113
asyncPoster = new AsyncPoster (this );
114
+ indexCount = builder .subscriberInfoIndexes != null ? builder .subscriberInfoIndexes .size () : 0 ;
112
115
subscriberMethodFinder = new SubscriberMethodFinder (builder .subscriberInfoIndexes ,
113
116
builder .strictMethodVerification , builder .ignoreGeneratedIndex );
114
117
logSubscriberExceptions = builder .logSubscriberExceptions ;
@@ -532,4 +535,8 @@ ExecutorService getExecutorService() {
532
535
void onPostCompleted (List <SubscriberExceptionEvent > exceptionEvents );
533
536
}
534
537
538
+ @ Override
539
+ public String toString () {
540
+ return "EventBus[indexCount=" + indexCount + ", eventInheritance=" + eventInheritance + "]" ;
541
+ }
535
542
}
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ buildscript {
12
12
apply plugin : ' com.android.application'
13
13
apply plugin : ' com.neenbedankt.android-apt'
14
14
15
+ sourceCompatibility = 1.7
16
+
15
17
repositories {
16
18
jcenter()
17
19
}
@@ -28,6 +30,11 @@ android {
28
30
buildToolsVersion ' 23.0.2'
29
31
compileSdkVersion 19
30
32
33
+ compileOptions {
34
+ sourceCompatibility = JavaVersion . VERSION_1_7
35
+ targetCompatibility = JavaVersion . VERSION_1_7
36
+ }
37
+
31
38
sourceSets {
32
39
main {
33
40
manifest. srcFile ' AndroidManifest.xml'
Original file line number Diff line number Diff line change 37
37
* @author Markus Junginger, greenrobot
38
38
*/
39
39
@ RunWith (AndroidJUnit4 .class )
40
- @ Ignore ("Base class" )
41
- public class AbstractEventBusTest {
40
+ public abstract class AbstractEventBusTest {
42
41
/** Activates long(er) running tests e.g. testing multi-threading more thoroughly. */
43
42
protected static final boolean LONG_TESTS = false ;
44
43
You can’t perform that action at this time.
0 commit comments