Total number of changed sets: 1
Total commits: 4
Total number of files changed: 4
Timestamp | Author | Details |
---|---|---|
2023-12-03 20:57:26 | Jegors Čemisovs <jegors_cemisovs@epam.com> | epam-ai-dial/epam-ai-legal-age/src/test/groovy/epam/legalage/LegalAgePredicateSpec.groovy v ec0a974ee3eef20b00d77aea533b29350988c418 Revamp FlipFlopPredicate and adjust test files Refactored FlipFlopPredicate class for clarity and efficiency. Introduced NPE checks for input predicates. Renamed variables for better understanding of their purposes. Streamlined test method in FlipFlopPredicateAiSpec. Minor text adjustment in LegalAgePredicateSpec. The changes are made to improve readability, maintainability and to ensure safety from NullPointerExceptions by requiring non-null values for input predicates. |
2023-12-03 20:10:59 | Jegors Čemisovs <jegors_cemisovs@epam.com> | epam-ai-dial/epam-ai-legal-age/src/test/groovy/epam/legalage/LegalAgePredicateSpec.groovy v ea4316eff58f044ab258e698f0a282ba2e571811 Update FlipFlopPredicate and LegalAgePredicate Extended FlipFlopPredicate tests and functionality to meet the modified specification where it returns true while the state has been changed from active to inactive on the input satisfying the end condition. Added tests and implementation for LegalAgePredicate which determines if a person of a given birthdate has reached legal age. Implementation and tests are provided with two Predicate constructors allowing to use different Clock for date mocking in tests. Added a detailed dialogue transcript explaining the reason behind all decisions and clarifications asked during the task implementation. |
2023-12-03 18:38:16 | Jegors Čemisovs <jegors_cemisovs@epam.com> | epam-ai-dial/epam-ai-legal-age/src/test/groovy/epam/legalage/LegalAgePredicateSpec.groovy v 2cba7964441969e0704d72dedd9a0d0f3c43bd45 epam-ai-dial/epam-ai-legal-age/src/test/java/epam/legalage/LegalAgePredicateAiTest.java v 2cba7964441969e0704d72dedd9a0d0f3c43bd45 Updated legal age test cases & added Spock dependency Added JUnit5 and Spock Framework dependencies in pom.xml to facilitate additional testing scenarios. Created a new Groovy file, LegalAgePredicateSpec.groovy, for testing with Spock Framework which allows more comprehensive testing scenarios in a clear, readable form. |
2023-12-03 17:56:16 | Jegors Čemisovs <jegors_cemisovs@epam.com> | epam-ai-dial/epam-ai-legal-age/pom.xml v 62155f6a55fc3dbc565ad15ac0fb671bec24085b epam-ai-dial/epam-ai-legal-age/src/main/java/epam/legalage/LegalAgePredicate.java v 62155f6a55fc3dbc565ad15ac0fb671bec24085b epam-ai-dial/epam-ai-legal-age/src/test/java/epam/legalage/LegalAgePredicateAiTest.java v 62155f6a55fc3dbc565ad15ac0fb671bec24085b New module epam-ai-legal-age has been added to the project. This module introduced a LegalAgePredicate class for checking whether a user is over 18 years old based on their date of birth. This logic is tested in LegalAgePredicateAiTest. These changes are essential for ensuring the software does not provide services to underage users, complying with international laws regarding the provision of certain digital services. Furthermore, the parent pom.xml and epam-ai-dial/pom.xml were updated to include new dependencies and modules required for these changes. |