}
public void testGetRootView() {
BasicTextUI ui = getBasicTextUI(jta);
View rootView = ui.getRootView(jta);
AbstractDocument doc = (AbstractDocument) jta.getDocument();
Element rootElement = jta.getDocument().getDefaultRootElement();
assertEquals(1, rootView.getViewCount());
View sonRootView = rootView.getView(0);
assertNotNull(sonRootView);
assertEquals(0, sonRootView.getViewCount());
assertEquals(rootElement, rootView.getElement());
assertEquals(sonRootView.getElement(), rootElement);
assertEquals(rootView.getView(0).getElement(), rootElement);
assertEquals(doc, rootView.getDocument());
assertEquals(jta, rootView.getContainer());
assertEquals(doc.getLength() + 1, rootView.getEndOffset());
assertEquals(ui, rootView.getViewFactory());
assertNull(rootView.getParent());
/*
* Next Functionality is not required try { rootView.setParent(new
* PlainView(rootElement)); } catch (Error error) { bWasException =