test_class.declarator: layoutId
test_class.modifier: private
test_class.original_string: private int layoutId;
test_class.type: int
test_class.var_name: layoutId
test_class.declarator: simpleDateFormat
test_class.modifier: private
test_class.original_string: private SimpleDateFormat simpleDateFormat;
test_class.type: SimpleDateFormat
test_class.var_name: simpleDateFormat
test_class.declarator: viewHolder
test_class.modifier: private
test_class.original_string: private BPIViewHolder viewHolder;
test_class.type: BPIViewHolder
test_class.var_name: viewHolder
test_class.file: app/src/test/java/com/romainpiel/bitcointracker/view/holder/BPIViewHolderTest.java
test_class.identifier: BPIViewHolderTest
test_case.body: @Test
      public void bind_noChange() {
          BPI bpi = new BPI(new Date(System.currentTimeMillis()), 225.25f);
  
          viewHolder.bind(bpi);
  
          if (viewHolder.date != null) {
              ANDROID.assertThat(viewHolder.date).hasTextString(simpleDateFormat.format(bpi.getDate()));
          }
          ANDROID.assertThat(viewHolder.close).hasTextString("$" + bpi.getClose());
          ANDROID.assertThat(viewHolder.change).hasTextString("");
      }
test_case.class_method_signature: BPIViewHolderTest.bind_noChange()
test_case.full_signature: @Test public void bind_noChange()
test_case.identifier: bind_noChange
test_case.invocations: currentTimeMillis bind hasTextString assertThat format getDate hasTextString assertThat getClose hasTextString assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void bind_noChange()
focal_class.declarator: date
focal_class.modifier: @Optional
      @InjectView(R.id.date)
focal_class.original_string: @Optional
      @InjectView(R.id.date)
      TextView date;
focal_class.type: TextView
focal_class.var_name: date
focal_class.declarator: close
focal_class.modifier: @InjectView(R.id.close)
focal_class.original_string: @InjectView(R.id.close)
      TextView close;
focal_class.type: TextView
focal_class.var_name: close
focal_class.declarator: change
focal_class.modifier: @InjectView(R.id.change)
focal_class.original_string: @InjectView(R.id.change)
      TextView change;
focal_class.type: TextView
focal_class.var_name: change
focal_class.declarator: simpleDateFormat
focal_class.modifier: private
focal_class.original_string: private SimpleDateFormat simpleDateFormat;
focal_class.type: SimpleDateFormat
focal_class.var_name: simpleDateFormat
focal_class.declarator: largeCloseTextSize
focal_class.modifier: private
focal_class.original_string: private boolean largeCloseTextSize;
focal_class.type: boolean
focal_class.var_name: largeCloseTextSize
focal_class.file: app/src/main/java/com/romainpiel/bitcointracker/view/holder/BPIViewHolder.java
focal_class.identifier: BPIViewHolder
focal_class.class_method_signature: BPIViewHolder.BPIViewHolder(View itemView, SimpleDateFormat simpleDateFormat)
focal_class.full_signature: public  BPIViewHolder(View itemView, SimpleDateFormat simpleDateFormat)
focal_class.identifier: BPIViewHolder
focal_class.modifiers: public
focal_class.parameters: (View itemView, SimpleDateFormat simpleDateFormat)
focal_class.signature:  BPIViewHolder(View itemView, SimpleDateFormat simpleDateFormat)
focal_class.class_method_signature: BPIViewHolder.bind(BPI item)
focal_class.full_signature: public void bind(BPI item)
focal_class.identifier: bind
focal_class.modifiers: public
focal_class.parameters: (BPI item)
focal_class.return: void
focal_class.signature: void bind(BPI item)
focal_class.superclass: extends RecyclerView.ViewHolder
focal_method.body: public void bind(BPI item) {
          if (date != null) {
              date.setText(simpleDateFormat.format(item.getDate()));
          }
          SpannableStringBuilder closeText = new SpannableStringBuilder(String.format("$%.2f", item.getClose()));
          if (largeCloseTextSize) {
              // if large text, the price looks better with a small $
              closeText.setSpan(new RelativeSizeSpan(0.4f), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
          }
          close.setText(closeText);
  
          int changeTextColorRes = R.color.textColorSecondary;
          String changeText = "";
          String changeArrow = "";
          if (item.getChange() != null) {
              changeText = String.format("%.2f%%", item.getChange() * 100);
              if (item.getChange() > 0) {
                  changeArrow = " ▲";
                  changeTextColorRes = R.color.bpiChangeIncrease;
              } else if (item.getChange() < 0) {
                  changeArrow = " ▼";
                  changeTextColorRes = R.color.bpiChangeDecrease;
              }
          }
          change.setText(changeText + changeArrow);
          change.setTextColor(change.getResources().getColor(changeTextColorRes));
      }
focal_method.class_method_signature: BPIViewHolder.bind(BPI item)
focal_method.full_signature: public void bind(BPI item)
focal_method.identifier: bind
focal_method.invocations: setText format getDate format getClose setSpan setText getChange format getChange getChange getChange setText setTextColor getColor getResources
focal_method.modifiers: public
focal_method.parameters: (BPI item)
focal_method.return: void
focal_method.signature: void bind(BPI item)