Class UiRoute
java.lang.Object
com.vaadin.copilot.plugins.testgeneration.model.UiRoute
Represents a component that it's a view in the app
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeTestName(File testsDir, TestFramework testFramework) Works out where the generated test goes and what it is called, from the view and the module's test folder.getFile()getHtml()getRoute()The class name without its package.voidsetBaseUrl(String baseUrl) voidsetClassName(String className) voidSet the file name of view, but at the same time compute the framework and the route, like in file-based routing.voidsetFramework(String framework) voidsetGherkin(String gherkin) voidvoidsetLayoutClass(String layoutClass) voidsetProjectRoot(String projectRoot) voidvoidsetRouteExpression(String routeExpression) voidvoidsetTagName(String tagName) voidsetTestClass(String testClass) voidsetTestfile(String testfile) voidsetTestScenarios(TestScenarios testScenarios) toString()
-
Constructor Details
-
UiRoute
public UiRoute()
-
-
Method Details
-
getProjectRoot
-
setProjectRoot
-
getClassName
-
getTagName
-
setClassName
-
setTagName
-
getSimpleName
The class name without its package.- Returns:
- the simple class name
-
getLayoutClass
-
getRoute
-
getRouteExpression
-
setRoute
-
getBaseUrl
-
setBaseUrl
-
setRouteExpression
-
setLayoutClass
-
getSource
-
setSource
-
getHtml
-
setHtml
-
getGherkin
-
setGherkin
-
getTestScenarios
-
setTestScenarios
-
getFile
-
setFile
Set the file name of view, but at the same time compute the framework and the route, like in file-based routing.- Parameters:
file- : file name of the view
-
getFramework
-
computeTestName
Works out where the generated test goes and what it is called, from the view and the module's test folder.- Parameters:
testsDir- the module's Java test foldertestFramework- the test framework to generate for, ornullto use the view framework's default
-
setFramework
-
getTestfile
-
setTestfile
-
getTestsDir
-
getTestClass
-
setTestClass
-
toString
-