@Test(expected = KitAvailabilityException.class) public void unavailabilityMessage() { AnyoneKitPermissions anyoneKitPermissions = new AnyoneKitPermissions(); anyoneKitPermissions.unavailabilityMessage(mock(KitChallenger.class)); }
@Override public Message unavailabilityMessage(KitChallenger challenger) { throw new KitAvailabilityException("This kit is available to anyone"); }
AnyoneKitPermissions extends KitPermissions { @Override public Message unavailabilityMessage(KitChallenger challenger) { throw new KitAvailabilityException("This kit is available to anyone"); } }
AnyoneKitPermissions extends KitPermissions { @Override public Message unavailabilityMessage(KitChallenger challenger) { throw new KitAvailabilityException("This kit is available to anyone"); }  }
AnyoneKitPermissions extends KitPermissions { @Override public Message unavailabilityMessage(KitChallenger challenger) { throw new KitAvailabilityException("This kit is available to anyone"); }  @Override boolean isAvailableTo(KitChallenger challenger); @Override Message unavailabilityMessage(KitChallenger challenger); }
AnyoneKitPermissions extends KitPermissions { @Override public Message unavailabilityMessage(KitChallenger challenger) { throw new KitAvailabilityException("This kit is available to anyone"); }  @Override boolean isAvailableTo(KitChallenger challenger); @Override Message unavailabilityMessage(KitChallenger challenger);  }