Consider the following JUnit 4 test code: @RunWith(Theories….

Consider the following JUnit 4 test code: @RunWith(Theories.class)public class TheoryTest {        @DataPoints    public static double[] nums = {1.0, 2.0, 3.0};        @Theory    public void squares(double num1, double num2) {     }} How many times is the @Theory (squares) method executed?

Consider the following code. class Apple { // rep-inv: name…

Consider the following code. class Apple { // rep-inv: name != null private String name; public Apple (String name) { if (name == null) throw new NPE(…); this.name = name; } @Override public boolean equals (Object o) { if (!(o instanceof Apple)) { return false; } Apple a = (Apple) o; return name.equals(a.name); } @Override public int hashCode() { … } @Override public String toString() { return name; } } class AppleTracker extends Apple { private static Set inventory = new HashSet (); public AppleTracker (String name) { super(name); inventory.add(name);} public static Set getInventory() { return Collections.unmodifiableSet(inventory);} } // client code Apple a = new Apple(“Winesap”); AppleTracker at1 = new AppleTracker(“Winesap”); AppleTracker at2 = new AppleTracker(“Fuji”); Is the below true or false?at1.equals(a) and a.equals(at2) are both true, but at1.equals(at2) is false.