All Projects → juanmendez → realm-tester

juanmendez / realm-tester

Licence: other
Writing tests using Realm Java

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to realm-tester

Weather-Guru-MVP
Sample Material-design Android weather application build with MVP architectural approach using Dagger2, RxJava2, Retrofit2, Event-Bus, GreenDao, Butterknife, Lottie etc.
Stars: ✭ 15 (+7.14%)
Mutual labels:  android-development, mockito, robolectric
Kotlin Android Starter
[Kotlin Android] Kotlin Android starter based MVP/Dagger2/RxJava2/Robolectric/Espresso/Mockito. It provides a generator to fast create a Kotlin Android project.
Stars: ✭ 589 (+4107.14%)
Mutual labels:  mockito, robolectric
Android Starter
[Android Architecture] Android starter based on MVP/Dagger2/RxJava2/Robolectric/Espresso/Mockito. It provides a generator to fast create a Android template project.
Stars: ✭ 522 (+3628.57%)
Mutual labels:  mockito, robolectric
Marvel
Marvel Characters Android Application Assigned by smava GmbH
Stars: ✭ 227 (+1521.43%)
Mutual labels:  mockito, robolectric
Android tmdb clean architecture
Showcase of clean architecture concepts along with Continuous Integration and Development for modular Android applications. Includes test suits (functional and unit tests) along with code coverage.
Stars: ✭ 63 (+350%)
Mutual labels:  mockito, robolectric
Androidut
Android开发中必要的一环---单元测试(Unit Test)
Stars: ✭ 419 (+2892.86%)
Mutual labels:  mockito, robolectric
Newspaper
An aggregated newspaper app containing news from 10+ local news publishers in Hong Kong. Made with ❤
Stars: ✭ 82 (+485.71%)
Mutual labels:  mockito, realm
EasyUtAndroid
Android unit testing example 全面的android应用单元测试方法及案例
Stars: ✭ 21 (+50%)
Mutual labels:  mockito, robolectric
Debt-Manager
A personal app to store people that owe you money or you owe money to. "Mo Money Mo Problems" 🎵 - The Notorious B.I.G. 😎
Stars: ✭ 22 (+57.14%)
Mutual labels:  android-development, mockito
Android App Architecture Mvvm Databinding
A simple but complete project (in both Java & Kotlin) to demonstrate the Android application architecture with MVVM pattern, a client app for The Movie DB Web API. Dagger2 is used for dependency injection and RxJava is used for RFP (Reactive Functional Programming).
Stars: ✭ 69 (+392.86%)
Mutual labels:  android-development, mockito
Just Another Android App
An Android base app with loads of cool libraries/configuration NOT MAINTAINED
Stars: ✭ 1,654 (+11714.29%)
Mutual labels:  android-development, robolectric
Android-Starter-Kit
This is up-to-date android studio project for native android application, that is using modern tools and libraries.
Stars: ✭ 16 (+14.29%)
Mutual labels:  mockito, robolectric
Android Mvp Architecture
🏛 A basic sample android application to understand MVP in a very simple way. Just clone, build, run and understand MVP.
Stars: ✭ 203 (+1350%)
Mutual labels:  android-development, mockito
Android-MVVM-News-App
MVVM News Application with clean code architecture & android jetpack components.
Stars: ✭ 38 (+171.43%)
Mutual labels:  mockito, robolectric
circular-reveal-fragment
Push/pop fragment in style
Stars: ✭ 34 (+142.86%)
Mutual labels:  android-development
PaymentCardView
Custom Credit/Debit card view
Stars: ✭ 62 (+342.86%)
Mutual labels:  android-development
Biometric-Authentication-Android
A sample implementation of AndroidX biometrics API using Kotlin. Authenticate using biometrics or PIN/Password if biometrics isn't available on device. Fully implemented in Jetpack compose using Material 3 dynamic theming and also has a separate implementation in xml with MDC 3.
Stars: ✭ 29 (+107.14%)
Mutual labels:  android-development
Android
Step by step guide for various components in android
Stars: ✭ 32 (+128.57%)
Mutual labels:  android-development
electron-react-ts-rxdb-realm-sqlite
Demo of Native Databases with Electron and ReactJS. Realm, SQLite and RxDB ( with LevelDB/IndexedDB/InMemory adapters)
Stars: ✭ 27 (+92.86%)
Mutual labels:  realm
YouP3
Android app for downloading media from YouTube with 4K Support (Beta)
Stars: ✭ 51 (+264.29%)
Mutual labels:  android-development

realm-tester

-- status: tuning prior to making it work with latest Realm

This is ongoing work to unit test Realm as much as possible hammering with Mockito, and PowerMockito.

Gradle:

repositories {
...
    maven { url 'https://jitpack.io' }
}

dependencies {
...
    testImplementation 'com.github.juanmendez:realm-tester:master-SNAPSHOT'
}

Wiki has a basic instructions how to import and use this library

What has been done so far

  • Working with Realm 3.0.0
  • Supporting Robolectric 3.3.1
  • Works with Mockito 1.10.19
  • Works with PowerMockito 1.6.4
  • Have Realm.getDefaultInstance()
  • To track realm annotations, register with MockRealm your tested class annotations based on RealmAnnotations, see demo.
  • If desired, do realm configurations in a dependency class rather than an Android component see wiki.
  • Querying works for around 70% of all methods, more to come in the next phase.
  • Chaining queries
  • Asynchronous and synchronous transactions with RxJava
    • Schedulers for testing use Schedulers.immediate()
  • Support or() for chaining queries
  • Support not()
  • realmQuery.distinct(*), realmResults.distinct() has been deprecated in Realm 3.0.0
  • realmQuery.sort(), realmResults.sort()
  • Grouping
  • Querying against realmResults
  • delete reamModels in cascading mode
  • support also for deleting methods found in realmResults, realmModel, realmObject and realmLists
  • support realmQuery.*Async() methods
  • realmResults.addChangeListener(), realmObject.addChangeListener()
  • realmResults.asObservable(),realmObject.asObservable(), not supporting realm.asObservable() at this time
  • Several features not covered will simply pass, and not perform anything. In this situation, I am going to include a console message with prefix #realm-tester and let you know when that occurs. The same rule will apply for features which I cover partially
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].