Top Description Constructors Methods
org.opentest4j.reporting.events.git

public Class GitFactory

extends Object
Class Inheritance
Annotations
@API
status:EXPERIMENTAL
since:0.2.0
Imports
org.apiguardian.api.API, org.opentest4j.reporting.events.api.Factory

Factory for elements of the Git namespace.
Since
0.2.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Factory<Branch>

Returns:

Branch factory
branch
(String
the branch name
name
)

Create a factory for Branch elements.

public static Factory<Commit>

Returns:

Commit factory
commit
(String
the commit hash
hash
)

Create a factory for Commit elements.

public static Factory<Repository>

Returns:

Repository factory
repository
()

Create a factory for Repository elements.

public static Factory<Status>

Returns:

Status factory
status
(String
the status output of Git
output
)

Create a factory for Status elements.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GitFactoryback to summary
private GitFactory()

Method Detail

branchback to summary
public static Factory<Branch> branch(String name)

Create a factory for Branch elements.

Parameters
name:String

the branch name

Returns:Factory<Branch>

Branch factory

commitback to summary
public static Factory<Commit> commit(String hash)

Create a factory for Commit elements.

Parameters
hash:String

the commit hash

Returns:Factory<Commit>

Commit factory

repositoryback to summary
public static Factory<Repository> repository()

Create a factory for Repository elements.

Returns:Factory<Repository>

Repository factory

statusback to summary
public static Factory<Status> status(String output)

Create a factory for Status elements.

Parameters
output:String

the status output of Git

Returns:Factory<Status>

Status factory