Created
October 29, 2021 12:30
-
-
Save oliverspryn/f19824f2f4430cb78162a2eb2090a130 to your computer and use it in GitHub Desktop.
A simple MVC implementation, to demonstrate the fragility of unit tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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