Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
ERRAI-1075: Integration tests using APT generators (#316)

* Allow multiple @ErraiApps in same jar

* Generating code for multiple @ErraiApp annotations. With problems.

* Fixed many errors in errai-ui tests APT codegen

* Partially fix errai-bus tests code generation

* Fix ErraiAptExportedTypes tests

* Fix multidimensional arrays marshaller factory generation

* Configured APT generators for errai-ioc. There are error still.

* Configure APT generators for errai-ioc-bus-support. There are still errors.

* Configure APT generators for errai-cdi-server. Fix export file exported public types

* Fix exporting only public elements in Export Files for good

* Fix exporting parameters of methods/constructors annotated with @Inject

* Fix exporting primitive values

* Configure APT generators for errai-data-binding.

* Configure APT generators for errai-jaxrs-client

* Configure APT generators for errai-navigation and errai-validation. Still broken.

* Fix random error caused by local exportable types not being erased

* Make generators be exported as part of their ErraiModule

* Remove test

* Removed unused parameter

* Reorganize tests in errai-security and configure APT generators

* Fix stylesheet files discovery

* Fix stylesheet load for reals

* Fix class name of generated files for local @ErraiApps

* Revert some undesired changes

* Prepared for running tests with apt-generated code

* Create GWT Module file generator to override rebinding rules for APT-generated code

* GWT modules being adapted to apt-generated classes in demos as well

* Place gwtModuleName in @ErraiApp

* Moved GWT module generation to ErraiAppAptGenerator

* Added additionalClassElement configuration to errai-ui

* Improve switch between generating code using APT or GWT generators

* General improvements

* Add testResources configuration to errai-ui

* Configure remaining test @ErraiApps in errai-cdi-server

* More tests configuration

* Remove comments on ErraiGenerators

* Fix errai-security-client IT tests code generation error

* General fixes

* Fixed some tests and add MetaMethodTest for all MetaMethod impls

* Add asyncBeanManager property to async tests @ErraiApp

* Add scope to un-annotated implementations of interface

* Make APTClass be the first option in MetaClassFactory

* Fix error in MetaClassFactory.get

* Resolved primitive issues in MetaClassFactory.loadClass

* Resolved primitive issues in MetaClassFactory.loadClass

* Make sure APTClassUtil is not initialized before codegen tests

* Fix broken test

* Make errai-codegen tests use APTClass before using JavaReflectionClass

* PR general pass

* Rollbcak unneeded change

* Create errai-ioc-extension-tests

* Add log4j.properties to errai-navigation tests

* CDI IOCExtensions now stay in another module and are pre-compiled

* Created mechanism to define exporting strategies depending on the annotation

* Replaced ExportedAnnotations for ExportingStrategies configuration class

* Fixed tests

* Small refactors

* Minor fixes/refactorings

* Fixed errai-navigation tests. Attemp to fix errai-validation but not complete yet

* Fix errai-jaxrs-client tests by configuring mappingAliases correctly

* Fixed one of the broken tests in errai-ioc

* Fix errai-ioc test by configuring @ErraiModule properly

* Improved exporting strategies for errai-ioc and errai-jaxrs-client

* Created jsInteropSupportEnabled configuration property

* Create dynamic validation property in @ErraiApp

* Fix almost every test in errai-data-binding

* Fix StyleBindingDecorator

* Fix errai-ioc test by dealing correctly with generic arrays as parameters in constructors/methods

* Fixed some of the server/client code generation problems

* Server code generation and CDI test fixes

* Moved Funject out of errai-cdi-server, so that it is pre-compiled

* Fix RpcIntegrationTest

* Fix SpecializationIntegrationTest

* Attempt to fix Stereotypes test

* Reset definitions factory before generating code for an @ErraiApp

* Fix JsTypeInjectionTest by changing from List to Set in WindowInjectionContextImpl providers

* General refactorings

* Fix DisconnectedEventIntegrationTest

* Fix BeanManagerIntegrationTest.testNormalScopeOverridesDependent

* Fix BeanManagerIntegrationTest.testBeanManagerLookupInheritedScopeBean by returning inherited annotations on APTClass as well

* Created tests for inherited annotations in APTClass

* Ignore tests of unsupported features in APT environment

* Fix MetaClassFinder extending/restriction methods

* Make ValidatorFactoryGenerator async and ignore dynamic validation tests for now.

* Fix configuration to ignore tests of unsupported features in APT environment

* Remove local flag from '@ErraiApp'. An app is local when the modules property is not empty

* PR final pass

* PR fixes

  1. … 679 more files in changeset.
Add ErraiModule files to errai-ui tests

    • -0
    • +24
    ./ErraiTestModule.java
  1. … 19 more files in changeset.
Fix compilation errors when using @EventHandler on private method with JS interop event.

    • -0
    • +6
    ./client/InteropEventQuickHandlerTemplateTest.java
    • -0
    • +1
    ./client/res/InteropEventQuickHandlerTemplate.html
    • -0
    • +9
    ./client/res/InteropEventQuickHandlerTemplate.java
  1. … 1 more file in changeset.
Consolidate test code for intercepting adding/removing browser event listeners.

    • -110
    • +3
    ./client/InteropEventQuickHandlerTemplateTest.java
  1. … 3 more files in changeset.
ERRAI-968: Support Errai UI quick event handlers using native @JsType events

    • -0
    • +213
    ./client/InteropEventQuickHandlerTemplateTest.java
    • -0
    • +8
    ./client/res/InteropEventQuickHandlerTemplate.html
    • -0
    • +128
    ./client/res/InteropEventQuickHandlerTemplate.java
  1. … 40 more files in changeset.
Fix quick handlers for @DataFields of Elements and @JsTypes.

    • -17
    • +26
    ./client/QuickHandlerTemplateTest.java
    • -14
    • +44
    ./client/res/CompositeQuickHandlerComponent.java
    • -14
    • +44
    ./client/res/NonCompositeQuickHandlerComponent.java
    • -1
    • +3
    ./client/res/QuickHandlerComponent.html
    • -9
    • +6
    ./client/res/QuickHandlerComponent.java
  1. … 3 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

    • -0
    • +16
    ./client/CompositeQuickHandlerTemplateTestApp.java
    • -0
    • +16
    ./client/NonCompositeQuickHandlerTemplateTestApp.java
    • -1
    • +17
    ./client/QuickHandlerTemplateTest.java
    • -7
    • +7
    ./client/QuickHandlerTemplateTestApp.java
    • -0
    • +16
    ./client/res/CompositeQuickHandlerComponent.java
    • -0
    • +16
    ./client/res/NonCompositeQuickHandlerComponent.java
    • -7
    • +7
    ./client/res/QuickHandlerComponent.java
  1. … 3050 more files in changeset.
Revert "Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header."

Changes from the reverted commit did not preserve original copyright dates.

This reverts commit d8e735dfe2f6ed25fe9e06b753ae2f6154d76b02.

    • -16
    • +0
    ./client/CompositeQuickHandlerTemplateTestApp.java
    • -16
    • +0
    ./client/NonCompositeQuickHandlerTemplateTestApp.java
    • -16
    • +0
    ./client/QuickHandlerTemplateTest.java
    • -6
    • +6
    ./client/QuickHandlerTemplateTestApp.java
    • -16
    • +0
    ./client/res/CompositeQuickHandlerComponent.java
    • -16
    • +0
    ./client/res/NonCompositeQuickHandlerComponent.java
    • -6
    • +6
    ./client/res/QuickHandlerComponent.java
  1. … 3076 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -0
    • +16
    ./client/CompositeQuickHandlerTemplateTestApp.java
    • -0
    • +16
    ./client/NonCompositeQuickHandlerTemplateTestApp.java
    • -0
    • +16
    ./client/QuickHandlerTemplateTest.java
    • -6
    • +6
    ./client/QuickHandlerTemplateTestApp.java
    • -0
    • +16
    ./client/res/CompositeQuickHandlerComponent.java
    • -0
    • +16
    ./client/res/NonCompositeQuickHandlerComponent.java
    • -6
    • +6
    ./client/res/QuickHandlerComponent.java
  1. … 3158 more files in changeset.
Call onAttach when initializing templated beans (description below).

This makes DOM event handlers registered through widgets work properly

even if a template is added to the DOM as an element.

    • -2
    • +1
    ./client/NonCompositeQuickHandlerTemplateTestApp.java
    • -0
    • +8
    ./client/res/NonCompositeQuickHandlerComponent.java
  1. … 13 more files in changeset.
Duplicate many errai-ui tests for non-composite templated beans.

Tests duplicated:

* Designer template test

* Element template test

* Extended template tests

* Extended template test

* I18n template test

* Quick handler tests

* Style binding tests

Fix a bug caught by a new test: there was a rebind error

when using native quick handlers in non-composite templates.

    • -0
    • +36
    ./client/CompositeQuickHandlerTemplateTestApp.java
    • -0
    • +37
    ./client/NonCompositeQuickHandlerTemplateTestApp.java
    • -2
    • +14
    ./client/QuickHandlerTemplateTest.java
    • -23
    • +23
    ./client/QuickHandlerTemplateTestApp.java
    • -0
    • +125
    ./client/res/CompositeQuickHandlerComponent.java
    • -0
    • +131
    ./client/res/NonCompositeQuickHandlerComponent.java
    • -104
    • +53
    ./client/res/QuickHandlerComponent.java
  1. … 55 more files in changeset.
Add support for non-composite templated beans, js type data fields, and elemental data fields.

Errai UI now supports:

* @Templated beans without Composite base class (or any other particular base class).

* @JsType element wrappers or elemental element wrappers as @DataFields.

* Style-binding and data-binding for non-composite templates and element wrappers.

    • -1
    • +7
    ./client/QuickHandlerTemplateTest.java
    • -0
    • +1
    ./client/res/QuickHandlerComponent.html
    • -2
    • +21
    ./client/res/QuickHandlerComponent.java
  1. … 50 more files in changeset.
Fixed ERRAI-597: IOC fails for inherited @Templated beans that are not marked as @Dependent

    • -2
    • +0
    ./client/res/QuickHandlerComponent.java
  1. … 17 more files in changeset.
now uses the new chain

    • -24
    • +0
    ./client/res/QuickHandlerWidgetComponent.java
  1. … 8 more files in changeset.
Implemented ERRAI-382: EventHandler annotation should allow registering for events on this, +improved the JPA grocery list demo to use the new feature

    • -2
    • +5
    ./client/QuickHandlerTemplateTest.java
    • -4
    • +12
    ./client/res/QuickHandlerComponent.java
  1. … 4 more files in changeset.
    • -2
    • +2
    ./client/res/QuickHandlerComponent.java
  1. … 10 more files in changeset.
Better error handling for @SyncNative and duplicate @EventHandler methods

    • -0
    • +2
    ./client/QuickHandlerTemplateTest.java
    • -6
    • +10
    ./client/res/QuickHandlerComponent.java
    • -0
    • +24
    ./client/res/QuickHandlerWidgetComponent.java
  1. … 1 more file in changeset.
Wrapped native Element fields now reference actual field used in component.

    • -2
    • +1
    ./client/QuickHandlerTemplateTest.java
  1. … 1 more file in changeset.
Completely native eEventListeners along with Widget EventHandlers are working

    • -2
    • +25
    ./client/QuickHandlerTemplateTest.java
    • -3
    • +4
    ./client/res/QuickHandlerComponent.html
    • -13
    • +48
    ./client/res/QuickHandlerComponent.java
  1. … 6 more files in changeset.
Partial stage @EventHandler

    • -0
    • +30
    ./client/QuickHandlerTemplateTest.java
    • -0
    • +29
    ./client/QuickHandlerTemplateTestApp.java
    • -0
    • +5
    ./client/res/QuickHandlerComponent.html
    • -0
    • +47
    ./client/res/QuickHandlerComponent.java
  1. … 4 more files in changeset.