Stay organized with collections Save and categorize content based on your preferences.

SpannedSubject.RubyText

public interface SpannedSubject.RubyText


Allows assertions about a span's ruby text and its position.

Summary

Public methods

abstract SpannedSubject.AndSpanFlags

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

Public methods

withTextAndPosition

abstract SpannedSubject.AndSpanFlags withTextAndPosition(String text, @TextAnnotation.Position int position)

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

Parameters
String text

The expected text.

@TextAnnotation.Position int position

The expected position of the text.

Returns
SpannedSubject.AndSpanFlags

A WithSpanFlags object for optional additional assertions on the flags.