Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 701 Bytes

README.md

File metadata and controls

38 lines (30 loc) · 701 Bytes

utils.junit

JUnit helpers and extensions

Setup

JAVA 11
<dependency>
    <groupId>com.zandero</groupId>
    <artifactId>utils.junit</artifactId>
    <version>1.1</version>
    <scope>test</scope>
</dependency>

JAVA8
<dependency>      
     <groupId>com.zandero</groupId>      
     <artifactId>utils.junit</artifactId>      
     <version>1.0.1</version>
     <scope>test</scope>      
</dependency>

Usage

Make sure final classes are well-defined

  • checks class is final
  • checks class has only one private constructor
  • checks methods are static
    @Test
    public void checkDefinition() {
        AssertFinalClass.isWellDefined(FinalClass.class);
    }