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.
Support less imports with absolute paths.

    • -0
    • +1
    ./client/res/less-style-with-import.less
  1. … 2 more files in changeset.
Support loading less imports from arbitrary paths in the classpath.

  1. … 3 more files in changeset.
Reintroduce LESS support via @Templated stylesheet attribute.

    • -0
    • +36
    ./client/res/LessStyledComponent.java
    • -0
    • +4
    ./client/res/LessStyledComponent.less
    • -0
    • +36
    ./client/res/LessStyledComponentAbsolute.java
    • -0
    • +36
    ./client/res/LessStyledComponentRelative.java
    • -0
    • +36
    ./client/res/LessStyledComponentWithImport.java
    • -0
    • +7
    ./client/res/less-style-with-import.less
    • -0
    • +4
    ./client/res/less-style.less
    • -0
    • +1
    ./client/res/less-styled-template.html
  1. … 4 more files in changeset.
ERRAI-987: Nested @Templated beans that aren't Composite or IsElement have incorrect Widget hierarchy

    • -0
    • +77
    ./client/AppScopedTemplateTest.java
    • -0
    • +3
    ./client/res/AppScoped.html
    • -0
    • +41
    ./client/res/AppScopedParent1.java
    • -0
    • +41
    ./client/res/AppScopedParent2.java
    • -0
    • +43
    ./client/res/NestedAppScopedTemplate.java
  1. … 1 more file in changeset.
ERRAI-938: Having an option on @DataField for alternative attribute merging strategies

    • -0
    • +113
    ./client/AttributeMergingTest.java
    • -0
    • +4
    ./client/res/Attributes.html
    • -0
    • +56
    ./client/res/BeanStrategy.java
    • -0
    • +58
    ./client/res/MixedStrategy.java
    • -0
    • +56
    ./client/res/TemplateStrategy.java
  1. … 9 more files in changeset.
