This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Emacs < Formula | |
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.bz2' | |
md5 'f2cf8dc6f28f8ae59bc695b4ddda339c' | |
homepage 'http://www.gnu.org/software/emacs/' | |
if ARGV.include? "--use-git-head" | |
head 'git://repo.or.cz/emacs.git' | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Nullery { | |
private static MockObjectNamingScheme namingScheme = new CamelCaseNamingScheme(); | |
private static Imposteriser imposteriser = ClassImposteriser.INSTANCE; | |
public static <T> T nulled(Class<T> typeToNull) { | |
return nulled(typeToNull, namingScheme.defaultNameFor(typeToNull)); | |
} | |
public static <T> T nulled(Class<T> typeToMock, final String name) { |