builder.observer(NamespaceTestObserver.class);
}
public static class NamespaceTestObserver {
public void execute(@Observes EventContext<Test> context) {
Test event = context.getEvent();
Method testMethod = event.getTestMethod();
WithinNamespace ns = testMethod.getAnnotation(WithinNamespace.class);
if (ns == null) {
ns = event.getTestClass().getAnnotation(WithinNamespace.class);
if (ns == null) {
Class<?> testClass = event.getTestClass().getJavaClass();
ns = testClass.getPackage().getAnnotation(WithinNamespace.class);
}
}
if (ns != null) {