@Test public void testAcceptMessage( ) { assertTrue( translator.accept( originalMessage ) ); assertFalse( translator.accept( new ValidationMessage( ) ) ); }
@Override public boolean accept( ValidationMessage checkMessage ) { return checkMessage instanceof PersistenceDescriptorValidationMessage; }
PersistenceDescriptorValidationMessageTranslator implements ValidationMessageTranslator { @Override public boolean accept( ValidationMessage checkMessage ) { return checkMessage instanceof PersistenceDescriptorValidationMessage; } }
PersistenceDescriptorValidationMessageTranslator implements ValidationMessageTranslator { @Override public boolean accept( ValidationMessage checkMessage ) { return checkMessage instanceof PersistenceDescriptorValidationMessage; } @Inject  PersistenceDescriptorValidationMessageTranslator( TranslationService translationService ); }
PersistenceDescriptorValidationMessageTranslator implements ValidationMessageTranslator { @Override public boolean accept( ValidationMessage checkMessage ) { return checkMessage instanceof PersistenceDescriptorValidationMessage; } @Inject  PersistenceDescriptorValidationMessageTranslator( TranslationService translationService ); @Override boolean accept( ValidationMessage checkMessage ); @Override ValidationMessage translate( ValidationMessage checkMessage ); }
PersistenceDescriptorValidationMessageTranslator implements ValidationMessageTranslator { @Override public boolean accept( ValidationMessage checkMessage ) { return checkMessage instanceof PersistenceDescriptorValidationMessage; } @Inject  PersistenceDescriptorValidationMessageTranslator( TranslationService translationService ); @Override boolean accept( ValidationMessage checkMessage ); @Override ValidationMessage translate( ValidationMessage checkMessage ); static final String PREFIX; }