@Test public void testHasInnerCorner() throws Exception { for (String corner : cornerList) { for (float preWidth : preWidthList) { for (float postWidth : postWidthList) { assertThat(createBorderCorner(corner, -10, preWidth, postWidth, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 0, preWidth, postWidth, borderBox) .hasInnerCorner() , is(false)); } } assertThat(createBorderCorner(corner, 25, -10, -10, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, -10, 0, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, -10, 10, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, -10, 50, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, 0, -10, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, 0, 0, borderBox).hasInnerCorner() , is(true)); assertThat(createBorderCorner(corner, 25, 0, 10, borderBox).hasInnerCorner() , is(true)); assertThat(createBorderCorner(corner, 25, 0, 50, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, 10, -10, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, 10, 0, borderBox).hasInnerCorner() , is(true)); assertThat(createBorderCorner(corner, 25, 10, 10, borderBox).hasInnerCorner() , is(true)); assertThat(createBorderCorner(corner, 25, 10, 50, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, 50, -10, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, 50, 0, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, 50, 10, borderBox).hasInnerCorner() , is(false)); assertThat(createBorderCorner(corner, 25, 50, 50, borderBox).hasInnerCorner() , is(false)); } }
boolean hasInnerCorner() { return hasInnerCorner; }
BorderCorner { boolean hasInnerCorner() { return hasInnerCorner; } }
BorderCorner { boolean hasInnerCorner() { return hasInnerCorner; } BorderCorner(); }
BorderCorner { boolean hasInnerCorner() { return hasInnerCorner; } BorderCorner(); final void drawRoundedCorner(@NonNull Canvas canvas, @NonNull Paint paint, float startAngle); final float getRoundCornerStartX(); final float getRoundCornerStartY(); final float getRoundCornerEndX(); final float getRoundCornerEndY(); }
BorderCorner { boolean hasInnerCorner() { return hasInnerCorner; } BorderCorner(); final void drawRoundedCorner(@NonNull Canvas canvas, @NonNull Paint paint, float startAngle); final float getRoundCornerStartX(); final float getRoundCornerStartY(); final float getRoundCornerEndX(); final float getRoundCornerEndY();  }