Exemplo n.º 1
0
  @TestTargetNew(
      level = TestLevel.COMPLETE,
      method = "getConstantState",
      args = {})
  @ToBeFixed(
      bug = "",
      explanation =
          "can not assert the inner fields, becuase the class"
              + " InsetState is package protected.")
  public void testGetConstantState() {
    Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
    InsetDrawable insetDrawable = new InsetDrawable(d, 0);

    ConstantState constantState = insetDrawable.getConstantState();
    assertNotNull(constantState);
  }