Skip to content
/ Tarjun Public

Mock-framework for unit-testing written in Java as an uni NSU team project

Notifications You must be signed in to change notification settings

sescer/Tarjun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drawing

Tarjun

Mock-framework for Java

Features

  • Mock and spy objects with annotations
  • Stubbing
  • Argument matcher
  • thenThrow method
  • Call Real Methods

Tools

Usage

Mock creation

  • with mock() method:
Test test = Tarjun.mock(Test.class);
  • with @Mock annotation:
@Mock
Test test;

Spy creation

  • with spy() method:
List<String> testList = new ArrayList<>();
List<String> testListSpied = Tarjun.spy(testList)
  • with @Spy annotation:
@Spy
List<String> testListSpied = new ArrayList<>();

About

Mock-framework for unit-testing written in Java as an uni NSU team project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages