Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2011-08-25 21:34:13 +0000
committerpfullbright2011-08-25 21:34:13 +0000
commit0dd8d04a17a438cb5292b69f30ffecb2f05a8368 (patch)
treeb1fd34012ddce8c0cf2e5090f330618825f7e783 /common/tests
parentbbf1de6e8b570f688ad8e6aaccaad117d7e80c81 (diff)
downloadwebtools.dali-0dd8d04a17a438cb5292b69f30ffecb2f05a8368.tar.gz
webtools.dali-0dd8d04a17a438cb5292b69f30ffecb2f05a8368.tar.xz
webtools.dali-0dd8d04a17a438cb5292b69f30ffecb2f05a8368.zip
added compilation unit creation method
Diffstat (limited to 'common/tests')
-rw-r--r--common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java b/common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java
index e8aea35c72..abf84a8173 100644
--- a/common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java
+++ b/common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java
@@ -219,6 +219,10 @@ public abstract class AnnotationTestCase
return this.javaProject.createCompilationUnit(PACKAGE_NAME, FILE_NAME, this.createSourceWriter(annotationWriter));
}
+ protected ICompilationUnit createTestType(String typeName, AnnotationWriter annotationWriter) throws CoreException {
+ return this.javaProject.createCompilationUnit(PACKAGE_NAME, typeName + ".java", createSourceWriter(annotationWriter, typeName));
+ }
+
protected ICompilationUnit createTestType(String packageName, String fileName, String typeName, AnnotationWriter annotationWriter) throws CoreException {
return this.javaProject.createCompilationUnit(packageName, fileName, this.createSourceWriter(annotationWriter, typeName));
}

Back to the top