@Test public void testHasOuterCorner() throws Exception { for (float preWidth : preWidthList) { for (float postWidth : postWidthList) { for (String corner : cornerList) { assertThat(createBorderCorner(corner, 0f, preWidth, postWidth, borderBox).hasOuterCorner(), is(false)); assertThat(createBorderCorner(corner, 50f, preWidth, postWidth, borderBox) .hasOuterCorner(), is(true)); assertThat(createBorderCorner(corner, -10f, preWidth, postWidth, borderBox) .hasOuterCorner(), is(false)); } } } }
boolean hasOuterCorner() { return hasOuterCorner; }
BorderCorner { boolean hasOuterCorner() { return hasOuterCorner; } }
BorderCorner { boolean hasOuterCorner() { return hasOuterCorner; } BorderCorner(); }
BorderCorner { boolean hasOuterCorner() { return hasOuterCorner; } 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 hasOuterCorner() { return hasOuterCorner; } BorderCorner(); final void drawRoundedCorner(@NonNull Canvas canvas, @NonNull Paint paint, float startAngle); final float getRoundCornerStartX(); final float getRoundCornerStartY(); final float getRoundCornerEndX(); final float getRoundCornerEndY();  }