@Test void testGetMessage() { Map<String, Set<String>> entityTypeDependencyMap = ImmutableMap.of( "MyEntityType0", ImmutableSet.of("MyRefEntityType0", "MyRefEntityType1"), "MyEntityType1", ImmutableSet.of("MyRefEntityType2")); EntityTypeReferencedException ex = new EntityTypeReferencedException(entityTypeDependencyMap, mock(Throwable.class)); assertEquals( "dependencies:MyEntityType0=MyRefEntityType0,MyRefEntityType1;MyEntityType1=MyRefEntityType2", ex.getMessage()); }
@Override public String getMessage() { return "dependencies:" + entityTypeDependencyMap.entrySet().stream() .map(entry -> entry.getKey() + '=' + String.join(",", entry.getValue())) .collect(Collectors.joining(";")); }
EntityTypeReferencedException extends DataConstraintViolationException { @Override public String getMessage() { return "dependencies:" + entityTypeDependencyMap.entrySet().stream() .map(entry -> entry.getKey() + '=' + String.join(",", entry.getValue())) .collect(Collectors.joining(";")); } }
EntityTypeReferencedException extends DataConstraintViolationException { @Override public String getMessage() { return "dependencies:" + entityTypeDependencyMap.entrySet().stream() .map(entry -> entry.getKey() + '=' + String.join(",", entry.getValue())) .collect(Collectors.joining(";")); } EntityTypeReferencedException(
      Map<String, Set<String>> entityTypeDependencyMap, @Nullable @CheckForNull Throwable cause); }
EntityTypeReferencedException extends DataConstraintViolationException { @Override public String getMessage() { return "dependencies:" + entityTypeDependencyMap.entrySet().stream() .map(entry -> entry.getKey() + '=' + String.join(",", entry.getValue())) .collect(Collectors.joining(";")); } EntityTypeReferencedException(
      Map<String, Set<String>> entityTypeDependencyMap, @Nullable @CheckForNull Throwable cause); @Override String getMessage(); }
EntityTypeReferencedException extends DataConstraintViolationException { @Override public String getMessage() { return "dependencies:" + entityTypeDependencyMap.entrySet().stream() .map(entry -> entry.getKey() + '=' + String.join(",", entry.getValue())) .collect(Collectors.joining(";")); } EntityTypeReferencedException(
      Map<String, Set<String>> entityTypeDependencyMap, @Nullable @CheckForNull Throwable cause); @Override String getMessage();  }