Index: modules/swing/src/test/api/java/common/javax/swing/text/ParagraphViewTest.java =================================================================== --- modules/swing/src/test/api/java/common/javax/swing/text/ParagraphViewTest.java (revision 478151) +++ modules/swing/src/test/api/java/common/javax/swing/text/ParagraphViewTest.java (working copy) @@ -43,8 +43,10 @@ private Element paragraph; private ParagraphView view; + @Override protected void setUp() throws Exception { super.setUp(); + setIgnoreNotImplemented(true); doc = new DefaultStyledDocument(); doc.insertString(0, "plainbolditalic\nparagraph2", null); // 0123456789012345 @@ -63,6 +65,7 @@ public void testParagraphView() { final Marker propertiesSet = new Marker(); view = new ParagraphView(paragraph) { + @Override protected void setPropertiesFromAttributes() { propertiesSet.setOccurred(); super.setPropertiesFromAttributes(); @@ -391,16 +394,6 @@ int width = (int)view.getPreferredSpan(View.X_AXIS); int height = (int)view.getPreferredSpan(View.Y_AXIS); -// for (int i = 0; i < view.getViewCount(); i++) { -// System.out.println("[" + i + "]: (" -// + view.getOffset(View.X_AXIS, i) + ", " -// + view.getOffset(View.Y_AXIS, i) + ") x (" -// + view.getSpan(View.X_AXIS, i) + ", " -// + view.getSpan(View.Y_AXIS, i) + ") <-- " -// + view.getView(i).getPreferredSpan(View.X_AXIS) -// + " x " -// + view.getView(i).getPreferredSpan(View.Y_AXIS)); -// } assertEquals(64 /*WIDTH*/, width); assertEquals(PartView.CHAR_HEIGHT * 2, height); @@ -749,14 +742,17 @@ doc.setParagraphAttributes(0, 1, attrs, false); view = new ParagraphView(paragraph) { + @Override protected void setJustification(int j) { jm.setOccurred(); jm.setAuxiliary(new Integer(j)); }; + @Override protected void setFirstLineIndent(float fi) { flim.setOccurred(); flim.setAuxiliary(new Float(fi)); }; + @Override protected void setLineSpacing(float ls) { lsm.setOccurred(); lsm.setAuxiliary(new Float(ls)); @@ -775,6 +771,7 @@ public void testGetLayoutViewCount() { assertNull(view.layoutPool); testExceptionalCase(new NullPointerCase() { + @Override public void exceptionalAction() throws Exception { view.getLayoutViewCount(); } @@ -789,6 +786,7 @@ public void testGetLayoutView() { assertNull(view.layoutPool); testExceptionalCase(new NullPointerCase() { + @Override public void exceptionalAction() throws Exception { view.getLayoutView(0); } @@ -960,6 +958,7 @@ final JTextArea textArea = new JTextArea(); final Params params = new Params(); view = new ParagraphView(paragraph) { + @Override protected int getClosestPositionTo(int pos, Bias b, Shape a, int dir, Bias[] biasRet, int rowIndex, int x) @@ -975,6 +974,7 @@ return 0; } + @Override public Container getContainer() { return textArea; }