コード例 #1
0
 public void testAddSetterForProperty() throws CoreException {
   MarkerResolutionTestUtil.checkResolution(
       project,
       new String[] {"WebContent/WEB-INF/components.xml"},
       PROBLEM_TYPE,
       SeamCoreValidator.MESSAGE_ID_ATTRIBUTE_NAME,
       SeamCoreValidator.UNKNOWN_COMPONENT_PROPERTY_ID,
       AddSetterMarkerResolution.class);
 }
コード例 #2
0
 public void testDuplicateDestroyAnnotationResolution2() throws CoreException {
   MarkerResolutionTestUtil.checkResolution(
       project,
       new String[] {"src/action/org/domain/SeamWebWarTestProject/session/StatelessClass.java"},
       PROBLEM_TYPE,
       SeamCoreValidator.MESSAGE_ID_ATTRIBUTE_NAME,
       SeamCoreValidator.DUPLICATE_DESTROY_MESSAGE_ID,
       DeleteAnnotationMarkerResolution.class);
 }
コード例 #3
0
 public void testDuplicateRemoveAnnotationResolution() throws CoreException {
   MarkerResolutionTestUtil.checkResolution(
       project,
       new String[] {
         "src/action/org/domain/SeamWebWarTestProject/session/StatefulDuplicateRemoveComponent.java"
       },
       PROBLEM_TYPE,
       SeamCoreValidator.MESSAGE_ID_ATTRIBUTE_NAME,
       SeamCoreValidator.DUPLICATE_REMOVE_MESSAGE_ID,
       DeleteAnnotationMarkerResolution.class);
 }
コード例 #4
0
 public void testChangeScopeResolution2() throws CoreException {
   MarkerResolutionTestUtil.checkResolution(
       project,
       new String[] {
         "src/action/org/domain/SeamWebWarTestProject/entity/EntityComponentWithWrongScope.java"
       },
       PROBLEM_TYPE,
       SeamCoreValidator.MESSAGE_ID_ATTRIBUTE_NAME,
       SeamCoreValidator.ENTITY_COMPONENT_WRONG_SCOPE_ID,
       ChangeScopeMarkerResolution.class);
 }
コード例 #5
0
 public void testAddDestroyMethodResolution() throws CoreException {
   MarkerResolutionTestUtil.checkResolution(
       project,
       new String[] {
         "src/action/org/domain/SeamWebWarTestProject/session/StatefulComponentWithoutDestroy.java"
       },
       PROBLEM_TYPE,
       SeamCoreValidator.MESSAGE_ID_ATTRIBUTE_NAME,
       SeamCoreValidator.STATEFUL_COMPONENT_DOES_NOT_CONTAIN_DESTROY_ID,
       AddAnnotatedMethodMarkerResolution.class);
 }
コード例 #6
0
 public void testDuplicateComponentNameResolution2() throws CoreException {
   MarkerResolutionTestUtil.checkResolution(
       project,
       new String[] {
         "src/action/org/domain/SeamWebWarTestProject/session/DuplicateComponent1.java"
       },
       PROBLEM_TYPE,
       SeamCoreValidator.MESSAGE_ID_ATTRIBUTE_NAME,
       SeamCoreValidator.NONUNIQUE_COMPONENT_NAME_MESSAGE_ID,
       RenameAnnotationMarkerResolution.class);
 }
コード例 #7
0
 public void testOnlyComponentClassCanHaveObserverMethodResolution2() throws CoreException {
   MarkerResolutionTestUtil.checkResolution(
       project,
       new String[] {
         "src/action/org/domain/SeamWebWarTestProject/session/NonComponentWithObserverMethod.java"
       },
       PROBLEM_TYPE,
       SeamCoreValidator.MESSAGE_ID_ATTRIBUTE_NAME,
       SeamCoreValidator.OBSERVER_DOESNT_BELONG_TO_COMPONENT_MESSAGE_ID,
       AddAnnotationMarkerResolution.class);
 }