/** * Tests for calling <code>nextTabStop()</code> leaves <code>PlainView.metrics</code> field <code> * null</code>. This is because <code>nextTabStop()</code> forwards to <code>paintParams</code> * and updates <code>metrics</code> there, and <code>setSize()</code> doesn't update the field in * the <code>PlainView</code>. */ public void testNextTabStop05() { assertNull(view.metrics); if (isHarmony()) { // Call to nextTabStop will lead to updateMetrics() assertTrue("nextTabStop() must return value > 0", view.nextTabStop(0, 0) > view.getTabSize()); } view.setSize(100, 200); assertNotNull("Metrics must be not null after setSize", view.metrics); }