Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355921

Summary: [Tests] Constrain tests declaratively
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.relengAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3    
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch A none

Description Eike Stepper CLA 2011-08-26 03:55:57 EDT
Provide and use the following annotations:

  @Inherited
  @Retention(RetentionPolicy.RUNTIME)
  @Target({ ElementType.TYPE, ElementType.METHOD })
  public @interface Requires
  {
    String[] value();
  }

  @Inherited
  @Retention(RetentionPolicy.RUNTIME)
  @Target({ ElementType.TYPE, ElementType.METHOD })
  public @interface Skips
  {
    String[] value();
  }
Comment 1 Eike Stepper CLA 2011-08-26 03:57:58 EDT
Add a the following method to IScenario:

	public Set<String> getCapabilities();
	
and give all IConfigs a chance to contribute to it.
Comment 2 Eike Stepper CLA 2011-08-26 06:09:51 EDT
Created attachment 202215 [details]
Patch A
Comment 3 Eike Stepper CLA 2011-08-26 06:11:31 EDT
Committed revision 8967
Comment 4 Eike Stepper CLA 2011-08-26 06:19:40 EDT
Committed revision 8968:
- trunk/plugins/org.eclipse.emf.cdo.tests
Comment 5 Eike Stepper CLA 2011-08-27 01:09:43 EDT
Test case reduction: 2863
====================

AllTests: 10488 -> 9204
AllTests H2:  15900 -> 14321

Keeping this bug open because the generic store capabilities still have to be handled:

skipStoreWithoutExternalReferences()
skipStoreWithoutQueryXRefs()
skipStoreWithoutLargeObjects()
skipStoreWithoutFeatureMaps()
skipStoreWithoutHandleRevisions()
skipStoreWithoutRawAccess()
Comment 6 Eike Stepper CLA 2012-08-14 22:57:48 EDT
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Comment 7 Eike Stepper CLA 2013-06-27 04:08:54 EDT
Moving all outstanding enhancements to 4.3
Comment 8 Eike Stepper CLA 2013-11-14 00:28:42 EST
This has been fixed a while ago.
Comment 9 Eike Stepper CLA 2020-12-11 10:26:25 EST
Closing.
Comment 10 Eike Stepper CLA 2020-12-11 10:32:40 EST
Closing.