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

com.greenpepper.spy.FixtureDescription Maven / Gradle / Ivy

The newest version!
package com.greenpepper.spy;

import java.util.Collection;

/**
 * This interface provides access to the datas that were guessed when we spied on the Specification.
 */
public interface FixtureDescription extends SpyDescription {

    /**
     * The different types of fixtures.
     * 
    *
  • COLLECTION_PROVIDER: used with list of, set of, subset of, superset of
  • *
  • SETUP: used with Setup
  • *
  • WORKFLOW: used with do with, Scenario
  • *
*/ enum FixtureType { COLLECTION_PROVIDER, SETUP, WORKFLOW } /** * @return The list of all methods detected. */ Collection getMethods(); /** * @return The list of all constructors guessed. */ Collection getConstructors(); /** * @return the list of all properties. */ Collection getProperties(); /** * @return the type of the fixture. */ FixtureType getType(); /** * @return the POJO returned by a COLLECTION_PROVIDER typed fixture. */ PojoDescription getPojo(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy