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

Write ArchUnit rule to prevent Stream from being used as a field in a class #203

Open
tedyoung opened this issue Feb 14, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@tedyoung
Copy link
Collaborator

I call this rule "Field of Streams". For now, finding a field in a class (or Record!) that is of type Stream (any generic type) should be a test failure. This might need to be relaxed in the future, but for now it's a failure.

This is unrelated to Hexagonal Architecture, so should be in a new test class in the main package, i.e., package com.jitterted.mobreg; and be tagged with @Tag("architecture"), because ArchUnit tests are a bit slow, so only want to run on GitHub.

@tedyoung tedyoung added help wanted Extra attention is needed good first issue Good for newcomers labels Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant