Skip to content

Instantly share code, notes, and snippets.

@oliverspryn
Created October 29, 2021 12:30
Show Gist options
  • Select an option

  • Save oliverspryn/f19824f2f4430cb78162a2eb2090a130 to your computer and use it in GitHub Desktop.

Select an option

Save oliverspryn/f19824f2f4430cb78162a2eb2090a130 to your computer and use it in GitHub Desktop.
A simple MVC implementation, to demonstrate the fragility of unit tests
class DetailsViewMvcImpl() {
val button: MaterialButton
val photo: AppCompatImageView
val title: AppCompatTextView
init {
rootView = inflater.inflate(R.layout.details_fragment, parent, false)
button = findViewById(R.id.view_online_button)
photo = findViewById(R.id.photo_preview)
title = findViewById(R.id.full_title)
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment