@Test public void newInstance() throws Exception { final SleepPillDevice testPill = createMockPill(); final PillDetailsFragment fragment = setUpWith(testPill); assertThat(fragment.getArguments().getSerializable(ARG_DEVICE), equalTo(testPill)); }
public static PillDetailsFragment newInstance(@NonNull SleepPillDevice device) { PillDetailsFragment fragment = new PillDetailsFragment(); fragment.setArguments(createArguments(device)); return fragment; }
PillDetailsFragment extends DeviceDetailsFragment<SleepPillDevice> { public static PillDetailsFragment newInstance(@NonNull SleepPillDevice device) { PillDetailsFragment fragment = new PillDetailsFragment(); fragment.setArguments(createArguments(device)); return fragment; } }
PillDetailsFragment extends DeviceDetailsFragment<SleepPillDevice> { public static PillDetailsFragment newInstance(@NonNull SleepPillDevice device) { PillDetailsFragment fragment = new PillDetailsFragment(); fragment.setArguments(createArguments(device)); return fragment; }  }
PillDetailsFragment extends DeviceDetailsFragment<SleepPillDevice> { public static PillDetailsFragment newInstance(@NonNull SleepPillDevice device) { PillDetailsFragment fragment = new PillDetailsFragment(); fragment.setArguments(createArguments(device)); return fragment; }  static PillDetailsFragment newInstance(@NonNull SleepPillDevice device); @Override void onCreate(Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @Override void onActivityResult(int requestCode, int resultCode, Intent data); void updateFirmware(); void replaceDevice(); void replaceBattery(); void showAdvancedOptions(); }
PillDetailsFragment extends DeviceDetailsFragment<SleepPillDevice> { public static PillDetailsFragment newInstance(@NonNull SleepPillDevice device) { PillDetailsFragment fragment = new PillDetailsFragment(); fragment.setArguments(createArguments(device)); return fragment; }  static PillDetailsFragment newInstance(@NonNull SleepPillDevice device); @Override void onCreate(Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @Override void onActivityResult(int requestCode, int resultCode, Intent data); void updateFirmware(); void replaceDevice(); void replaceBattery(); void showAdvancedOptions();  }