Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
JBIDE-25669: Unexpected JAX-RS validation error for Feature (#302)

* JBIDE-25669: Unexpected JAX-RS validation error for Feature

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

* Fix failing tests

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

    • -2
    • +2
    ./domain/Jaxrs20MetamodelTestCase.java
  1. … 6 more files in changeset.
JBIDE-25276 - fails intermittently for more than 6 months, so disable this test

Signed-off-by: nickboldt <nboldt@redhat.com>

    • -0
    • +2
    ./indexation/JaxrsElementsIndexationDelegateTestCase.java
JBIDE-24880: Split JAX-WS and JAX-RS plugins (#283)

Signed-off-by: Rastislav Wagner <rawagner@redhat.com>

    • -1
    • +1
    ./builder/JaxrsMetamodelChangedProcessorTestCase.java
    • -36
    • +30
    ./indexation/LuceneIndexationTestCase.java
  1. … 508 more files in changeset.
jbide-25017 upversion affected plugins/test... (#284)

* jbide-25017: an attempt to fix tests

Signed-off-by: Dmitrii Bocharov <dbocharo@redhat.com>

* jbide-25017 upversion affected plugins/test plugins

Signed-off-by: nickboldt <nboldt@redhat.com>

    • -0
    • +8
    ./builder/JaxrsMetamodelChangedProcessorTestCase.java
    • -1
    • +2
    ./indexation/JaxrsElementsIndexationDelegateTestCase.java
  1. … 8 more files in changeset.
JBIDE-20608 - Build failure on Jenkins/OtherOS

Added missing case of resource deletion

Wait for resource content change before continuing test

    • -4
    • +4
    ./builder/JavaElement11ChangedProcessingTestCase.java
  1. … 6 more files in changeset.
JBIDE-20608 - Build failures on Jenkins/Other OS

Allow for multiple (5) attempts to delete a resource

before failing

    • -2
    • +3
    ./builder/JavaElementDeltaScannerTestCase.java
    • -1
    • +2
    ./builder/ResourceChangedProcessingTestCase.java
  1. … 4 more files in changeset.
JBIDE-19734 - JAX-RS Validator NPEs with wildcard type arguments

    • -0
    • +19
    ./builder/JavaElement20ChangedProcessingTestCase.java
    • -4
    • +24
    ./builder/ResourceChangedProcessingTestCase.java
  1. … 3 more files in changeset.
JBIDE-18453 - NPE while processing change in code

Remove a block where the signature of the Java methods were collected but not used

(a remaining of a previous refactoring)

Added some 'waits' in the unit tests (with a bit of API refactoring in the test utility classes) because

some tests would fail with ConcurrentModificationException on maven (some elements would still be processed

in a separate thread when doing the test assertions)

    • -0
    • +1
    ./builder/JavaElementDeltaScannerTestCase.java
  1. … 6 more files in changeset.
JBIDE-18453 - NPE while processing change in code

Remove a block where the signature of the Java methods were collected but not used

(a remaining of a previous refactoring)

Added some 'waits' in the unit tests (with a bit of API refactoring in the test utility classes) because

some tests would fail with ConcurrentModificationException on maven (some elements would still be processed

in a separate thread when doing the test assertions)

    • -0
    • +1
    ./builder/JavaElementDeltaScannerTestCase.java
  1. … 6 more files in changeset.
JBIDE-11766 - Work with "Annotation Properties" view breaks JAX-RS explorer

- Using jobs to process Java changes and Resource changes, with a scheduling rule

to avoid concurrency (race conditions).

- Fixing unit tests that now need to wait until the jobs (running asynchronously in another thread)

are done before doing the assertions, with a timeout (set to a lage enough value to allow for debugging)

- Fixed usage of compilation unit's working copy vs primary copy in some tests.

- Calling "ICompilationUnit.makeConsistent(IProgressMonitor)" resolves the problem where in some

cases, some JAX-RS annotations would not be "seen" by the JAX-RS tooling, resulting in elements being removed

- Removed the CompilationUnitRepository which worked as a cache for the Compilation Units AST, but could contain stale data

- Changed the 'Refresh Action' to trigger a real metamodel build ad then refresh the UI, which avoids the need to perform a project build.

    • -6
    • +20
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -3
    • +5
    ./builder/JavaElementChangedListenerTestCase.java
    • -14
    • +2
    ./builder/JavaElementDeltaScannerTestCase.java
    • -21
    • +21
    ./builder/ResourceChangedProcessingTestCase.java
    • -0
    • +4
    ./domain/Jaxrs11ElementFactoryTestCase.java
    • -22
    • +46
    ./domain/JaxrsEndpointTestCase.java
  1. … 48 more files in changeset.
JBIDE-11766 - Work with "Annotation Properties" view breaks JAX-RS explorer

- Using jobs to process Java changes and Resource changes, with a scheduling rule

to avoid concurrency (race conditions).

- Fixing unit tests that now need to wait until the jobs (running asynchronously in another thread)

are done before doing the assertions, with a timeout (set to a lage enough value to allow for debugging)

- Fixed usage of compilation unit's working copy vs primary copy in some tests.

- Calling "ICompilationUnit.makeConsistent(IProgressMonitor)" resolves the problem where in some

cases, some JAX-RS annotations would not be "seen" by the JAX-RS tooling, resulting in elements being removed

- Removed the CompilationUnitRepository which worked as a cache for the Compilation Units AST, but could contain stale data

- Changed the 'Refresh Action' to trigger a real metamodel build ad then refresh the UI, which avoids the need to perform a project build.

    • -6
    • +20
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -3
    • +5
    ./builder/JavaElementChangedListenerTestCase.java
    • -14
    • +2
    ./builder/JavaElementDeltaScannerTestCase.java
    • -21
    • +21
    ./builder/ResourceChangedProcessingTestCase.java
    • -0
    • +4
    ./domain/Jaxrs11ElementFactoryTestCase.java
    • -22
    • +46
    ./domain/JaxrsEndpointTestCase.java
  1. … 48 more files in changeset.
JBIDE-15825 - JAX-RS problems don't show up after target runtime is set

Main changes:

- handle changes at the project level when the classpath changed: rebuild the whoe JAX-RS metamodel to be process all the changes

- remove all JAX-RS markers of previous JAX-RS elements when rebuilding the while JAX-RS metamodel in a separate Job while the resource tree

is locked.

Related changes:

- added some unit tests

- refactored a unit test class

    • -40
    • +68
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -187
    • +94
    ./builder/ResourceChangedProcessingTestCase.java
  1. … 7 more files in changeset.
JBIDE-15825 - JAX-RS problems don't show up after target runtime is set

Main changes:

- handle changes at the project level when the classpath changed: rebuild the whoe JAX-RS metamodel to be process all the changes

- remove all JAX-RS markers of previous JAX-RS elements when rebuilding the while JAX-RS metamodel in a separate Job while the resource tree

is locked.

Related changes:

- added some unit tests

- refactored a unit test class

    • -40
    • +68
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -187
    • +94
    ./builder/ResourceChangedProcessingTestCase.java
  1. … 7 more files in changeset.
JBIDE-16163 - Missing update in JAX-RS explorer when facing to quick change in code

Accepting and processing events of type POST_CHANGE and POST_RECONCILE as one or the other

happens, depending if the change and save occurred at the same time (almost) or not.

    • -60
    • +44
    ./builder/JavaElement20ChangedProcessingTestCase.java
    • -9
    • +2
    ./builder/JavaElementDeltaFilterTestCase.java
    • -2
    • +2
    ./builder/JaxrsMetamodelBuilderTestCase.java
    • -2
    • +2
    ./builder/JaxrsMetamodelChangedProcessorTestCase.java
    • -2
    • +2
    ./domain/Jaxrs11MetamodelTestCase.java
    • -2
    • +2
    ./domain/Jaxrs20MetamodelTestCase.java
    • -1
    • +2
    ./indexation/LuceneIndexationTestCase.java
  1. … 12 more files in changeset.
JBIDE-16940 - Fixing sonar issues in JAX-RS plugins

    • -4
    • +2
    ./builder/JavaElementDeltaScannerTestCase.java
  1. … 14 more files in changeset.
JBIDE-18022 - For JBIDE 4.2.0.CR1: Ensure copyrights and provider names are correct in all plugins and features [Webservices]

    • -1
    • +1
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -1
    • +1
    ./builder/JavaElementChangedListenerTestCase.java
    • -1
    • +1
    ./builder/JavaElementDeltaFilterTestCase.java
    • -1
    • +1
    ./builder/JavaElementDeltaScannerTestCase.java
    • -1
    • +1
    ./builder/JaxrsMetamodelBuilderTestCase.java
    • -1
    • +1
    ./builder/JaxrsMetamodelChangedProcessorTestCase.java
    • -1
    • +1
    ./builder/Resource20ChangedProcessingTestCase.java
    • -1
    • +1
    ./builder/ResourceChangedListenerTestCase.java
    • -1
    • +1
    ./builder/ResourceChangedProcessingTestCase.java
    • -1
    • +1
    ./domain/Jaxrs11ElementFactoryTestCase.java
    • -1
    • +1
    ./domain/Jaxrs11MetamodelTestCase.java
    • -1
    • +1
    ./domain/Jaxrs20ElementFactoryTestCase.java
    • -1
    • +1
    ./domain/Jaxrs20ElementWorkingCopiesTestCase.java
  1. … 363 more files in changeset.
JBIDE-17976 - Problem markers are not removed on related Parameter Aggregators

Also introduced JaxrsResourceElement and JaxrsParameterAggregatorElement classes to reduce the code

Fixed JavaElementSearcher that did not return all 'related types' for a given type (was doing half of the job)

    • -3
    • +4
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -1
    • +2
    ./builder/ResourceChangedProcessingTestCase.java
  1. … 41 more files in changeset.
JBIDE-17663 - JAX-RS Explorer doesn't reflect binding parameter to field

Using flags to retrieve the type of JAX-RS annotation(s) that were part of the removed element

Using the 'Flags' class instead of 'int' in other places.

    • -40
    • +26
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -3
    • +3
    ./builder/JavaElement20ChangedProcessingTestCase.java
    • -32
    • +32
    ./builder/JavaElementDeltaFilterTestCase.java
    • -85
    • +87
    ./builder/JavaElementDeltaScannerTestCase.java
    • -16
    • +17
    ./builder/JaxrsMetamodelChangedProcessorTestCase.java
    • -7
    • +6
    ./builder/Resource20ChangedProcessingTestCase.java
    • -8
    • +7
    ./builder/ResourceChangedProcessingTestCase.java
    • -2
    • +3
    ./domain/Jaxrs11MetamodelTestCase.java
    • -20
    • +179
    ./domain/Jaxrs20EndpointTestCase.java
  1. … 45 more files in changeset.
JBIDE-17796 - BeanParam: unbound @PathParam error is present after the problem had been fixed

Introduced the 'working copies' for JAX-RS elements being validated

Fixed a problem where some Java element changes would not be processed (linked to https://issues.jboss.org/browse/JBIDE-18009)

    • -4
    • +3
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -0
    • +1
    ./builder/JavaElementChangedListenerTestCase.java
    • -3
    • +3
    ./builder/JavaElementDeltaScannerTestCase.java
    • -12
    • +20
    ./builder/ResourceChangedProcessingTestCase.java
    • -0
    • +219
    ./domain/Jaxrs20ElementWorkingCopiesTestCase.java
  1. … 58 more files in changeset.
JBIDE-17712 - BeanParam: matrix parameter is not recognized

works both on Parameter Aggregator Fields and Properties (setter methods)

Endpoint URI Path Template changes when the field/property type is changed

(eg: String -> Integer)

    • -14
    • +14
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -1
    • +1
    ./builder/JaxrsMetamodelChangedProcessorTestCase.java
    • -0
    • +80
    ./domain/Jaxrs20EndpointTestCase.java
  1. … 8 more files in changeset.
JBIDE-17711 - BeanParam: type of path parameter is not recognized

Problem fixed, and change of parameter aggregator field/property type also works, now ;)

    • -1
    • +71
    ./domain/Jaxrs20EndpointTestCase.java
    • -594
    • +0
    ./domain/JaxrsEndpoint20TestCase.java
  1. … 10 more files in changeset.
JBIDE-17011 - JAX-RS Explorer: Fix generation of URI for matrix's and query's default values

    • -2
    • +2
    ./builder/JaxrsMetamodelChangedProcessorTestCase.java
    • -76
    • +76
    ./domain/JaxrsEndpoint20TestCase.java
  1. … 5 more files in changeset.
JBIDE-16825 - Provide support for new @BeanParam JAX-RS Annotation

Also implemented JBIDE-17575 - Support JAX-RS annotations on bean properties

Improved JUnit tests speed by avoiding building a full metamodel for each test

    • -274
    • +520
    ./builder/JavaElement11ChangedProcessingTestCase.java
    • -4
    • +479
    ./builder/JavaElement20ChangedProcessingTestCase.java
    • -2
    • +2
    ./builder/JavaElementDeltaScannerTestCase.java
    • -80
    • +76
    ./builder/JaxrsMetamodelChangedProcessorTestCase.java
    • -0
    • +245
    ./builder/Resource20ChangedProcessingTestCase.java
    • -34
    • +110
    ./builder/ResourceChangedProcessingTestCase.java
    • -61
    • +70
    ./domain/Jaxrs11ElementFactoryTestCase.java
    • -12
    • +15
    ./domain/Jaxrs11MetamodelTestCase.java
    • -11
    • +109
    ./domain/Jaxrs20ElementFactoryTestCase.java
    • -5
    • +5
    ./domain/Jaxrs20MetamodelTestCase.java
    • -0
    • +594
    ./domain/JaxrsEndpoint20TestCase.java
    • -73
    • +94
    ./domain/JaxrsEndpointTestCase.java
    • -37
    • +38
    ./indexation/JaxrsElementsIndexationDelegateTestCase.java
    • -4
    • +4
    ./indexation/LuceneIndexationTestCase.java
  1. … 129 more files in changeset.
JBIDE-17543 - Investigate JUnit test duration

Not major improvement, despite a few changes

Also fixed JBIDE-17551 (renamed ui.test 'Logger' to 'TestLogger')

    • -4
    • +4
    ./domain/Jaxrs11ElementFactoryTestCase.java
  1. … 35 more files in changeset.
JBIDE-17540 - Replace use of Slf4j with Eclipse Logger in JAX-RS core tests

    • -18
    • +15
    ./builder/JavaElementDeltaScannerTestCase.java
    • -7
    • +4
    ./domain/Jaxrs20MetamodelTestCase.java
    • -1
    • +1
    ./indexation/LuceneIndexationTestCase.java
  1. … 15 more files in changeset.
JBIDE-17391 - Provide JAX-RS Fields type validation

    • -1
    • +0
    ./domain/Jaxrs20MetamodelTestCase.java
  1. … 22 more files in changeset.
JBIDE-16763 - Add support for JAX-RS ParamConverterProvider

    • -0
    • +18
    ./domain/Jaxrs20ElementFactoryTestCase.java
    • -1
    • +11
    ./domain/Jaxrs20MetamodelTestCase.java
  1. … 22 more files in changeset.
JBIDE-17296 - Missing warning decorator on the "JAX-RS Web Services" node when no application is defined

"JAX-RS Web Services" node in project explorer shows a "warning" decorator (by default)

if no application was defined, unless no JAX-RS element exists in the project.

    • -3
    • +3
    ./builder/JavaElementDeltaScannerTestCase.java
  1. … 7 more files in changeset.
JBIDE-17151 - Improve the Restful Services Wizard

    • -1
    • +1
    ./builder/JavaElementDeltaScannerTestCase.java
  1. … 52 more files in changeset.
JBIDE-16476 - JAX-RS explorer shows url with slash before matrix parameters

Remove the '/' that was always included before the resource method URL Path fragment, even

when it was not necessary. It is now only included if the Resource Method has an @Path annotation.

Added a JUnit test to cover the bug.

    • -0
    • +16
    ./domain/JaxrsEndpointTestCase.java
  1. … 2 more files in changeset.