Class AbstractTestingFacet
- java.lang.Object
-
- org.jboss.forge.addon.facets.AbstractFacet<org.jboss.forge.addon.projects.Project>
-
- org.jboss.forge.addon.projects.facets.AbstractProjectFacet
-
- org.jboss.forge.addon.testing.facet.AbstractTestingFacet
-
- All Implemented Interfaces:
org.jboss.forge.addon.facets.Facet<org.jboss.forge.addon.projects.Project>,org.jboss.forge.addon.facets.MutableFacet<org.jboss.forge.addon.projects.Project>,org.jboss.forge.addon.projects.ProjectFacet,TestingFacet
- Direct Known Subclasses:
JUnitTestingFacet,TestNGTestingFacet
public abstract class AbstractTestingFacet extends org.jboss.forge.addon.projects.facets.AbstractProjectFacet implements TestingFacet
Provides operations that are common for all the testing frameworks supported by this addon.- Author:
- Ivan St. Ivanov
-
-
Constructor Summary
Constructors Constructor Description AbstractTestingFacet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.jboss.forge.addon.dependencies.builder.DependencyBuilderbuildFrameworkDependency()List<String>getAvailableVersions()Returns a list of the versions of the selected testing frameworks, that are available in the central repository.List<org.jboss.forge.addon.dependencies.Dependency>getFrameworkDependencies()Returns a list of all the selected testing framework dependencies.booleaninstall()booleanisInstalled()voidsetFrameworkVersion(String version)Sets the version of the testing framework.-
Methods inherited from class org.jboss.forge.addon.facets.AbstractFacet
equals, getFaceted, hashCode, setFaceted, uninstall
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.forge.addon.testing.facet.TestingFacet
getFrameworkName
-
-
-
-
Method Detail
-
setFrameworkVersion
public void setFrameworkVersion(String version)
Description copied from interface:TestingFacetSets the version of the testing framework. Make sure to call this method prior to installing this facet.- Specified by:
setFrameworkVersionin interfaceTestingFacet
-
install
public boolean install()
- Specified by:
installin interfaceorg.jboss.forge.addon.facets.Facet<org.jboss.forge.addon.projects.Project>
-
isInstalled
public boolean isInstalled()
- Specified by:
isInstalledin interfaceorg.jboss.forge.addon.facets.Facet<org.jboss.forge.addon.projects.Project>
-
getFrameworkDependencies
public List<org.jboss.forge.addon.dependencies.Dependency> getFrameworkDependencies()
Description copied from interface:TestingFacetReturns a list of all the selected testing framework dependencies.- Specified by:
getFrameworkDependenciesin interfaceTestingFacet
-
getAvailableVersions
public List<String> getAvailableVersions()
Description copied from interface:TestingFacetReturns a list of the versions of the selected testing frameworks, that are available in the central repository.- Specified by:
getAvailableVersionsin interfaceTestingFacet
-
buildFrameworkDependency
protected abstract org.jboss.forge.addon.dependencies.builder.DependencyBuilder buildFrameworkDependency()
-
-