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.
Remove random string from ExportFile names

    • -0
    • +26
    ./ErraiValidationTestModule.java
  1. … 26 more files in changeset.
Dyn. validation: Add support for constraint violation messages

    • -0
    • +13
    ./client/test/DynamicValidationIntegrationTest.java
  1. … 4 more files in changeset.
Dyn. validation: Add missing type aliases for Number subtypes

- This is to ensure that constraint validators for numbers

can be used for all type of numbers e.g. MaxValidatorForNumber

should work for Long, Double, Integer, BigDecimal, etc.

    • -0
    • +63
    ./client/test/DynamicValidationIntegrationTest.java
  1. … 1 more file in changeset.
Support validation of values by individual constraints.

    • -2
    • +10
    ./client/ModuleWithInjectedValidator.java
    • -0
    • +117
    ./client/test/DynamicValidationIntegrationTest.java
  1. … 7 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

    • -0
    • +16
    ./client/BlacklistedWithConstraint.java
    • -0
    • +16
    ./client/ClassLevelConstraintBean.java
    • -0
    • +16
    ./client/ClassLevelConstraintValidator.java
    • -16
    • +15
    ./client/ModuleWithInjectedValidator.java
    • -2
    • +2
    ./client/TestModelWithoutConstraints.java
    • -0
    • +16
    ./client/blacklisted/ClassWithConstraintInBlacklistedPackage.java
    • -0
    • +16
    ./client/test/ValidationBlacklistTest.java
    • -2
    • +2
    ./client/test/ValidationIntegrationTest.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/BlacklistedWithConstraint.java
    • -16
    • +0
    ./client/ClassLevelConstraintBean.java
    • -16
    • +0
    ./client/ClassLevelConstraintValidator.java
    • -16
    • +17
    ./client/ModuleWithInjectedValidator.java
    • -3
    • +3
    ./client/TestModelWithoutConstraints.java
    • -16
    • +0
    ./client/blacklisted/ClassWithConstraintInBlacklistedPackage.java
    • -16
    • +0
    ./client/test/ValidationBlacklistTest.java
    • -3
    • +3
    ./client/test/ValidationIntegrationTest.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/BlacklistedWithConstraint.java
    • -0
    • +16
    ./client/ClassLevelConstraintBean.java
    • -0
    • +16
    ./client/ClassLevelConstraintValidator.java
    • -17
    • +16
    ./client/ModuleWithInjectedValidator.java
    • -3
    • +3
    ./client/TestModelWithoutConstraints.java
    • -0
    • +16
    ./client/blacklisted/ClassWithConstraintInBlacklistedPackage.java
    • -0
    • +16
    ./client/test/ValidationBlacklistTest.java
    • -3
    • +3
    ./client/test/ValidationIntegrationTest.java
  1. … 3153 more files in changeset.
Fixed ERRAI-839: Class-level validation now works independently.

Add class types that are annotated with validation annotations to the set of

validatable beans in the GwtValidatorGenerator.

Test for proper validation of types annotated with class-level annotations

that do not contain any field-level validation annotations.

    • -0
    • +23
    ./client/ClassLevelConstraintBean.java
    • -0
    • +19
    ./client/ClassLevelConstraintValidator.java
    • -1
    • +11
    ./client/test/ValidationIntegrationTest.java
  1. … 1 more file in changeset.
Use Predicate to filter file paths when scanning in GwtValidationGenerator.

    • -1
    • +1
    ./client/test/ValidationBlacklistTest.java
  1. … 7 more files in changeset.
Use Predicate to filter file paths when scanning in GwtValidationGenerator.

    • -1
    • +1
    ./client/test/ValidationBlacklistTest.java
  1. … 7 more files in changeset.
Fixed ERRAI-763: Bean Validation causes NPE for uninitialized collections

  1. … 1 more file in changeset.
Fixed ERRAI-763: Bean Validation causes NPE for uninitialized collections

  1. … 1 more file in changeset.
Improved fix for ERRAI-745 to work with all collection types

  1. … 2 more files in changeset.
Fixed ERRAI-745: Bean validation fails for collections of bindable types

    • -8
    • +52
    ./client/test/ValidationIntegrationTest.java
  1. … 1 more file in changeset.
Added bean validation test for lists of bindable types

    • -0
    • +22
    ./client/test/ValidationIntegrationTest.java
Fix and regression test for ERRAI-672

  1. … 3 more files in changeset.
Fix and regression test for ERRAI-672

  1. … 3 more files in changeset.
Fix validation test-case failure message.

    • -1
    • +1
    ./client/test/ValidationIntegrationTest.java
Fix and tests for ERRAI-624.

Validation scanner uses list in ErraiApp.properties (like the IOC black-

and whitelists).

The behaviour of built-in scanners in errai reflections can now easily

be overridden.

    • -0
    • +17
    ./client/BlacklistedWithConstraint.java
    • -0
    • +17
    ./client/blacklisted/ClassWithConstraintInBlacklistedPackage.java
    • -0
    • +48
    ./client/test/ValidationBlacklistTest.java
  1. … 11 more files in changeset.
Marking test model class with @Ignore

    • -0
    • +3
    ./client/TestModelWithoutConstraints.java
errai-validation: now discovers beans that use @Valid but no other @Constraints

    • -0
    • +38
    ./client/TestModelWithoutConstraints.java
    • -0
    • +16
    ./client/test/ValidationIntegrationTest.java
  1. … 1 more file in changeset.
refactoring: removed API package (bean validator doesn't need tbe exposed as API, the standard javax.validation.Validator can be used)"

    • -1
    • +1
    ./client/test/ValidationIntegrationTest.java
  1. … 3 more files in changeset.
errai-validation: bindable type aware validators can now also be retrieved using the standard factory in addition to injection

    • -14
    • +15
    ./client/ModuleWithInjectedValidator.java
    • -3
    • +48
    ./client/test/ValidationIntegrationTest.java
  1. … 5 more files in changeset.
Added missing license headers

The files I've created in my last 2 pull requests were missing the license headers.

    • -0
    • +16
    ./client/TestConstraintValidator.java
  1. … 2 more files in changeset.
Put @Ignore on TestConstraintValidator

  1. … 1 more file in changeset.
Added generation of the GWT Validator factory.

    • -0
    • +27
    ./client/TestConstraint.java
    • -0
    • +20
    ./client/TestConstraintValidator.java
    • -0
    • +7
    ./client/TestGroup.java
    • -28
    • +0
    ./client/TestModelValidatorFactory.java
    • -0
    • +15
    ./client/test/ValidationIntegrationTest.java
  1. … 6 more files in changeset.
ERRAI-448: Initial work on a new errai-validation module

    • -0
    • +30
    ./ValidationTestModule.gwt.xml
    • -0
    • +39
    ./client/ModuleWithInjectedValidator.java
    • -0
    • +58
    ./client/TestModel.java
    • -0
    • +28
    ./client/TestModelValidatorFactory.java
    • -0
    • +66
    ./client/test/ValidationIntegrationTest.java
  1. … 9 more files in changeset.