File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
android-sdk/src/androidTest/java/com/optimizely/ab/android/sdk
event-handler/src/test/java/com/optimizely/ab/android/event_handler
user-experiment-record/src/androidTest/java/com/optimizely/user_experiment_record Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1515 */
1616package com .optimizely .ab .android .sdk ;
1717
18+ import android .annotation .TargetApi ;
1819import android .content .Context ;
1920import android .content .Intent ;
21+ import android .os .Build ;
2022import android .support .test .InstrumentationRegistry ;
2123
2224import com .optimizely .ab .android .shared .Cache ;
@@ -72,6 +74,7 @@ public void receivedActionBootCompleted() {
7274 verify (logger ).info ("Received intent with action {}" , Intent .ACTION_BOOT_COMPLETED );
7375 }
7476
77+ @ TargetApi (Build .VERSION_CODES .HONEYCOMB_MR1 )
7578 @ Test
7679 public void receivedActionMyPackageReplaced () {
7780 Context context = InstrumentationRegistry .getTargetContext ();
Original file line number Diff line number Diff line change 1717
1818import android .content .Context ;
1919import android .content .Intent ;
20+ import android .os .Build ;
21+ import android .support .annotation .RequiresApi ;
2022
2123import org .junit .Before ;
2224import org .junit .Test ;
@@ -75,6 +77,7 @@ public void onReceiveValidBootComplete() {
7577 verify (logger ).info ("Rescheduling event flushing if necessary" );
7678 }
7779
80+ @ RequiresApi (api = Build .VERSION_CODES .HONEYCOMB_MR1 )
7881 @ Test
7982 public void onReceiveValidPackageReplaced () {
8083 when (intent .getAction ()).thenReturn (Intent .ACTION_MY_PACKAGE_REPLACED );
Original file line number Diff line number Diff line change 1515 */
1616package com .optimizely .user_experiment_record ;
1717
18+ import android .os .Build ;
19+ import android .support .annotation .RequiresApi ;
1820import android .support .test .InstrumentationRegistry ;
1921import android .support .test .espresso .core .deps .guava .util .concurrent .ListeningExecutorService ;
2022import android .support .test .espresso .core .deps .guava .util .concurrent .MoreExecutors ;
4850 * Tests for {@link AndroidUserExperimentRecord}
4951 */
5052@ RunWith (AndroidJUnit4 .class )
53+ @ RequiresApi (Build .VERSION_CODES .HONEYCOMB )
5154public class AndroidUserExperimentRecordTest {
5255
5356 private AndroidUserExperimentRecord androidUserExperimentRecord ;
You can’t perform that action at this time.
0 commit comments