@Test public void testMessageCantBeNull() { ErrorType stubError = new ErrorType(); try { new PartnerApiErrorImpl(stubError); } catch (NullPointerException e) { assertEquals("message cannot be null", e.getMessage()); } }
@Override public String getMessage() { return this.message; }
PartnerApiErrorImpl implements PartnerApiError { @Override public String getMessage() { return this.message; } }
PartnerApiErrorImpl implements PartnerApiError { @Override public String getMessage() { return this.message; } PartnerApiErrorImpl(ErrorType stubError); }
PartnerApiErrorImpl implements PartnerApiError { @Override public String getMessage() { return this.message; } PartnerApiErrorImpl(ErrorType stubError); @Override StatusCodeType getStatusCode(); @Override String getMessage(); @Override List<String> getFields(); @Override String toString(); }
PartnerApiErrorImpl implements PartnerApiError { @Override public String getMessage() { return this.message; } PartnerApiErrorImpl(ErrorType stubError); @Override StatusCodeType getStatusCode(); @Override String getMessage(); @Override List<String> getFields(); @Override String toString();  }