java-junit
Comprehensive guide and best practices for writing unit tests in Java using JUnit 5, Mockito, and AssertJ.
Install
npx skills add https://github.com/github/awesome-copilot --skill java-junitStats
| Total installs | 7,985 |
| Weekly installs | 8.0K |
| GitHub stars | 27.4K |
| First seen | Feb 25, 2026 |
| Source | @github/awesome-copilot |
Summary
- Covers test structure using Arrange-Act-Assert pattern, lifecycle annotations (@BeforeEach, @AfterEach, @BeforeAll, @AfterAll), and naming conventions with @DisplayName
- Parameterized testing via @ParameterizedTest with multiple sources: @ValueSource, @MethodSource, @CsvSource, @CsvFileSource, and @EnumSource
- Assertion strategies including static Assertions methods, AssertJ fluent syntax, exception testing with assertThrows, and grouped assertions via assertAll
- Test organization with packages, @Tag for categorization, @Nested for grouping, and Mockito integration for dependency isolation
Tags
Related skills
| Skill | Installs | vs java-junit |
|---|---|---|
| e2e-testing-patterns | 8,871 | +886 |
| oh-my-codex | 9,994 | +2,009 |
| pytest-coverage | 7,693 | -292 |
| csharp-xunit | 7,611 | -374 |
| ohmg | 10,391 | +2,406 |
FAQ
- How many installs does java-junit have?
- java-junit has 7,985 total installs and 8.0K installs this week.
- Where is java-junit hosted?
- java-junit is published by @github/awesome-copilot at https://github.com/github/awesome-copilot.
- How many GitHub stars does java-junit have?
- java-junit has 27.4K GitHub stars.
- When was java-junit first indexed?
- OrangeBot.AI first indexed java-junit on Feb 25, 2026.
- How do I install java-junit?
- Run: npx skills add https://github.com/github/awesome-copilot --skill java-junit