public void testRetrieveRenderer_Default_Noscript() {
   Renderer renderer;
   RendererCache cache = RendererCache.getInstance();
   //
   // Default up (no script)
   W4TFixture.fakeBrowser(new Default(false));
   // WebAnchor
   renderer = cache.retrieveRenderer(WebAnchor.class);
   assertEquals(WebAnchorRenderer_Default_Noscript.class, renderer.getClass());
   // WebBorderComponent
   renderer = cache.retrieveRenderer(WebBorderComponent.class);
   assertEquals(WebBorderComponentRenderer_Default_Noscript.class, renderer.getClass());
   // WebScrollPane
   renderer = cache.retrieveRenderer(WebScrollPane.class);
   assertEquals(WebScrollPaneRenderer_Default_Noscript.class, renderer.getClass());
   // MenuItem
   renderer = cache.retrieveRenderer(MenuItem.class);
   assertEquals(MenuItemRenderer_Default_Noscript.class, renderer.getClass());
   // MenuItemSeparator
   renderer = cache.retrieveRenderer(MenuItemSeparator.class);
   assertEquals(MenuItemSeparatorRenderer_Default_Noscript.class, renderer.getClass());
   // TreeLeaf
   renderer = cache.retrieveRenderer(TreeLeaf.class);
   assertEquals(TreeLeafRenderer_Default_Noscript.class, renderer.getClass());
   // Menu
   renderer = cache.retrieveRenderer(Menu.class);
   assertEquals(MenuRenderer_Default_Noscript.class, renderer.getClass());
   // MenuBar
   renderer = cache.retrieveRenderer(MenuBar.class);
   assertEquals(MenuBarRenderer_Default_Noscript.class, renderer.getClass());
   // TreeNode
   renderer = cache.retrieveRenderer(TreeNode.class);
   assertEquals(TreeNodeRenderer_Default_Noscript.class, renderer.getClass());
   // TreeView
   renderer = cache.retrieveRenderer(TreeView.class);
   assertEquals(TreeViewRenderer_Default_Noscript.class, renderer.getClass());
   // MenuButton
   renderer = cache.retrieveRenderer(MenuButton.class);
   assertEquals(MenuButtonRenderer_Default_Noscript.class, renderer.getClass());
   // WebButton
   renderer = cache.retrieveRenderer(WebButton.class);
   assertEquals(WebButtonRenderer_Default_Noscript.class, renderer.getClass());
   // AreaSelector
   renderer = cache.retrieveRenderer(WebButton.class);
   assertEquals(WebButtonRenderer_Default_Noscript.class, renderer.getClass());
   // LinkButton
   renderer = cache.retrieveRenderer(LinkButton.class);
   assertEquals(WebButtonRenderer_Default_Noscript.class, renderer.getClass());
   // testing for superclass
   // WebCheckBox
   renderer = cache.retrieveRenderer(WebCheckBox.class);
   assertEquals(WebCheckBoxRenderer_Default_Noscript.class, renderer.getClass());
   // WebContainer
   renderer = cache.retrieveRenderer(WebContainer.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // CItemList
   renderer = cache.retrieveRenderer(CItemList.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // CTabbedPane
   renderer = cache.retrieveRenderer(CTabbedPane.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // test for superclass
   // CTable
   renderer = cache.retrieveRenderer(CTable.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // WebForm
   renderer = cache.retrieveRenderer(WebForm.class);
   assertEquals(WebFormRenderer_Default_Noscript.class, renderer.getClass());
   // WebPanel
   renderer = cache.retrieveRenderer(WebPanel.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // CMenu
   renderer = cache.retrieveRenderer(CMenu.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // CToolBar
   renderer = cache.retrieveRenderer(CToolBar.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // TreeViewer
   renderer = cache.retrieveRenderer(TreeView.class);
   assertEquals(TreeViewRenderer_Default_Noscript.class, renderer.getClass());
   // WebFileUpload
   renderer = cache.retrieveRenderer(WebFileUpload.class);
   assertEquals(WebFileUploadRenderer_Default_Noscript.class, renderer.getClass());
   // WebImage
   renderer = cache.retrieveRenderer(WebImage.class);
   assertEquals(WebImageRenderer_Default_Noscript.class, renderer.getClass());
   // WebLabel
   renderer = cache.retrieveRenderer(WebLabel.class);
   assertEquals(WebLabelRenderer_Default_Noscript.class, renderer.getClass());
   // WebRadioButton
   renderer = cache.retrieveRenderer(WebRadioButton.class);
   assertEquals(WebRadioButtonRenderer_Default_Noscript.class, renderer.getClass());
   // WebRadioButtonGroup
   renderer = cache.retrieveRenderer(WebRadioButtonGroup.class);
   assertEquals(WebRadioButtonGroupRenderer_Default_Noscript.class, renderer.getClass());
   // WebSelect
   renderer = cache.retrieveRenderer(WebSelect.class);
   assertEquals(WebSelectRenderer_Default_Noscript.class, renderer.getClass());
   // WebText
   renderer = cache.retrieveRenderer(WebText.class);
   assertEquals(WebTextRenderer_Default_Noscript.class, renderer.getClass());
   // WebTextWithoutTitleMock
   renderer = cache.retrieveRenderer(WebTextWithoutTitleMock.class);
   assertEquals(WebTextRenderer_Default_Noscript.class, renderer.getClass());
   // WebTextArea
   renderer = cache.retrieveRenderer(WebTextArea.class);
   assertEquals(WebTextAreaRenderer_Default_Noscript.class, renderer.getClass());
   // WebCardLayout
   renderer = cache.retrieveRenderer(WebCardLayout.class);
   assertEquals(WebCardLayoutRenderer_Default_Noscript.class, renderer.getClass());
   // StaticContentForm
   renderer = cache.retrieveRenderer(ExitForm.class);
   assertEquals(ExitFormRenderer_Default_Noscript.class, renderer.getClass());
 }
 protected void setUp() throws Exception {
   W4TFixture.setUp();
   W4TFixture.createContext();
 }
 protected void tearDown() throws Exception {
   W4TFixture.tearDown();
   W4TFixture.removeContext();
 }
 public void testRetrieveRenderer_Default_Ajax() {
   Renderer renderer;
   //
   // Default up (ajax)
   W4TFixture.fakeBrowser(new Default(true, true));
   // WebAnchor
   RendererCache cache = RendererCache.getInstance();
   renderer = cache.retrieveRenderer(WebAnchor.class);
   assertEquals(WebAnchorRenderer_Default_Script.class, renderer.getClass());
   // WebBorderComponent
   renderer = cache.retrieveRenderer(WebBorderComponent.class);
   assertEquals(WebBorderComponentRenderer_Default_Script.class, renderer.getClass());
   // WebScrollPane
   renderer = cache.retrieveRenderer(WebScrollPane.class);
   assertEquals(WebScrollPaneRenderer_Default_Script.class, renderer.getClass());
   // MenuItem
   renderer = cache.retrieveRenderer(MenuItem.class);
   assertEquals(MenuItemRenderer_Default_Script.class, renderer.getClass());
   // MenuItemSeparator
   renderer = cache.retrieveRenderer(MenuItemSeparator.class);
   assertEquals(MenuItemSeparatorRenderer_Default_Script.class, renderer.getClass());
   // Menu
   renderer = cache.retrieveRenderer(Menu.class);
   assertEquals(MenuRenderer_Default_Script.class, renderer.getClass());
   // MenuBar
   renderer = cache.retrieveRenderer(MenuBar.class);
   assertEquals(MenuBarRenderer_Default_Script.class, renderer.getClass());
   // TreeNode
   renderer = cache.retrieveRenderer(TreeNode.class);
   assertEquals(TreeNodeRenderer_Default_Script.class, renderer.getClass());
   // TreeView
   renderer = cache.retrieveRenderer(TreeView.class);
   assertEquals(TreeViewRenderer_Default_Script.class, renderer.getClass());
   // MenuButton
   renderer = cache.retrieveRenderer(MenuButton.class);
   assertEquals(MenuButtonRenderer_Default_Script.class, renderer.getClass());
   // NonAjaxComponent
   renderer = cache.retrieveRenderer(NonAjaxComponent.class);
   assertEquals(NonAjaxComponentRenderer_Default_Script.class, renderer.getClass());
   // WebButton
   renderer = cache.retrieveRenderer(WebButton.class);
   assertEquals(WebButtonRenderer_Default_Script.class, renderer.getClass());
   // AreaSelector
   renderer = cache.retrieveRenderer(WebButton.class);
   assertEquals(WebButtonRenderer_Default_Script.class, renderer.getClass());
   // LinkButton
   renderer = cache.retrieveRenderer(LinkButton.class);
   assertEquals(WebButtonRenderer_Default_Script.class, renderer.getClass());
   // testing for superclass
   // WebCheckBox
   renderer = cache.retrieveRenderer(WebCheckBox.class);
   assertEquals(WebCheckBoxRenderer_Default_Script.class, renderer.getClass());
   // WebContainer
   renderer = cache.retrieveRenderer(WebContainer.class);
   assertEquals(WebContainerRenderer_Default_Script.class, renderer.getClass());
   // CItemList
   renderer = cache.retrieveRenderer(CItemList.class);
   assertEquals(WebContainerRenderer_Default_Script.class, renderer.getClass());
   // test for superclass
   // CTabbedPane
   renderer = cache.retrieveRenderer(CTabbedPane.class);
   assertEquals(WebContainerRenderer_Default_Script.class, renderer.getClass());
   // test for superclass
   // CTable
   renderer = cache.retrieveRenderer(CTable.class);
   assertEquals(WebContainerRenderer_Default_Script.class, renderer.getClass());
   // test for superclass
   // WebForm
   renderer = cache.retrieveRenderer(WebForm.class);
   assertEquals(WebFormRenderer_Default_Script.class, renderer.getClass());
   // Form
   renderer = cache.retrieveRenderer(Form.class);
   assertEquals(WebFormRenderer_Default_Script.class, renderer.getClass());
   // test for superclass
   // LoginForm
   renderer = cache.retrieveRenderer(LoginForm.class);
   assertEquals(WebFormRenderer_Default_Script.class, renderer.getClass());
   // test for superclass
   // TestForm
   renderer = cache.retrieveRenderer(TestForm.class);
   assertEquals(WebFormRenderer_Default_Script.class, renderer.getClass());
   // WebPanel
   renderer = cache.retrieveRenderer(WebPanel.class);
   assertEquals(WebContainerRenderer_Default_Script.class, renderer.getClass());
   // CMenu
   renderer = cache.retrieveRenderer(CMenu.class);
   assertEquals(WebContainerRenderer_Default_Script.class, renderer.getClass());
   // testing for superclass
   // CToolBar
   renderer = cache.retrieveRenderer(CToolBar.class);
   assertEquals(WebContainerRenderer_Default_Script.class, renderer.getClass());
   // TreeViewer
   renderer = cache.retrieveRenderer(TreeView.class);
   assertEquals(TreeViewRenderer_Default_Script.class, renderer.getClass());
   // WebFileUpload
   renderer = cache.retrieveRenderer(WebFileUpload.class);
   assertEquals(WebFileUploadRenderer_Default_Script.class, renderer.getClass());
   // WebImage
   renderer = cache.retrieveRenderer(WebImage.class);
   assertEquals(WebImageRenderer_Default_Script.class, renderer.getClass());
   // WebLabel
   renderer = cache.retrieveRenderer(WebLabel.class);
   assertEquals(WebLabelRenderer_Default_Script.class, renderer.getClass());
   // PoolLabel
   renderer = cache.retrieveRenderer(PoolLabel.class);
   assertEquals(WebLabelRenderer_Default_Script.class, renderer.getClass());
   // testing for superclass
   // SuperWebLabel
   renderer = cache.retrieveRenderer(SuperWebLabel.class);
   assertEquals(WebLabelRenderer_Default_Script.class, renderer.getClass());
   // WebRadioButton
   renderer = cache.retrieveRenderer(WebRadioButton.class);
   assertEquals(WebRadioButtonRenderer_Default_Script.class, renderer.getClass());
   // WebRadioButtonGroup
   renderer = cache.retrieveRenderer(WebRadioButtonGroup.class);
   assertEquals(WebRadioButtonGroupRenderer_Default_Script.class, renderer.getClass());
   // WebSelect
   renderer = cache.retrieveRenderer(WebSelect.class);
   assertEquals(WebSelectRenderer_Default_Script.class, renderer.getClass());
   // WebText
   renderer = cache.retrieveRenderer(WebText.class);
   assertEquals(WebTextRenderer_Default_Script.class, renderer.getClass());
   // WebTextArea
   renderer = cache.retrieveRenderer(WebTextArea.class);
   assertEquals(WebTextAreaRenderer_Default_Script.class, renderer.getClass());
   // WebCardLayout
   renderer = cache.retrieveRenderer(WebCardLayout.class);
   assertEquals(WebCardLayoutRenderer_Default_Script.class, renderer.getClass());
 }