Package org.junithelper.runtime.jmock2.util

Source Code of org.junithelper.runtime.jmock2.util.JMock2Util

package org.junithelper.runtime.jmock2.util;

import org.jmock.Mockery;
import org.jmock.lib.legacy.ClassImposteriser;

public final class JMock2Util {

  private JMock2Util() {
  }

  /**
   * Get a new {@link Mockery} instance.
   *
   * @return a new {@link Mockery} instance
   */
  public static Mockery getNewInstance() {
    return new Mockery() {
      {
        setImposteriser(ClassImposteriser.INSTANCE);
      }
    };
  }

}
TOP

Related Classes of org.junithelper.runtime.jmock2.util.JMock2Util

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.