@Test void testGetMessage() { Package aPackage = mock(Package.class); when(aPackage.getId()).thenReturn("test"); GroupPackageDowngradeException ex = new GroupPackageDowngradeException(aPackage); assertEquals("id:test", ex.getMessage()); }
@Override public String getMessage() { return format("id:%s", aPackage.getId()); }
GroupPackageDowngradeException extends CodedRuntimeException { @Override public String getMessage() { return format("id:%s", aPackage.getId()); } }
GroupPackageDowngradeException extends CodedRuntimeException { @Override public String getMessage() { return format("id:%s", aPackage.getId()); } GroupPackageDowngradeException(Package aPackage); }
GroupPackageDowngradeException extends CodedRuntimeException { @Override public String getMessage() { return format("id:%s", aPackage.getId()); } GroupPackageDowngradeException(Package aPackage); @Override String getMessage(); }
GroupPackageDowngradeException extends CodedRuntimeException { @Override public String getMessage() { return format("id:%s", aPackage.getId()); } GroupPackageDowngradeException(Package aPackage); @Override String getMessage();  }