Interface MockTransformer

All Known Implementing Classes:
AbstractMainMockTransformer, ClassMockTransformer, InterfaceMockTransformer, TestClassTransformer

public interface MockTransformer
Interface that all mock transformers must implement. The purpose of a mock transformer is to create a modified version of a Class so that it is mock enabled.
  • Method Summary

    Modifier and Type
    Method
    Description
    javassist.CtClass
    transform(javassist.CtClass clazz)
    Transforms the clazz.
  • Method Details

    • transform

      javassist.CtClass transform(javassist.CtClass clazz) throws Exception
      Transforms the clazz.
      Parameters:
      clazz - The class to be transform into a mock enabled class.
      Returns:
      A CtClass representation of the mocked class.
      Throws:
      Exception