Griffon 1.2.0

org.codehaus.griffon.cli.shell.command
[Java] Class CreateUnitTestCommand

java.lang.Object
  org.codehaus.griffon.cli.shell.AbstractGriffonCommand
      org.codehaus.griffon.cli.shell.command.CreateUnitTestCommand

@Command(scope = "griffon",
        name = "create-unit-test",
        description = "Creates a new Griffon unit test. A unit test requires that you mock out access to dynamic methods, but executes a lot quicker")
public class CreateUnitTestCommand
extends AbstractGriffonCommand

Authors:
Andres Almiray
Since:
0.9.5


Field Summary
private String archetype

private String fileType

private String name

private boolean skipPackagePrompt

 
Fields inherited from class AbstractGriffonCommand
env, nonInteractive
 
Constructor Summary
CreateUnitTestCommand()

 

Field Detail

archetype

@Option(name = "--archetype",
            description = "Archetype to be searched for templates.",
            required = false)
private String archetype


fileType

@Option(name = "--file-type",
            description = "Source file type",
            required = false)
private String fileType


name

@Argument(index = 0,
            name = "name",
            description = "The name of the test to be created.",
            required = false)
private String name


skipPackagePrompt

@Option(name = "--skip-package-prompt",
            description = "Skips the usage of the application's default package if the name of the class is not fully qualified.",
            required = false)
private boolean skipPackagePrompt


 
Constructor Detail

CreateUnitTestCommand

CreateUnitTestCommand()


 

Groovy Documentation