mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Propagated the @NonNull annotation for place click listener and removed a test that made no sense.
This commit is contained in:
parent
4796557fb7
commit
02315c2ae7
2 changed files with 3 additions and 9 deletions
|
|
@ -113,14 +113,6 @@ public class NearbyAdapterFactoryTest {
|
|||
assertEquals(PLACE, clickedPlace);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void clickViewHandlesMisconfiguredListener() {
|
||||
NearbyAdapterFactory testObject = new NearbyAdapterFactory(null);
|
||||
RVRendererAdapter<Place> result = testObject.create(Collections.singletonList(PLACE));
|
||||
RendererViewHolder viewHolder = renderComponent(result);
|
||||
viewHolder.itemView.performClick();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
private RendererViewHolder renderComponent(RVRendererAdapter<Place> result) {
|
||||
FrameLayout viewGroup = new FrameLayout(RuntimeEnvironment.application);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue