IMonitorFactory


public interface IMonitorFactory

androidx.test.jank.IMonitorFactory


An interface used to define a class that constructs IMonitors for test methods. Implementing classes must have a public constructor that takes an ERROR(/Instrumentation) instance as the sole argument.

Summary

Public methods

abstract List<IMonitor> getMonitors(Method method, Object test)

Returns a list of IMonitors that should be used to monitor the given test method.

Public methods

getMonitors

public abstract List<IMonitor> getMonitors (Method method, 
                Object test)

Returns a list of IMonitors that should be used to monitor the given test method.

Parameters
method Method: The test method to monitor.

test Object: An instance of the class to which method belongs.

Returns
List<IMonitor> A list of IMonitors that should be used to monitor the given test method.