SpannedSubject.Colored


public interface SpannedSubject.Colored


Allows assertions about the color of a span.

Summary

Public methods

abstract SpannedSubject.AndSpanFlags
withColor(@ColorInt int color)

Checks that at least one of the matched spans has the expected color.

Public methods

withColor

abstract SpannedSubject.AndSpanFlags withColor(@ColorInt int color)

Checks that at least one of the matched spans has the expected color.

Parameters
@ColorInt int color

The expected color.

Returns
SpannedSubject.AndSpanFlags

A WithSpanFlags object for optional additional assertions on the flags.