Copyright (C) 2008 Ovea <email@example.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This class is a matcher (written based on hamcrest possibilites) to test the text of the button.
Uses the matcher SelectedValue to compare the text on a button to the expected text of the matcher,
using the syntax "text("xxx")"
button the button
- True if the text on the button is equal to the text of the matcher Text
To append the description of the text on the button to the given description
description the description may be part of a a description of a larger object
Constructor with given value
text text we want to know if it's the text on the button
Using the syntax "text("xxx")", the test creates a Text matcher
text the text to compare to the text on the button
- a new Text matcher