All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockito.plugins.package-info Maven / Gradle / Ivy

There is a newer version: 5.12.0
Show newest version
/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */

/**
 * Mockito plugins allow customization of behavior.
 * For example, it is useful for Android integration via dexmaker.
 * See examples in docs for MockMaker.
 *
 * 

* The plugin mechanism of mockito works in a similar way as the {@link java.util.ServiceLoader}, however instead of * looking in the META-INF directory, Mockito will look in mockito-extensions directory. * The reason for that is that Android SDK strips jars from the META-INF directory when creating an APK. *

* *

* For example : *

* *
    *
  1. * Create implementation itself, for example org.awesome.mockito.AwesomeMockMaker that extends * the MockMaker. *
  2. *
  3. * A file "mockito-extensions/org.mockito.plugins.MockMaker". The content of this file is exactly * a one line with the qualified name: org.awesome.mockito.AwesomeMockMaker. *
  4. *
* *

* Note that if several mockito-extensions/org.mockito.plugins.MockMaker files exists in the classpath * Mockito will only use the first returned by the standard ClassLoader.getResource mechanism. *

*/ package org.mockito.plugins;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy