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

Update Architecture Tests to catch static imports #3766

Merged
merged 2 commits into from
Feb 23, 2018

Conversation

lenhard
Copy link
Member

@lenhard lenhard commented Feb 23, 2018

Fixes a part of #2617

Updates the architecture tests to JUnit5 and also catches violations in static imports now. I tested this by adding a static import and checking that the build breaks. It does, but of course I had to remove the cause again.


  • Change in CHANGELOG.md described
  • Tests created for changes
  • Manually tested changed features in running JabRef
  • Screenshots added in PR description (for bigger UI changes)
  • Ensured that the git commit message is a good one
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)

@lenhard lenhard added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers dev: code-quality Issues related to code or architecture decisions labels Feb 23, 2018
@@ -104,8 +105,7 @@ public void firstPackageIsIndependentOfSecondPackage(String firstPackage, String
})
.collect(Collectors.toList());

Assert.assertEquals("The following classes are not allowed to depend on " + secondPackage,
Collections.emptyList(), files);
Assertions.assertEquals(Collections.emptyList(), files, "The following classes are not allowed to depend on " + secondPackage);
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer a static import of asset und

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@Siedlerchr Siedlerchr merged commit 06b6905 into master Feb 23, 2018
@tobiasdiez tobiasdiez deleted the improve-architecture-tests branch February 23, 2018 13:18
Siedlerchr added a commit that referenced this pull request Feb 24, 2018
* upstream/master: (94 commits)
  Add missing localization for Any file
  Refactor dublin core utility (#3756)
  Add Localization
  Update Architecture Tests to catch static imports (#3766)
  Added <any file type> to the Import File Filter Dialog.
  Don't trim when migrating review field (#3761)
  Reorder again
  Rename confirmation into "Merge fields"
  Fix logic
  Reorder checklist in PR template and add "good commit message"
  Replace x11 by unity7
  Include desktop, desktop-legacy, wayland in snapcraft.yaml
  Improve Dublin Core (#3710)
  Incorporate suggestions by @Siedlerchr
  Update JUnit from 5.1.0-M2 -> 5.1.0
  Update Mockito from 2.13.0 -> 2.15.0
  Update wiremock from 2.14.0 -> 2.15.0
  Fix exceptions for jacoco
  update gradle
  Add link to contribute.jabref.org (#3748)
  ...

# Conflicts:
#	src/main/java/org/jabref/gui/JabRefFrame.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev: code-quality Issues related to code or architecture decisions status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants