* 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.getSystemTextFont();
harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 12));
MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme() {
public FontUIResource getSystemTextFont() {
return new FontUIResource("Dialog", Font.PLAIN, 99);
}
});
f = MetalLookAndFeel.getSystemTextFont();
harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 99));
// reset the theme so that other tests won't be affected
MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
}