package sft.integration.use; import org.junit.runner.RunWith; import sft.Decorate; import sft.SimpleFunctionalTest; import sft.decorators.Breadcrumb; import sft.decorators.Group; /* <div> <div style="align:center"> <a href="#" onclick="$(cheatsheet).toggle(); return false;"> <caption>Cheat sheet</caption> </a></div> <table id="cheatsheet" class="table" style="display:none"> <tr> <th>Java/JUnit item</th> <th>Functional test item</th> <th>HTML item</th> <tr/> <tr> <td><a href="CommonUsage.html">Test Class</a></td> <td>Use case</td> <td>HTML page</td> <tr/> <tr> <td><a href="CommonUsage.html">Test method</a></td> <td>Scenario</td> <td>HTML paragraph with background color depending of test issue</td> <tr/> <tr> <td><a href="CommonUsage.html">Other methods</a></td> <td>Fixture</td> <td>HTML line</td> <tr/> <tr> <td><a href="LinksUseCasesTogether.html">Public field</a></td> <td>Related subUseCase</td> <td>HTML link</td> <tr/> <tr> <td><a href="CommentUsage.html">Multi-lines comment beforeUseCase class declaration</a></td> <td>Use case documentation</td> <td>HTML div afterUseCase use case name and beforeUseCase scenarios</td> <tr/> <tr> <td><a href="CommentUsage.html">Multi-lines comment beforeUseCase test method declaration</a></td> <td>Scenario documentation</td> <td>HTML div afterUseCase scenario name and beforeUseCase instructions</td> <tr/> <tr> <td><a href="HumanizationCodeUsage.html">@Text annotation on class or method</a></td> <td>Force a specific use case, scenario or fixture name</td> <td>text</td> <tr/> <tr> <td><a href="DefiningTestContextForAnUseCase.html">@BeforeClass annotated public static method</a></td> <td>Starting context of use case</td> <td>HTML paragraph beforeUseCase first scenario paragraph</td> <tr/> <tr> <td><a href="DefiningTestContextForAnUseCase.html">@AfterClass annotated public static method</a></td> <td>Handling ending context of use case</td> <td>HTML paragraph afterUseCase last scenario paragraph</td> <tr/> <tr> <td><a href="DefiningTestContextForAScenario.html">@Before annotated public method</a></td> <td>Starting context of scenario</td> <td>HTML first part of scenario paragraph</td> <tr/> <tr> <td><a href="DefiningTestContextForAScenario.html">@After annotated public method</a></td> <td>Handling ending context of scenario</td> <td>Last part of scenario HTML</td> <tr/> <tr> <td><a href="UsingParameterizedFixture.html">Other method with parameter and @Text annnotation using ${n} variables</a></td> <td>Parameterized fixture</td> <td>HTML line with all ${n} replaced by real value</td> <tr/> <tr> <td><a href="UsingFixturesHelper.html">Private or protected field with @FixturesHelper annotation</a></td> <td>Fixtures helper</td> <td>HTML line corresponding of FixturesHelper fixture name</td> <tr/> <tr> <td><a href="DisplayingTestContext.html">Private or protected field with @Displayable annotation</a></td> <td>Show test context</td> <td>Ending the scenario description</td> <tr/> </table> </div> */ @RunWith(SimpleFunctionalTest.class) @Decorate(decorator = Breadcrumb.class) public class Usages { private static final String BASIC = "Basic"; @Decorate(decorator = Group.class,parameters = BASIC) public CommonUsage commonUsage = new CommonUsage(); @Decorate(decorator = Group.class,parameters = BASIC) public HumanizationCodeUsage humanizationCodeUsage = new HumanizationCodeUsage(); @Decorate(decorator = Group.class,parameters = BASIC) public CommentUsage commentUsage = new CommentUsage(); private static final String INTERMEDIATE = "Intermediate"; @Decorate(decorator = Group.class,parameters = INTERMEDIATE) public LinksUseCasesTogether linksUseCase = new LinksUseCasesTogether(); @Decorate(decorator = Group.class,parameters = INTERMEDIATE) public UsingParameterizedFixture usingParameterizedFixture = new UsingParameterizedFixture(); @Decorate(decorator = Group.class,parameters = INTERMEDIATE) public UsingDecorator usingDecorator = new UsingDecorator(); private static final String ADVANCED = "Advanced"; @Decorate(decorator = Group.class,parameters = ADVANCED) public UsingFixturesHelper usingFixtureHelper = new UsingFixturesHelper(); @Decorate(decorator = Group.class,parameters = ADVANCED) public DefiningTestContextForAnUseCase definingTestContextForAnUseCase = new DefiningTestContextForAnUseCase(); @Decorate(decorator = Group.class,parameters = ADVANCED) public DefiningTestContextForAScenario definingTestContextForAScenario = new DefiningTestContextForAScenario(); @Decorate(decorator = Group.class,parameters = ADVANCED) public DisplayingTestContext displayingTestContext = new DisplayingTestContext(); }