private SqlScriptProvider<ApplyScriptBefore> createProviderForScriptsToBeAppliedBeforeTest(TestClass testClass)
{
return SqlScriptProvider.forAnnotation(ApplyScriptBefore.class)
.usingConfiguration(configurationInstance.get())
.extractingMetadataUsing(new MetadataExtractor(testClass))
.namingFollows(new PrefixedScriptFileNamingStrategy("before-", "sql"))
.build(new ValueExtractor<ApplyScriptBefore>()
{
@Override
public String[] extract(ApplyScriptBefore toExtract)
{