File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/de/greenrobot/event/test Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ dependencies {
21
21
androidTestCompile project(' :EventBus' )
22
22
compile fileTree(dir : ' libs' , include : ' *.jar' )
23
23
androidTestCompile ' com.android.support.test:runner:0.4.1'
24
+ androidTestCompile ' com.android.support.test:rules:0.4.1'
24
25
}
25
26
26
27
android {
Original file line number Diff line number Diff line change 16
16
package de .greenrobot .event .test ;
17
17
18
18
import android .app .Activity ;
19
+ import android .support .test .rule .UiThreadTestRule ;
19
20
import android .support .test .runner .AndroidJUnit4 ;
20
- import android .test .UiThreadTest ;
21
+ import android .support . test . annotation .UiThreadTest ;
21
22
import android .util .Log ;
22
23
import de .greenrobot .event .EventBus ;
23
24
import de .greenrobot .event .Subscribe ;
24
25
import org .junit .Before ;
26
+ import org .junit .Rule ;
25
27
import org .junit .Test ;
26
28
import org .junit .runner .RunWith ;
27
29
32
34
*/
33
35
@ RunWith (AndroidJUnit4 .class )
34
36
public class EventBusBasicTest {
37
+ @ Rule
38
+ public final UiThreadTestRule uiThreadTestRule = new UiThreadTestRule ();
35
39
36
40
private EventBus eventBus ;
37
41
private String lastStringEvent ;
You can’t perform that action at this time.
0 commit comments