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. … 680 more files in changeset.
Remove random string from ExportFile names

  1. … 26 more files in changeset.
Support ErraiApp.properties in META-INF dir

    • -0
    • +0
    ./resources/META-INF/ErraiApp.properties
  1. … 122 more files in changeset.
Support ErraiApp.properties in META-INF dir

    • -0
    • +0
    ./resources/META-INF/ErraiApp.properties
  1. … 122 more files in changeset.
Remove deprecated user cookie + fix todo list demo.

  1. … 14 more files in changeset.
ERRAI-1000: User is displayed as ANONYMOUS if his/her role name contains apostrophe

  1. … 1 more file in changeset.
ERRAI-1000: User is displayed as ANONYMOUS if his/her role name contains apostrophe

Back-port of ERRAI-1000

  1. … 5 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

    • -7
    • +7
    ./java/org/jboss/errai/security/res/Service.java
  1. … 3051 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.

    • -6
    • +6
    ./java/org/jboss/errai/security/res/Service.java
  1. … 3077 more files in changeset.
Delete deprecated UserCookieFilter.

  1. … 4 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -6
    • +6
    ./java/org/jboss/errai/security/res/Service.java
  1. … 3158 more files in changeset.
Fix tests and demo config to work with GWT 2.8-beta1 and Java 8 (description below).

GWT 2.8-beta1 requires compiling client code with JDK8. The following

changes were required:

* Increase GWT compiler heap size for errai-security-demo.

* Replace UserCookieEncoderTests that were dependent on

ordering of map elements with single test that tests

a round-trip encoding/decoding.

* Use JsPackage.GLOBAL constant for namespace of errai-ui test

element wrappers.

  1. … 6 more files in changeset.
Fixed incorrect mock setup in UserCookieFilterTest

Added groups to errai-security user

- Groups do not have any semantics in Errai. By default, Errai relies on roles only when checking for permissions.

- Groups were introduced to allow for more customization use cases

  1. … 9 more files in changeset.
Added groups to errai-security user

- Groups do not have any semantics in Errai. By default, Errai relies on roles only when checking for permissions.

- Groups were introduced to allow for more customization use cases

  1. … 18 more files in changeset.
Fixed ERRAI-783: ServerSecurityRoleInterceptor needs default no-arg constructor

  1. … 2 more files in changeset.
Fixed ERRAI-783: ServerSecurityRoleInterceptor needs default no-arg constructor

  1. … 2 more files in changeset.
Add missing license headers to java source files in errai-security.

  1. … 53 more files in changeset.
Create unit tests for errai-security-keycloak and UserCookieFilter.

  1. … 6 more files in changeset.
Implement ERRAI-732.

Restricted access can now require roles form a provider class at

runtime.

  1. … 28 more files in changeset.
Fixed ERRAI-752: User cookies sent from a Jetty server demarshall as String instead of UserImpl

  1. … 2 more files in changeset.
Create ANONYMOUS user constant to use instead of null when no user logged in.

  1. … 15 more files in changeset.
Added a test to ensure UserImpl is properly @Portable

Centralized the role membership checking logic onto User; added unit tests for it

  1. … 9 more files in changeset.
Imported UberFire's Role and Subject types; standardized Errai security on these

  1. … 24 more files in changeset.
Merge parts of Uberfire Security into Errai. Details below.

* Imported UberFire's Role and Subject (now User) types; standardized Errai security on these

* Centralized the role membership checking logic onto User; added unit tests for it

* Refactor ActiveUserCache into SPI.

* Create ANONYMOUS user constant to use instead of null when no user logged in.

* Switch to cookie storage of user info so that we can unify with UberFire's form based login

* Use cookies instead of local storage; add CookieEncoder class into shared package.

* Make todolist demo user an errai security User.

* Delete Identity class (it's redundant; Caller<AuthenticationService> can be used).

  1. … 90 more files in changeset.
Add license headers to errai security and errai security demo.

    • -0
    • +16
    ./java/org/jboss/errai/security/res/Service.java
  1. … 82 more files in changeset.
Rename @RestrictAccess to @RestrictedAccess (to make tense consistent) and update documentation and rename methods/variable names.

  1. … 25 more files in changeset.
Remove redundancy in security annotation api, and fix names in security User.

Remove the @RequireAuthentication and rename @RequireRoles to

@RestrictAccess. @RestrictAccess has no roles by default, which has an

identical effect to what @RequireAuthentication did previously.

  1. … 42 more files in changeset.
Refactor security classes/interfaces into more specific packages.

  1. … 71 more files in changeset.