STEP: Create Dynamic Web Project with JAX-RS Support
STEP: Create Authorized annotation
import javax.ws.rs.NameBinding;
@NameBinding
public @interface Authorized {
}
ASSERT: There are 2 errors in Problems view:
The Name Binding should have a @Retention(RetentionPolicy.RUNTIME) annotation on its type.
The Name Binding should have a @Target(ElementType.METHOD) annotation on its type.
STEP: Use Quick Fix to fix missing @Retention annotation via Problems view (left click on the problem in Problems View and then select "Quick Fix" in the context menu)
ASSERT: Quick Fix was applied
STEP: Use another Quick Fix to fix missing @Target annotation via Problems view
FAIL: Option "Quick Fix" is disabled
STEP: Create Dynamic Web Project with JAX-RS Support
STEP: Create Authorized annotation
import javax.ws.rs.NameBinding;
@NameBinding
public @ interface Authorized {
}
ASSERT: There are 2 errors in Problems view:
The Name Binding should have a @Retention(RetentionPolicy.RUNTIME) annotation on its type.
The Name Binding should have a @Target(ElementType.METHOD) annotation on its type.
STEP: Use Quick Fix to fix missing @Retention annotation via Problems view (left click on the problem in Problems View and then select "Quick Fix" in the context menu)
ASSERT: Quick Fix was applied
STEP: Use another Quick Fix to fix missing @Target annotation via Problems view
FAIL: Option "Quick Fix" is disabled