public static Introspector respectingCase(Class< ? > target) { return new Introspector(target, new NaturalComparator()); }
public static Introspector ignoringCase(Class< ? > target) { return new Introspector(target, new IgnoringCaseComparator()); }
private static Class< ? > getClass(String typename) throws ClassNotFoundException { return ClassUtils.loadClass("info.novatec.testit.livingdoc.fixture.interpreter.CollectionResolutionFixture$" + NameUtils.toClassName(typename)); }
@Override public Report openReport(String name) { Factory<Report> factory = new Factory<Report>(reportClass); return factory.newInstance(name); }
/** * We load the interpreter selector by a class name, to be able to use third * party interpreter selectors. */ @SuppressWarnings("unchecked") private Class< ? extends InterpreterSelector> loadInterpreterSelectorClass() throws ClassNotFoundException { return ( Class< ? extends InterpreterSelector> ) ClassUtils.loadClass(classLoader, interpreterSelectorClass); }
/** * Instantiate the document repository from a string, to be able to use * third party repositories. */ private DocumentRepository instantiateDocumentRepository() { DocumentRepository documentRepository = ClassUtils.createInstanceFromClassNameWithArguments(classLoader, documentRepositoryClass, DocumentRepository.class); return documentRepository; }
@Override public String toString() { return hasChild() ? firstChild().toMarkup(false) : ""; } }
@Override public String toString() { return ExceptionUtils.stackTrace(error, "\n", 10); } }
public static String toMarkup(Example example, boolean prettyPrint) { return toMarkup(example, prettyPrint, new MarkupPrinter.Default()); }
public static String toMarkup(Example example, boolean prettyPrint) { return toMarkup(example, prettyPrint, new MarkupPrinter.Default()); }
public static String toMarkup(Example example, boolean prettyPrint) { return toMarkup(example, prettyPrint, new MarkupPrinter.Default()); }
public static RuntimeException imposterize(Throwable t) { if (t instanceof RuntimeException) { return ( RuntimeException ) t; } return new ExceptionImposter(t); }
/** * Thread safe way to access the {@link AliasLoader} singleton instance. * * @return a thread safe singleton instance of the {@link AliasLoader}. */ public static synchronized AliasLoader get() { if (AliasLoader.instance == null) { AliasLoader.instance = new AliasLoader(); } return AliasLoader.instance; }
private static Class< ? > getClass(String typename) throws ClassNotFoundException { return ClassUtils.loadClass("info.novatec.testit.livingdoc.fixture.converter.TypeConversionFixture$" + NameUtils .toClassName(typename)); }
@Override public Report openReport(String name) { Factory<Report> factory = new Factory<Report>(reportClass); return factory.newInstance(name); }