Skip to content

olpapchenko/intellij_stub_method_argument_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intellij Idea IDE stub method argument plugin for Java

Intelij IDEA plugin for java, enables you to generate stub values of method arguments.

While writing tests, often arises the need to create object with arbitrary parameters. In this case you have to type parameter values manually.This becomes annoying if you have to create a lot of arbitrary arguments manually.

This plugin enables you to generate stub argument values for you method or constructor calls. Currently supported all primitives, List, Set, Map, String and BigDecimal. See the generated values for each supported data type below.

type value
byte 1
short 1
int 1
long 1L
float 1.0F
double 1.0
char 'c'
String "testArgumentName"
BigDecimal 1
List Collections.emptyList()
Set Collections.emptySet()
Map Collections.emptyMap()
Object null

Usage

  1. Place caret to inside the method call(between brackets)
  2. Press Alt + Enter
  3. In the intentions pop up select: "Generate stub arguments"

Demo

About

Intellij Idea IDE stub method argument plugin for Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors