This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Description
This is a handy helper when you need to create a stub implementation of an API.
It might be handy to move this to the support-test component` with some docs.
|
private class ThrowProperty<T> : ReadWriteProperty<Any, T> { |
|
override fun getValue(thisRef: Any, property: KProperty<*>): T = |
|
throw UnsupportedOperationException("Cannot get $property") |
|
|
|
override fun setValue(thisRef: Any, property: KProperty<*>, value: T) = |
|
throw UnsupportedOperationException("Cannot set $property") |
|
} |
┆Issue is synchronized with this Jira Task