|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.fixture.FontFixture
public class FontFixture
Understands state verification of
s.
Font
Constructor Summary | |
---|---|
FontFixture(Font target)
Creates a new FontFixture . |
|
FontFixture(Font target,
org.fest.assertions.Description description)
Creates a new FontFixture . |
|
FontFixture(Font target,
String description)
Creates a new FontFixture . |
Method Summary | |
---|---|
String |
description()
Returns this fixture's description. |
FontFixture |
requireBold()
Verifies that this fixture's font is bold. |
FontFixture |
requireFamily(String family)
Verifies that the family name of this fixture's font is equal to the given one. |
FontFixture |
requireItalic()
Verifies that this fixture's font is italic. |
FontFixture |
requireName(String name)
Verifies that the logical name of this fixture's font is equal to the given one. |
FontFixture |
requireNotBold()
Verifies that this fixture's font is not bold. |
FontFixture |
requireNotItalic()
Verifies that this fixture's font is not italic. |
FontFixture |
requireNotPlain()
Verifies that this fixture's font is not plain. |
FontFixture |
requirePlain()
Verifies that this fixture's font is plain. |
FontFixture |
requireSize(int size)
Verifies that the point size of this fixture's font is equal to the given one. |
Font |
target()
Returns this fixture's font. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontFixture(Font target)
FontFixture
.
target
- the font to manage.
NullPointerException
- if target
is null
.public FontFixture(Font target, String description)
FontFixture
.
target
- the font to manage.description
- this fixture's description.
NullPointerException
- if target
is null
.public FontFixture(Font target, org.fest.assertions.Description description)
FontFixture
.
target
- the font to manage.description
- this fixture's description.
NullPointerException
- if target
is null
.Method Detail |
---|
public FontFixture requireFamily(String family)
family
- the expected family name.
AssertionError
- if the family name of this fixture's font is not equal to the given one.Font.getFamily()
public FontFixture requireName(String name)
name
- the expected logical name.
AssertionError
- if the logical name of this fixture's font is not equal to the given one.Font.getName()
public FontFixture requireSize(int size)
size
- the expected point size.
AssertionError
- if the point size of this fixture's font is not equal to the given one.Font.getSize()
public FontFixture requireBold()
AssertionError
- if this fixture's font is not bold.Font.isBold()
public FontFixture requireNotBold()
AssertionError
- if this fixture's font is bold.Font.isBold()
public FontFixture requireItalic()
AssertionError
- if this fixture's font is not italic.Font.isItalic()
public FontFixture requireNotItalic()
AssertionError
- if this fixture's font is italic.Font.isItalic()
public FontFixture requirePlain()
AssertionError
- if this fixture's font is not plain.Font.isPlain()
public FontFixture requireNotPlain()
AssertionError
- if this fixture's font is plain.Font.isPlain()
public Font target()
public final String description()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |