All Projects → Plastix → Rxschedulerrule

Plastix / Rxschedulerrule

Licence: mit
Simple JUnit rule for overriding RxJava/RxAndroid schedulers during unit tests

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Rxschedulerrule

Rxjava2 Android Samples
RxJava 2 Android Examples - Migration From RxJava 1 to RxJava 2 - How to use RxJava 2 in Android
Stars: ✭ 4,950 (+14042.86%)
Mutual labels:  rxjava, rxjava2
Rx.observe
Transform any method to an Rx Observable ! (VIPER)
Stars: ✭ 34 (-2.86%)
Mutual labels:  rxjava, rxjava2
Fast Android Networking
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
Stars: ✭ 5,346 (+15174.29%)
Mutual labels:  rxjava, rxjava2
Traceur
Easier RxJava2 debugging with better stacktraces
Stars: ✭ 502 (+1334.29%)
Mutual labels:  rxjava, rxjava2
Rxreactor
A Kotlin framework for a reactive and unidirectional RxJava application architecture
Stars: ✭ 19 (-45.71%)
Mutual labels:  rxjava, rxjava2
Rxfirebase
Rxjava 2.0 wrapper on Google's Android Firebase library.
Stars: ✭ 509 (+1354.29%)
Mutual labels:  rxjava, rxjava2
Android Kotlin Mvp Architecture
This repository contains a detailed sample app that implements MVP architecture in Kotlin using Dagger2, Room, RxJava2, FastAndroidNetworking and PlaceholderView
Stars: ✭ 615 (+1657.14%)
Mutual labels:  rxjava, rxjava2
Rxbluetooth
Android reactive bluetooth
Stars: ✭ 405 (+1057.14%)
Mutual labels:  rxjava, rxjava2
Mvvmhabit
goldze: 本人喜欢尝试新的技术,以后发现有好用的东西,我将会在企业项目中实战,没有问题了就会把它引入到MVVMHabit中,一直维护着这套框架,谢谢各位朋友的支持。如果觉得这套框架不错的话,麻烦点个 star,你的支持则是我前进的动力!
Stars: ✭ 6,789 (+19297.14%)
Mutual labels:  rxjava, rxjava2
Ganhuoio
基于Gank.IO提供的API的第三方客户端(RxJava+Retrofit)
Stars: ✭ 727 (+1977.14%)
Mutual labels:  rxjava, rxjava2
Rxretrojsoup
A simple API-like from html website (scrapper) for Android, RxJava2 ready !
Stars: ✭ 492 (+1305.71%)
Mutual labels:  rxjava, rxjava2
Rxjava2 Operators Magician
你用不惯 RxJava,只因缺了这把钥匙 🔑 You are not used to RxJava, just because of the lack of this key.
Stars: ✭ 868 (+2380%)
Mutual labels:  rxjava, rxjava2
Android Mvp Architecture
This repository contains a detailed sample app that implements MVP architecture using Dagger2, GreenDao, RxJava2, FastAndroidNetworking and PlaceholderView
Stars: ✭ 4,360 (+12357.14%)
Mutual labels:  rxjava, rxjava2
Retrofitclient
基于Retrofit2.x和Rxjava2.x封装的请求工具类(内含Retrofit2.x & rxjava1.x)
Stars: ✭ 532 (+1420%)
Mutual labels:  rxjava, rxjava2
Roxie
Lightweight Android library for building reactive apps.
Stars: ✭ 441 (+1160%)
Mutual labels:  rxjava, rxjava2
Rxdogtag
Automatic tagging of RxJava 2+ originating subscribe points for onError() investigation.
Stars: ✭ 601 (+1617.14%)
Mutual labels:  rxjava, rxjava2
Rxfingerprint
Android Fingerprint authentication and encryption with RxJava
Stars: ✭ 373 (+965.71%)
Mutual labels:  rxjava, rxjava2
Rxcache
简单一步,缓存搞定。这是一个专用于 RxJava,解决 Android 中对任何 Observable 发出的结果做缓存处理的框架
Stars: ✭ 377 (+977.14%)
Mutual labels:  rxjava, rxjava2
Grpc By Example Java
A collection of useful/essential gRPC Java Examples
Stars: ✭ 709 (+1925.71%)
Mutual labels:  rxjava, rxjava2
Fcfrtmvp
🔥FcfrtMvp+RxHttp+RxJava(Kotlin和JAVA共用完美支持)支持一键创建MVP项目,框架简约风格及详细注释,欢迎 star or fork!
Stars: ✭ 23 (-34.29%)
Mutual labels:  rxjava, rxjava2

RxSchedulerRule

Simple JUnit rule for overriding RxJava/RxAndroid schedulers during unit tests.

Installation

Add to top level gradle.build file:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

Add to app module gradle.build file:

dependencies {

    // For RxJava 1
    testCompile 'com.github.Plastix.RxSchedulerRule:rx1:1.0.2'

    // For RxJava 2
    testCompile 'com.github.Plastix.RxSchedulerRule:rx2:1.0.2'
}

Usage

Declare RxSchedulerRule as a public field annotated with @Rule in your test class:

public class SomeTest {

    @Rule
    public RxSchedulerRule rxSchedulerRule = new RxSchedulerRule();

    // Tests
}

Kotlin usage:

class SomeTest {

    @get:Rule
    val schedulerRule = RxSchedulerRule()

    // Tests
}

Attributions

RxSchedulerRule is inspired by the JUnit Rule in @hitherejoe's Android-Boilerplate.

License

The MIT License (MIT)
=====================

Copyright © 2016 Plastix

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].