Skip to content

Reimplemented dependency tests using ArchUnit. #1107

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

Closed
wants to merge 2 commits into from

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Dec 3, 2021

Moved RelationalAuditingCallback and JdbcArrayColumns to remove dependency cycle.

Closes #1058

Moved RelationalAuditingCallback and JdbcArrayColumns to remove dependency cycle.

Closes #1058
@schauder schauder requested a review from gregturn December 3, 2021 14:08
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>0.22.0</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you prefer keeping all the versions as property settings at the top?

void acrossModules() {

JavaClasses importedClasses = new ClassFileImporter().withImportOption(ImportOption.Predefined.DO_NOT_INCLUDE_TESTS)
.importPackages( //
Copy link
Contributor

Choose a reason for hiding this comment

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

Make this consistent with the previous test.

return new DescribedPredicate<>("Spring Data Classes") {
@Override
public boolean apply(JavaClass input) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need the blank line if there is only one line in the method?

void acrossModules() {

JavaClasses importedClasses = new ClassFileImporter().withImportOption(ImportOption.Predefined.DO_NOT_INCLUDE_TESTS)
.importPackages( //
Copy link
Contributor

Choose a reason for hiding this comment

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

Consistent format.

return new DescribedPredicate<>("Spring Data Classes") {
@Override
public boolean apply(JavaClass input) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Consistent line breaks.

schauder added a commit that referenced this pull request Dec 8, 2021
Moved RelationalAuditingCallback and JdbcArrayColumns to remove dependency cycle.

Closes #1058
Original pull request #1107
schauder added a commit that referenced this pull request Dec 8, 2021
Setting Log level to WARN/INFO for relational.

See #1058
Original pull request #1107
@schauder
Copy link
Contributor Author

schauder commented Dec 8, 2021

Thanks for the review.
I made the requested changes and merged the PR.

@schauder schauder closed this Dec 8, 2021
@schauder schauder deleted the issue/1058-archunit branch December 8, 2021 08:52
schauder added a commit that referenced this pull request Jan 3, 2022
Moved RelationalAuditingCallback and JdbcArrayColumns to remove dependency cycle.

Closes #1058
Original pull request #1107
schauder added a commit that referenced this pull request Jan 3, 2022
Setting Log level to WARN/INFO for relational.

See #1058
Original pull request #1107
schauder added a commit that referenced this pull request Jan 13, 2022
Moved RelationalAuditingCallback and JdbcArrayColumns to remove dependency cycle.

Closes #1058
Original pull request #1107
schauder added a commit that referenced this pull request Jan 13, 2022
Setting Log level to WARN/INFO for relational.

See #1058
Original pull request #1107
schauder added a commit that referenced this pull request Jan 14, 2022
Moved RelationalAuditingCallback and JdbcArrayColumns to remove dependency cycle.

Closes #1058
Original pull request #1107
schauder added a commit that referenced this pull request Jan 14, 2022
Setting Log level to WARN/INFO for relational.

See #1058
Original pull request #1107
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.

2 participants