blob: 6d8f98698c11139ceda3b7266c578f6ac4194a53 [file] [log] [blame]
package org.robolectric.internal.bytecode.testing;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.internal.Instrument;
@Instrument
public class Pony {
public Pony() {
}
public Pony(String abc) {
System.out.println("abc = " + abc);
}
public String ride(String where) {
return "Whinny! You're on my " + where + "!";
}
public static String prance(String where) {
return "I'm prancing to " + where + "!";
}
public String saunter(String where) {
return "Off I saunter to " + where + "!";
}
@Implements(Pony.class)
public static class ShadowPony {
@Implementation
public String ride(String where) {
return "Fake whinny! You're on my " + where + "!";
}
@Implementation
public static String prance(String where) {
return "I'm shadily prancing to " + where + "!";
}
}
}