Community
Participate
Working Groups
}
public void testConstructorWithNullNameHashcodeClash() {
Device device = new Display();
new Font( device, "", 1, SWT.NONE );
try {
new Font( device, null, 1, SWT.NONE );
fail( "The font name must not be null" );
} catch( IllegalArgumentException e ) {
// Expected
public void testConstructorWithNullFontData() {