void (int size, int tiny, int small, int large, int huge) { Font font = new Font(Font.DIALOG, Font.PLAIN, size); assertEquals(tiny, RelativeFont.TINY.derive(font).getSize()); assertEquals(small, RelativeFont.SMALL.derive(font).getSize()); assertEquals(large, RelativeFont.LARGE.derive(font).getSize()); assertEquals(huge, RelativeFont.HUGE.derive(font).getSize()); }