Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop to master. Release 2.0 #121

Merged
merged 58 commits into from
Dec 2, 2023
Merged

Merge develop to master. Release 2.0 #121

merged 58 commits into from
Dec 2, 2023

Conversation

hladchenko
Copy link
Member

No description provided.

hladchenko and others added 30 commits November 7, 2023 14:21
* Add bean definition structure and interfaces, rename packages

---------

Co-authored-by: Ruslan Hladchenko <rugladchenko@gmail.com>
* #23 Add gitHub action for build and test

* Updated run on any pull_request
Configure logging

Co-authored-by: Volodymyr Holichenko <volodmyr.holichenko@raiffeisen.ua>
Add base annotation BringComponent
* #42 add plugin surfire

* #42 add plugin surfire change junit version in plugin
* us #16 implement ScanUtils

* us #16 add tests for ScanUtils

* us #16 update tests and fix logic

* us #16 add java docs.

* us #16 fix assert version.
* Skeleton for class path annotation based bean scanner
* Added myself to POM developers block
…for changed files is less than 80%

Co-authored-by: Volodymyr Holichenko <volodmyr.holichenko@raiffeisen.ua>
* Implement SimpleBeanDefinitionRegistry with tests (#18)

* Configure surfire plugin to run tests

* Implement SimpleBeanDefinitionRegistry with tests (Task#18) with fixing according pull request #35

* Change tests to assertj

* Fixed SimpleBeanDefinitionRegistry with tests (Task#18) according pull request #35

---------

Co-authored-by: mykola.filimonov <filimonovkolya97@gmail.com>
…eanDefinition (#19) (#20) (#21)   (#50)


* Add bean definition structure and interfaces, rename packages

* Implement AnnotatedBeanDefinitionReader, BeanDefinitionReaderUtils, BeanDefinition

---------

Co-authored-by: Ruslan Hladchenko <rugladchenko@gmail.com>
Co-authored-by: Volodymyr Holichenko <volodmyr.holichenko@raiffeisen.ua>
Co-authored-by: mykola.filimonov <filimonovkolya97@gmail.com>
* Add SimpleObjectFactory implementation

* added static factory method to statr our BringContainer, and added test

---------

Co-authored-by: mykola.filimonov <filimonovkolya97@gmail.com>
* #45. Implement validation for packages

* fix test problem

* add doc

* add doc

* add unit tests

* fix display name

* temp

* temp

* fix tests problem

* fix tests problem

* fix messages
* #45. Implement validation for packages

* fix test problem

* add doc

* add doc

* add unit tests

* fix display name

* Add logs to the ScanUtilsImpl.java

* did refactor

* merge last updates

* fix message

* fix message
* add interface BringComponentScan

* temp

* add annotation BringComponentScan
… with arguments (#76)

* Implemented basic implementation of single constructor with arguments bean creation

* Test dummy way to initialize bean dependencies

* constructor dependencies implemented

* BeanDefinitionReaderUtils tests

* Changes by iuade0t8, improved tests

* Changes by serhiibarabash, improved tests

* bring container covered with tests

* finished container tests
* Tomcat server: Add basic embedded tomcat server

* Added ServletInitializer which scan all Controllers and register them in DispatcherServlet, added corresponding annotations

* add logs and javaDocs to all required files

---------

Co-authored-by: mykola.filimonov <filimonovkolya97@gmail.com>
…priate init constructor (#82)

* implement the logic for bean constructor validation and getting appropriate init constructor
add dummy tests for findBeanInitConstructor,
add javadoc and tests for ReflectionUtils

* upgrade version for maven-javadoc-plugin and add new unsupported tag

* fix build job

* Revert "fix build job"

This reverts commit acd7fdc.

* fix build job

* fix test ordering for BeanDefinitionReaderUtilsTest

* implement dummy tests

* implement dummy test

* implement dummy test

* remove todo

* set init constructor, add test

* remove old todos

* reuse getConstructorsAnnotatedWith for isAnnotationPresentForSingleConstructorOnly

* reuse getConstructorsAnnotatedWith for isAnnotationPresentForSingleConstructorOnly

* Removed unnecessary todos

* simplify validation logic and resolve PR comments

* Changed else-if to simply if

---------

Co-authored-by: Volodymyr Holichenko <volodmyr.holichenko@raiffeisen.ua>
Co-authored-by: Vitalii Katkov <katkovvitaliy@gmail.com>
* add logging to SimpleBeanDefinitionRegistry
* us #65 get bean name from component annotation
s-barabash and others added 16 commits December 1, 2023 09:41
* #91 implement code logic

* #91 fix comments and current tests add todo with test scenarios to write tests

* #91 fix comments and current tests add todo with test scenarios to write tests

* #91 add tests

* #91 add tests

* #91 add TODO

---------

Co-authored-by: Serhii Barabash <sbarabash@marqeta.com>
…ods (#100)

* @configuration bean methods

* implemented base logic

---------

Co-authored-by: Volodymyr Holichenko <volodmyr.holichenko@raiffeisen.ua>
* #105 add support BringResponse for Exception handler

* #105 remove todo

* #105 remove todo

* #105 add logs

* #105 add logs

---------

Co-authored-by: Serhii Barabash <sbarabash@marqeta.com>
#110)

* Fix path validator. Add new case where our path should start and not end with slash

* Fix WebPathValidator tests

* Remove Test and TestController

* Fix verifyPath method logic
* Tomcat server: Add basic embedded tomcat server

* Added ServletInitializer which scan all Controllers and register them in DispatcherServlet, added corresponding annotations

* Multiple Get Mapping: Add Multiple Get Mapping

* Embedded Tomcat: Fix formatting for WebContainerInitializer and TomcatServer

* Multiple request mapping: Add post, put, delete, head handlers

* Multiple request mapping: Refactor dispatcher servlet, implemented 404 error handling and add duplicate path exception
---------

Co-authored-by: Ruslan Hladchenko <rugladchenko@gmail.com>
Co-authored-by: mykola.filimonov <filimonovkolya97@gmail.com>
Co-authored-by: Serhii Barabash <sbarabash@marqeta.com>
Co-authored-by: RomanPryshchepa <roman.pryshchepa@gmail.com>
Co-authored-by: Vitalii Katkov <katkovvitaliy@gmail.com>
Co-authored-by: oleg.iakovenko <iakovenkoua@gmail.com>
* implement @RequestParam handling

* add tests for @RequestParam handling

---------

Co-authored-by: Volodymyr Holichenko <volodmyr.holichenko@raiffeisen.ua>
Co-authored-by: mykola.filimonov <filimonovkolya97@gmail.com>
* refactoring

* code style

* java doc for status
* added get bean definition by type
* project documentation update
* project version upgrade
Co-authored-by: Serhii Barabash <sbarabash@marqeta.com>
Copy link

github-actions bot commented Dec 2, 2023

Code Coverage

Overall Project 94.56% -5.44% 🟢
Files changed 94.56% 🟢

File Coverage
ScanUtilsImpl.java 100% 🟢
AnnotatedGenericBeanDefinition.java 100% 🟢
ConfigurationBeanDefinition.java 100% 🟢
BeanDependency.java 100% 🟢
WebMethodParameterException.java 100% 🟢
BodyReadException.java 100% 🟢
WebPathValidationException.java 100% 🟢
AmbiguousHttpAnnotationException.java 100% 🟢
DuplicatePathException.java 100% 🟢
RequestsMappingException.java 100% 🟢
BeanDefinitionReader.java 100% 🟢
BeanDefinitionValidator.java 100% 🟢
BeanDefinitionCreationException.java 100% 🟢
BringComponentScanNotFoundException.java 100% 🟢
AliasDuplicateException.java 100% 🟢
ResourceNotFoundException.java 100% 🟢
InvalidPropertyValueException.java 100% 🟢
MethodValidationException.java 100% 🟢
BeanDefinitionDuplicateException.java 100% 🟢
PropertyNotFoundException.java 100% 🟢
BeanDefinitionValidationException.java 100% 🟢
DependencyNotResolvedException.java 100% 🟢
NoSuchBeanDefinitionException.java 100% 🟢
BeanDependencyUtils.java 100% 🟢
ResponseStatus.java 100% 🟢
ControllerMethod.java 100% 🟢
WebErrorHandlerControllerScanner.java 100% 🟢
WebContainerInitializer.java 100% 🟢
BringRequest.java 100% 🟢
GenericBeanDefinition.java 98.77% -1.23% 🟢
SimpleBeanDefinitionRegistry.java 98.54% -1.46% 🟢
RecursiveClassPathAnnotatedBeanScanner.java 98.31% -1.69% 🟢
WebPathValidator.java 97.89% -2.11% 🟢
BeanDefinitionReaderUtils.java 97.75% -2.25% 🟢
BringHttpEntity.java 96.88% -3.13% 🟢
HttpRequestMapper.java 96.85% -3.15% 🟢
DispatcherValidationUtils.java 95.24% -4.76% 🟢
BringResponse.java 94.95% -5.05% 🟢
ReflectionUtils.java 93.54% -6.46% 🟢
WebPathScanner.java 93.5% -6.5% 🟢
BringContainer.java 86.96% -13.04% 🟢
RequestMethod.java 86.21% -13.79% 🟢
PropertiesConfiguration.java 85.5% -14.5% 🟢
TomcatServer.java 84.38% -15.63% 🟢
DispatcherServlet.java 83.91% -16.09% 🟢
LoggerFactory.java 82.35% -17.65% 🟢
Banner.java 80% -20% 🟢
InstanceCreationException.java 55.56% -44.44% 🔴
DuplicateErrorHandlerException.java 50% -50% 🔴
LoadingPropertiesFailedException.java 0% 🔴

@JoshukLite JoshukLite merged commit 261add6 into master Dec 2, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants