Home
last modified time | relevance | path

Searched refs:listenerInstance (Results 1 – 3 of 3) sorted by relevance

/external/testng/src/main/java/org/testng/internal/invokers/
DInvokedMethodListenerSubtype.java26 private boolean isInstance(IInvokedMethodListener listenerInstance) { in isInstance() argument
27 return m_matchingInterface.isInstance(listenerInstance); in isInstance()
30 public static InvokedMethodListenerSubtype fromListener(IInvokedMethodListener listenerInstance) { in fromListener() argument
31 if (EXTENDED_LISTENER.isInstance(listenerInstance)) { in fromListener()
34 else if (SIMPLE_LISTENER.isInstance(listenerInstance)) { in fromListener()
38 + " instance: " + listenerInstance.getClass().getName() + "."); in fromListener()
DInvokedMethodListenerInvoker.java59 public void invokeListener(IInvokedMethodListener listenerInstance, in invokeListener() argument
61 final InvocationStrategy strategy = obtainStrategyFor(listenerInstance, m_listenerMethod); in invokeListener()
62 strategy.callMethod(listenerInstance, invokedMethod, m_testResult, m_testContext); in invokeListener()
65 private InvocationStrategy obtainStrategyFor(IInvokedMethodListener listenerInstance, in obtainStrategyFor() argument
68 .fromListener(listenerInstance); in obtainStrategyFor()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DListenerCallQueueTest.java42 Object listenerInstance = new Object(); in testAddAndExecute() local
44 new ListenerCallQueue<Object>(listenerInstance, directExecutor()); in testAddAndExecute()
57 Object listenerInstance = new Object(); in testAddAndExecute_withExceptions() local
59 new ListenerCallQueue<Object>(listenerInstance, directExecutor()); in testAddAndExecute_withExceptions()