Java 类org.eclipse.ui.internal.ErrorEditorPart 实例源码

项目:AndroidRadTools    文件:GenerateXMLTest.java   
/**
 * Run the void setActivePart(IAction,IWorkbenchPart) method test.
 *
 * @throws Exception
 *
 * @generatedBy CodePro at 8/31/11 6:19 PM
 */
@Test
public void testSetActivePart_1()
    throws Exception {
    GenerateXML fixture = new GenerateXML();
    fixture.selectionChanged(new NewWizardAction(), new TreeSelection());
    IAction action = new NewWizardAction();
    IWorkbenchPart targetPart = new ErrorEditorPart();

    fixture.setActivePart(action, targetPart);

    // add additional test code here
    // An unexpected exception was thrown in user code while executing this test:
    //    java.lang.IllegalArgumentException
    //       at org.eclipse.ui.actions.NewWizardAction.<init>(NewWizardAction.java:95)
    //       at org.eclipse.ui.actions.NewWizardAction.<init>(NewWizardAction.java:116)
}