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

Move ThrowProperty delegate to support-test #6369

@jonalmeida

Description

@jonalmeida

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

Metadata

Metadata

Labels

good first issueGood for newcomers⌨️ codeTechnical debt, code clean up, small API change ..✅ testingUnit tests, UI tests and other automated tests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions