Class DefaultMartiniStandaloneEngine
- java.lang.Object
-
- guru.qas.martini.standalone.harness.DefaultMartiniStandaloneEngine
-
- All Implemented Interfaces:
MartiniStandaloneEngine,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Configurable public class DefaultMartiniStandaloneEngine extends java.lang.Object implements MartiniStandaloneEngine, org.springframework.context.ApplicationContextAware
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContextapplicationContextprotected guru.qas.martini.runtime.event.EventManagereventManagerprotected java.util.concurrent.ForkJoinPoolforkJoinPoolprotected java.util.Comparator<guru.qas.martini.Martini>gatedComparatorprotected org.slf4j.Loggerloggerprotected guru.qas.martini.Mixologistmixologistprotected Optionsoptionsprotected guru.qas.martini.event.SuiteIdentifiersuiteIdentifierprotected TaskFactorytaskFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertImplementation(java.util.Collection<guru.qas.martini.Martini> martinis)protected voidassertMartinisFound(java.lang.String filter, java.util.Collection<guru.qas.martini.Martini> martinis)voidexecuteSuite()protected voidexecuteWithTimeLimit(java.lang.Runnable runnable, long timeoutInMinutes)protected guru.qas.martini.MartiniExceptiongetMartiniException(java.lang.InterruptedException cause)protected guru.qas.martini.MartiniExceptiongetMartiniException(java.util.concurrent.TimeoutException cause)protected java.util.Iterator<java.util.Optional<guru.qas.martini.Martini>>getMartiniIterator(java.util.Collection<guru.qas.martini.Martini> martinis)protected java.util.Collection<guru.qas.martini.Martini>getMartinis()protected java.lang.RunnablegetRunnable(java.util.Collection<guru.qas.martini.Martini> martinis)protected booleanisUnimplemented(guru.qas.martini.Martini martini)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)protected voidsleep()
-
-
-
Field Detail
-
options
protected final Options options
-
mixologist
protected final guru.qas.martini.Mixologist mixologist
-
suiteIdentifier
protected final guru.qas.martini.event.SuiteIdentifier suiteIdentifier
-
gatedComparator
protected final java.util.Comparator<guru.qas.martini.Martini> gatedComparator
-
taskFactory
protected final TaskFactory taskFactory
-
eventManager
protected final guru.qas.martini.runtime.event.EventManager eventManager
-
forkJoinPool
protected final java.util.concurrent.ForkJoinPool forkJoinPool
-
logger
protected final org.slf4j.Logger logger
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext)- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
executeSuite
public void executeSuite()
- Specified by:
executeSuitein interfaceMartiniStandaloneEngine
-
executeWithTimeLimit
protected void executeWithTimeLimit(java.lang.Runnable runnable, long timeoutInMinutes)
-
getMartinis
protected java.util.Collection<guru.qas.martini.Martini> getMartinis()
-
assertMartinisFound
protected void assertMartinisFound(java.lang.String filter, java.util.Collection<guru.qas.martini.Martini> martinis)
-
assertImplementation
protected void assertImplementation(java.util.Collection<guru.qas.martini.Martini> martinis)
-
isUnimplemented
protected boolean isUnimplemented(guru.qas.martini.Martini martini)
-
getRunnable
protected java.lang.Runnable getRunnable(java.util.Collection<guru.qas.martini.Martini> martinis)
-
getMartiniIterator
protected java.util.Iterator<java.util.Optional<guru.qas.martini.Martini>> getMartiniIterator(java.util.Collection<guru.qas.martini.Martini> martinis)
-
sleep
protected void sleep()
-
getMartiniException
protected guru.qas.martini.MartiniException getMartiniException(java.lang.InterruptedException cause)
-
getMartiniException
protected guru.qas.martini.MartiniException getMartiniException(java.util.concurrent.TimeoutException cause)
-
-