Skip to content

zandero/utils.junit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
    }