-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/main/java/nl/hsac/fitnesse/HsacPluginFeatureFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package nl.hsac.fitnesse; | ||
|
||
import fitnesse.plugins.PluginException; | ||
import fitnesse.plugins.PluginFeatureFactoryBase; | ||
import fitnesse.testsystems.slim.tables.SlimTable; | ||
import fitnesse.testsystems.slim.tables.SlimTableFactory; | ||
import fitnesse.wikitext.parser.SymbolProvider; | ||
import fitnesse.wikitext.parser.SymbolType; | ||
import nl.hsac.fitnesse.slim.AutoArgScenarioTable; | ||
import nl.hsac.fitnesse.slim.StoryboardTable; | ||
import nl.hsac.fitnesse.symbols.MonthsFromToday; | ||
import nl.hsac.fitnesse.symbols.RandomBsn; | ||
import nl.hsac.fitnesse.symbols.RandomInt; | ||
import nl.hsac.fitnesse.symbols.RandomString; | ||
import nl.hsac.fitnesse.symbols.WeekDaysFromToday; | ||
|
||
public class HsacPluginFeatureFactory extends PluginFeatureFactoryBase { | ||
@Override | ||
public void registerSlimTables(SlimTableFactory slimTableFactory) throws PluginException { | ||
super.registerSlimTables(slimTableFactory); | ||
add(slimTableFactory, "table template", AutoArgScenarioTable.class); | ||
add(slimTableFactory, "storyboard", StoryboardTable.class); | ||
} | ||
|
||
private void add(SlimTableFactory factory, String prefix, Class<? extends SlimTable> tableType) { | ||
factory.addTableType(prefix, tableType); | ||
LOG.info("Added Slim table type: " + prefix + ": " + tableType.getName()); | ||
} | ||
|
||
@Override | ||
public void registerSymbolTypes(SymbolProvider symbolProvider) throws PluginException { | ||
super.registerSymbolTypes(symbolProvider); | ||
add(symbolProvider, new MonthsFromToday()); | ||
add(symbolProvider, new WeekDaysFromToday()); | ||
add(symbolProvider, new RandomInt()); | ||
add(symbolProvider, new RandomString()); | ||
add(symbolProvider, new RandomBsn()); | ||
} | ||
|
||
private void add(SymbolProvider provider, SymbolType symbolType) { | ||
provider.add(symbolType); | ||
LOG.info("Added symbol " + symbolType.getClass()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
src/main/java/nl/hsac/fitnesse/slim/StoryboardAutoArgScenarioTable.java
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
src/main/resources/META-INF/services/fitnesse.plugins.PluginFeatureFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nl.hsac.fitnesse.HsacPluginFeatureFactory |