Skip to content

Commit

Permalink
Update TextStyleBuilderTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rtz333 authored and burhanrashid52 committed Jul 9, 2021
1 parent 70af8ba commit ab3ed0d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void testFillBuilderWithAllPossibleStyles() {
builder.withTextBorder(new TextBorder(5,123,5,123));
builder.withTextFlag(Paint.UNDERLINE_TEXT_FLAG);

Assert.assertEquals(6, builder.getValues().size());
Assert.assertEquals(10, builder.getValues().size());

Assert.assertTrue(builder.getValues().containsKey(TextStyleBuilder.TextStyle.COLOR));
Assert.assertEquals(123, builder.getValues().get(TextStyleBuilder.TextStyle.COLOR));
Expand Down Expand Up @@ -111,6 +111,11 @@ public void testApplyStyleShouldCallTheCorrectApplyMethod() {
builder.withTextFont(Typeface.DEFAULT);
builder.withBackgroundColor(321);
builder.withTextAppearance(144);
builder.withTextStyle(Typeface.NORMAL);
builder.withTextFlag(Paint.ANTI_ALIAS_FLAG);
builder.withTextShadow(new TextShadow(0,0,0,123));
builder.withTextBorder(new TextBorder(0,123,0,123) );


final TextView textView = Mockito.mock(TextView.class);
builder.applyStyle(textView);
Expand Down

0 comments on commit ab3ed0d

Please sign in to comment.