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

Feature/configuration file #679

Merged
merged 7 commits into from
Aug 17, 2021
Merged

Feature/configuration file #679

merged 7 commits into from
Aug 17, 2021

Conversation

l-1squared
Copy link
Collaborator

No description provided.

@l-1squared l-1squared force-pushed the feature/configuration-file branch 2 times, most recently from 6947bc7 to 62344c8 Compare July 2, 2021 14:22
assertThat(underTest.textReport()).isFalse();
assertThat(underTest.textColorEnabled()).isEqualTo(ConfigValue.TRUE);
assertThat(underTest.filterStackTrace()).isFalse();

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unecessary emtpy line

@l-1squared l-1squared force-pushed the feature/configuration-file branch 2 times, most recently from a0bb94e to 09b4728 Compare July 20, 2021 14:27
@l-1squared l-1squared marked this pull request as ready for review July 20, 2021 14:29
@l-1squared l-1squared linked an issue Jul 20, 2021 that may be closed by this pull request
@andru47 andru47 self-requested a review August 10, 2021 08:16
@fudler fudler self-requested a review August 10, 2021 08:21
docs/report_generation.adoc Outdated Show resolved Hide resolved
docs/report_generation.adoc Outdated Show resolved Hide resolved
ninj and others added 5 commits August 10, 2021 11:20
- initial implementation

Signed-off-by: Steve Wong <swong@metahq.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
* Make value holding the properties an instance field
* Make constructor private

The above measures make the singleton class more aligned with the singleton pattern while also enable unit testing of the config class.

Due to the amount of classes in the impl package a private constructor is preferred over a package private one as the latter might be seen as an invitation to just instantiate the class, when this is clearly not desired.

Eager reading of the properties file has been deemed acceptable, because the `static` block within the class will ensure that the file is read early anyway.

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: Andru Stefanescu <als209@cam.ac.uk>
Signed-off-by: Andru Stefanescu <als209@cam.ac.uk>
@andru47 andru47 requested a review from fudler August 16, 2021 14:37
@fudler fudler merged commit 9a94853 into master Aug 17, 2021
@fudler fudler deleted the feature/configuration-file branch August 17, 2021 13:04
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.

add option to configure JGiven by a simple properties file
5 participants