Package com.unitesk.aspectrace.sampleApp
Class TestProcessor
- java.lang.Object
-
- com.unitesk.aspectrace.sampleApp.TestProcessor
-
- All Implemented Interfaces:
AspectListener
,ContextProvider<HtmlReportPage>
,ReferenceResolver<HtmlReportPage>
,ConfigurableGenerator
,TestListener
public class TestProcessor extends java.lang.Object implements TestListener, ReferenceResolver<HtmlReportPage>, ContextProvider<HtmlReportPage>, ConfigurableGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TestProcessor.TestPage
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<TestProcessor.TestPage>
allPages
protected TestProcessor.TestPage
curPage
-
Constructor Summary
Constructors Constructor Description TestProcessor()
TestProcessor(java.util.Properties config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachedToAdapter(java.lang.String aspect, AspectAdapter adapter)
Notifies the listener about it's connection to adapter.void
configure(java.util.Properties config)
ReportPage[]
getPages()
HtmlReportPage[]
getRelated(java.lang.String channel, HtmlReportPage target)
Получить контекстную информацию для элемента отчёта, соответствующего текущему (по порядку разбора трассы) событию.void
processTagChange(TagMessage msg)
Changes set of tags for this aspect.void
processTestEnd(java.lang.String testName, boolean verdict)
void
processTestStart(java.lang.String testName)
HtmlReportPage
resolve(java.lang.String channel, java.lang.String ref)
Разрешить текстовую ссылку.
-
-
-
Field Detail
-
curPage
protected TestProcessor.TestPage curPage
-
allPages
protected java.util.Set<TestProcessor.TestPage> allPages
-
-
Method Detail
-
configure
public void configure(java.util.Properties config)
- Specified by:
configure
in interfaceConfigurableGenerator
-
getPages
public ReportPage[] getPages()
- Specified by:
getPages
in interfaceConfigurableGenerator
-
attachedToAdapter
public void attachedToAdapter(java.lang.String aspect, AspectAdapter adapter)
Description copied from interface:AspectListener
Notifies the listener about it's connection to adapter.- Specified by:
attachedToAdapter
in interfaceAspectListener
- Parameters:
aspect
- Related aspectadapter
- Connected adapter
-
processTestStart
public void processTestStart(java.lang.String testName)
- Specified by:
processTestStart
in interfaceTestListener
-
processTestEnd
public void processTestEnd(java.lang.String testName, boolean verdict)
- Specified by:
processTestEnd
in interfaceTestListener
-
processTagChange
public void processTagChange(TagMessage msg)
Description copied from interface:AspectListener
Changes set of tags for this aspect.- Specified by:
processTagChange
in interfaceAspectListener
-
getRelated
public HtmlReportPage[] getRelated(java.lang.String channel, HtmlReportPage target)
Description copied from interface:ContextProvider
Получить контекстную информацию для элемента отчёта, соответствующего текущему (по порядку разбора трассы) событию.- Specified by:
getRelated
in interfaceContextProvider<HtmlReportPage>
target
- Элемент отчёта, для которого запрашивается контекст.- Returns:
- Элементы отчёта, входящие в текущее окружение. Если подходящего контекста нет - возвращается null или пустой массив.
-
resolve
public HtmlReportPage resolve(java.lang.String channel, java.lang.String ref)
Description copied from interface:ReferenceResolver
Разрешить текстовую ссылку. Возможно отображение ссылок в 0 или 1 объектов отчёта.- Specified by:
resolve
in interfaceReferenceResolver<HtmlReportPage>
- Parameters:
channel
- Привязка к каналу (null
, если канал неважен)ref
- Текстовая ссылка.- Returns:
null
или ссылка.
-
-