ERRAI-970: Allow using IsWidget implementations with @DataField annotation (#181)

    • -0
    • +65
    ./client/IsWidgetComponentTest.java
    • -0
    • +44
    ./client/IsWidgetComponentTestApp.java
    • -0
    • +34
    ./client/res/IsWidgetComponent.java
    • -0
    • +3
    ./client/res/IsWidgetComponentView.html
    • -0
    • +33
    ./client/res/IsWidgetComponentView.java
    • -0
    • +4
    ./client/res/IsWidgetParentComponent.html
    • -0
    • +41
    ./client/res/IsWidgetParentComponent.java
  1. … 1 more file in changeset.
Generate ClientBundle to inject css files specified in @Templated.

    • -0
    • +3
    ./client/res/StyledComponent.css
    • -0
    • +3
    ./client/res/StyledComponent.html
    • -0
    • +40
    ./client/res/StyledComponent.java
    • -0
    • +40
    ./client/res/StyledComponentWithAbsoluteSheetPath.java
    • -0
    • +40
    ./client/res/StyledComponentWithRelativeSheetPath.java
    • -0
    • +29
    ./client/res/StyledTemplatedBean.java
    • -0
    • +3
    ./client/res/absolute.css
    • -0
    • +3
    ./client/res/relative.css
  1. … 3 more files in changeset.
Generate ClientBundle to inject css files specified in @Templated.

    • -0
    • +3
    ./client/res/StyledComponent.css
    • -0
    • +3
    ./client/res/StyledComponent.html
    • -0
    • +40
    ./client/res/StyledComponent.java
    • -0
    • +40
    ./client/res/StyledComponentWithAbsoluteSheetPath.java
    • -0
    • +40
    ./client/res/StyledComponentWithRelativeSheetPath.java
    • -0
    • +29
    ./client/res/StyledTemplatedBean.java
    • -0
    • +3
    ./client/res/absolute.css
    • -0
    • +3
    ./client/res/relative.css
  1. … 3 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

    • -0
    • +16
    ./client/BasicTemplateTestAppUsingDataFields.java
    • -0
    • +16
    ./client/BasicTemplateTestAppUsingIds.java
    • -0
    • +16
    ./client/BasicTemplateTestAppUsingStyleClasses.java
    • -0
    • +16
    ./client/PrecedenceTemplateTestApp.java
    • -2
    • +2
    ./client/res/BasicComponentUsingDataFields.java
    • -2
    • +2
    ./client/res/BasicComponentUsingIds.java
    • -2
    • +2
    ./client/res/BasicComponentUsingStyleClasses.java
    • -6
    • +6
    ./client/res/NonCompositeComponent.java
  1. … 3045 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/BasicTemplateTestAppUsingDataFields.java
    • -16
    • +0
    ./client/BasicTemplateTestAppUsingIds.java
    • -16
    • +0
    ./client/BasicTemplateTestAppUsingStyleClasses.java
    • -16
    • +0
    ./client/PrecedenceTemplateTestApp.java
    • -3
    • +3
    ./client/res/BasicComponentUsingDataFields.java
    • -3
    • +3
    ./client/res/BasicComponentUsingIds.java
    • -3
    • +3
    ./client/res/BasicComponentUsingStyleClasses.java
    • -5
    • +5
    ./client/res/NonCompositeComponent.java
  1. … 3071 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -0
    • +16
    ./client/BasicTemplateTestAppUsingDataFields.java
    • -0
    • +16
    ./client/BasicTemplateTestAppUsingIds.java
    • -0
    • +16
    ./client/BasicTemplateTestAppUsingStyleClasses.java
    • -0
    • +16
    ./client/PrecedenceTemplateTestApp.java
    • -3
    • +3
    ./client/res/BasicComponentUsingDataFields.java
    • -3
    • +3
    ./client/res/BasicComponentUsingIds.java
    • -3
    • +3
    ./client/res/BasicComponentUsingStyleClasses.java
    • -5
    • +5
    ./client/res/NonCompositeComponent.java
  1. … 3153 more files in changeset.
Detach templated beans and cleanup TemplateWidget mappings on destruction.

  1. … 6 more files in changeset.
Support @DataField for root element of template.

    • -1
    • +1
    ./client/res/NonCompositeComponent.html
    • -0
    • +9
    ./client/res/NonCompositeComponent.java
  1. … 2 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.

    • -0
    • +7
    ./client/res/BasicComponentUsingDataFields.html
    • -0
    • +7
    ./client/res/BasicComponentUsingIds.html
    • -0
    • +7
    ./client/res/BasicComponentUsingStyleClasses.html
    • -0
    • +4
    ./client/res/NonCompositeComponent.html
    • -0
    • +49
    ./client/res/NonCompositeComponent.java
  1. … 46 more files in changeset.
Make errai-ui tests more robust

  1. … 5 more files in changeset.
More tests and fixes for ERRAI-670

    • -0
    • +29
    ./client/PrecedenceTemplateTestApp.java
    • -0
    • +13
    ./client/res/PrecedenceComponent.html
    • -0
    • +50
    ./client/res/PrecedenceComponent.java
  1. … 7 more files in changeset.
Implemented ERRAI-670: Make data-field attributes optional (still needs more tests)

    • -1
    • +2
    ./client/BasicTemplateTestAppUsingDataFields.java
    • -1
    • +1
    ./client/res/BasicComponentUsingDataFields.html
    • -0
    • +24
    ./client/res/BasicComponentUsingDataFields.java
    • -1
    • +1
    ./client/res/BasicComponentUsingIds.html
    • -1
    • +1
    ./client/res/BasicComponentUsingStyleClasses.html
  1. … 1 more file in changeset.
Prepared tests for ERRAI-670: Make data-field attributes in html templates optional

    • -23
    • +19
    ./client/BasicTemplateTestApp.java
    • -0
    • +30
    ./client/BasicTemplateTestAppUsingDataFields.java
    • -0
    • +30
    ./client/BasicTemplateTestAppUsingIds.java
    • -0
    • +31
    ./client/BasicTemplateTestAppUsingStyleClasses.java
    • -0
    • +11
    ./client/res/BasicComponentUsingIds.html
    • -0
    • +24
    ./client/res/BasicComponentUsingIds.java
    • -0
    • +11
    ./client/res/BasicComponentUsingStyleClasses.html
    • -0
    • +24
    ./client/res/BasicComponentUsingStyleClasses.java
Fixed ERRAI-597: IOC fails for inherited @Templated beans that are not marked as @Dependent

  1. … 17 more files in changeset.
Added test for the errai-ui/databinding integration

  1. … 6 more files in changeset.
Moved ErraiUI to top level module

  1. … 117 more files in changeset.