Author: vrubezhny
Date: 2008-01-21 12:03:14 -0500 (Mon, 21 Jan 2008)
New Revision: 5844
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistTest.java
Log:
JBIDE-1553 JUnit Test for Seam EL Content Assist
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistTest.java 2008-01-21
17:01:38 UTC (rev 5843)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistTest.java 2008-01-21
17:03:14 UTC (rev 5844)
@@ -423,52 +423,6 @@
assertTrue("The file \"" + PAGE_NAME + "\" is not found",
(jspFile.exists()));
FileEditorInput editorInput = new FileEditorInput(jspFile);
-
-// IDocumentProvider documentProvider = null;
-// Throwable exception = null;
-// try {
-// documentProvider =
DocumentProviderRegistry.getDefault().getDocumentProvider(editorInput);
-// } catch (Exception x) {
-// exception = x;
-// x.printStackTrace();
-//
-// }
-// assertNull("An exception caught: " + (exception != null?
exception.getMessage() : ""), exception);
-//
-// assertTrue("The document provider for the file \"" + PAGE_NAME +
"\" is not loaded", (documentProvider != null));
-
-// try {
-// documentProvider.connect(editorInput);
-// } catch (Exception x) {
-// exception = x;
-// x.printStackTrace();
-// assertTrue("The document provider is not able to be initialized with the editor
input", false);
-// }
-// assertNull("An exception caught: " + (exception != null?
exception.getMessage() : ""), exception);
-
-// IDocument document = documentProvider.getDocument(editorInput);
-// IDocumentExtension3 de3 = (document instanceof IDocumentExtension3) ?
-// (IDocumentExtension3)document : null;
-
-// assertTrue("The document for the file \"" + PAGE_NAME + "\"
is not loaded", (document != null));
-
-// IStructuredModel model = null;
-// IStructuredDocument sd = null;
-// if (document instanceof IStructuredDocument) {
-// sd = (IStructuredDocument)document;
- // corresponding releaseFromEdit occurs in
- // dispose()
-// model =
StructuredModelManager.getModelManager().getModelForEdit((IStructuredDocument) document);
-// EditorModelUtil.addFactoriesTo(model);
-// }
-
-// assertTrue("The document model for the file \"" + PAGE_NAME +
"\" is not loaded", (model != null));
-// IDocumentPartitioner partitioner = null;
-// IDocumentPartitionerExtension2 pe2 = null;
-
-// String[] contentTypes = document.getLegalContentTypes();
-// String[] partitionings = de3.getPartitionings();
-
Throwable exception = null;
IEditorPart editorPart = null;
try {
Show replies by date