* Runs the test using the specified harness.
*
* @param harness the test harness (<code>null</code> not permitted).
*/
public void test(TestHarness harness) {
MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
FontUIResource f = MetalLookAndFeel.getControlTextFont();
harness.check(f, new FontUIResource("Dialog", Font.BOLD, 12));
MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme() {
public FontUIResource getControlTextFont() {
return new FontUIResource("Dialog", Font.PLAIN, 99);
}
});
f = MetalLookAndFeel.getControlTextFont();
harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 99));
// reset the theme so that other tests won't be affected
MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
}