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

    • -0
    • +29
    ./jboss/errai/demo/todo/ErraiJpaDemoTodoListApp.java
  1. … 677 more files in changeset.
Moved some properties from ErraiModule to ErraiApp

  1. … 20 more files in changeset.
Add ErraiModule class to all errai-demos

    • -0
    • +27
    ./jboss/errai/demo/todo/ErraiJpaDemoTodoListModule.java
  1. … 16 more files in changeset.
Prepare for ErraiModules

  1. … 21 more files in changeset.
Add Errai APT Generators mechanism

    • -0
    • +8
    ./jboss/errai/demo/todo/AptGenerators_TodoList.gwt.xml
  1. … 270 more files in changeset.
Update demos (description below).

* Upgrade several demos to EmbeddedWildFlyLauncher (SDM was broken in some demos with the JBossLauncher).

* Fix bugs in jpa demos relating to new IoC.

* Remove non-Wildfly app server profiles for several demos (don't have resources to maintain them).

* Rename jboss7 profiles to wildfly.

* Update README.md files to refer to Wildfly instead of JBoss AS 6/7.

* Add .gitignore.

    • -0
    • +86
    ./jboss/errai/demo/todo/client/local/BaseTodoItemWidget.java
  1. … 58 more files in changeset.
Add support for pause/resume to data binding

  1. … 22 more files in changeset.
Support binding with non-widgets and lists through normal programmatic API.

DataBinder.bind methods now accept non-widget objects. Types should implement

one of the following:

* com.google.gwt.user.client.TakesValue

* com.google.gwt.user.client.ui.HasValue

* com.google.gwt.user.client.ui.HasText

Objects being bound can also be wrappers for native input elements.

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

    • -0
    • +16
    ./jboss/errai/demo/todo/server/DataSyncEjb.java
  1. … 3042 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
    ./jboss/errai/demo/todo/server/DataSyncEjb.java
  1. … 3068 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -0
    • +16
    ./jboss/errai/demo/todo/server/DataSyncEjb.java
  1. … 3150 more files in changeset.
Fixed Todo-list demo: @Inject binder instead of @Model for user

Fixed Todo-list demo: @Inject binder instead of @Model for user

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. … 10 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. … 20 more files in changeset.
Remove injected ClientSyncManager from jpa-todo-list page (the issue it worked around (ERRAI-753) is no longer relevant).

Disable checkboxes shared from other users in errai-jpa-demo-todo-list.

    • -0
    • +22
    ./jboss/errai/demo/todo/client/local/LockedTodoItemWidget.java
Use declarative datasync in errai-jpa-demo-todo-list.

    • -2
    • +6
    ./jboss/errai/demo/todo/shared/TodoItem.java
Refactor ActiveUserCache into SPI. Reorganize packages.

  1. … 34 more files in changeset.
Delete LoginBuilder and add finer-grained authentictaion exceptions.

  1. … 13 more files in changeset.
Make todolist user an errai security User.

    • -0
    • +72
    ./jboss/errai/demo/todo/server/AuthenticationServiceImpl.java
    • -7
    • +7
    ./jboss/errai/demo/todo/shared/ShareList.java
    • -0
    • +154
    ./jboss/errai/demo/todo/shared/TodoListUser.java
    • -105
    • +0
    ./jboss/errai/demo/todo/shared/User.java
  1. … 1 more file in changeset.
Imported UberFire's Role and Subject types; standardized Errai security on these

  1. … 21 more files in changeset.
Renamed a few things in preparation for merging in concepts from UberFire

  1. … 9 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).

    • -0
    • +87
    ./jboss/errai/demo/todo/server/AuthenticationServiceImpl.java
    • -0
    • +29
    ./jboss/errai/demo/todo/server/PicketLinkStartup.java
    • -11
    • +11
    ./jboss/errai/demo/todo/server/ShareServiceImpl.java
    • -7
    • +7
    ./jboss/errai/demo/todo/shared/ShareList.java
  1. … 78 more files in changeset.
Security refactoring of SecurityContext:

Refactor SecurityContext to not be child of ActiveUserCache. Remove

static instance from SecurityContextImpl and create static holder class

that injects instance.

  1. … 11 more files in changeset.
Massive refactoring of SecurityUtil and ActiveUserProvider. Most logic is now in SecurityContext (non-static).

  1. … 25 more files in changeset.
Rename @RestrictAccess to @RestrictedAccess (to make tense consistent) and update documentation and rename methods/variable names.

  1. … 23 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. … 41 more files in changeset.
Refactor security classes/interfaces into more specific packages.

  1. … 65 more files in changeset.
Refactor cache-updating logic into single set of static methods.

  1. … 11 more files in changeset.