GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codehaus-plexus/plexus-testing: Library to help testing plexus components

BranchesTags
Open more actions menu

Latest commit

 

History

159 Commits
159 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Plexus Testing

Maven Central GitHub CI Reproducible Builds

A JUnit 5 extension for testing JSR-330 components. Annotate a test class with @PlexusTest and your @Inject fields are populated from a container built for that test.

Status

Maintained. Small and stable — it exists so the other projects here can test their components without each inventing the same fixture.

Using it

<dependency>
  <groupId>org.codehaus.plexus</groupId>
  <artifactId>plexus-testing</artifactId>
  <scope>test</scope>
</dependency>

Check the badge above for the current version.

@PlexusTest
class MyComponentTest {

    @Inject
    MyComponent component;

    @Test
    void itWorks() {
        assertNotNull( component );
    }
}

A test class can customise the container by implementing PlexusTestConfiguration; every method has a default, so implement only the ones you need. The project site shows the full examples, compiled from this repository's own tests.

Requirements

Java 8 or later, and JUnit 5.

Documentation

  • Project site
  • Javadoc
  • Release notes

Contributing

See CONTRIBUTING.md. In short: mvn verify builds, and run mvn spotless:apply before pushing or CI will fail on formatting.

Please report security vulnerabilities privately — see SECURITY.md, not a public issue.

About

Library to help testing plexus components

codehaus-plexus.github.io/plexus-testing/

Topics

hacktoberfest

Resources

Readme
Apache-2.0 license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

2 stars

Watchers

9 watching

Forks

2 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.