final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true)
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor))
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule =
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule = new OkReplayRuleChain(configuration, activityTestRule).get();
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule = new OkReplayRuleChain(configuration, activityTestRule).get();
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule = new OkReplayRuleChain(configuration, activityTestRule).get(); @Test
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule = new OkReplayRuleChain(configuration, activityTestRule).get(); @Test @OkReplay
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule = new OkReplayRuleChain(configuration, activityTestRule).get(); @Test @OkReplay public void testFooBar() {
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule = new OkReplayRuleChain(configuration, activityTestRule).get(); @Test @OkReplay public void testFooBar() { // write your test as usual...
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule = new OkReplayRuleChain(configuration, activityTestRule).get(); @Test @OkReplay public void testFooBar() { // write your test as usual... }
final OkReplayConfig configuration = new OkReplayConfig.Builder() .tapeRoot(new AndroidTapeRoot(getContext(), getClass())) .defaultMode(TapeMode.READ_WRITE) // or TapeMode.READ_ONLY .sslEnabled(true) .interceptor(okReplayInterceptor)) .build(); @Rule public final TestRule testRule = new OkReplayRuleChain(configuration, activityTestRule).get(); @Test @OkReplay public void testFooBar() { // write your test as usual... }