@Test(expected = RuntimeException.class) public void testBadValues() { validator.getFilterValue(NetworkFilter.ATTACHMENT_STATUS, WRONG_VALUE); }
@Override @NotNull public String getFilterValue(@NotNull final String filterName, @NotNull final String filterValue) { switch (filterName) { case ATTACHMENT_STATUS: { return NetworkInterfaceAttachmentStatus.getValue(filterValue); } case STATUS: { return NetworkInterfaceStatus.getValue(filterValue); } default: { return filterValue; } } }
NetworkFilterValidator implements FilterValidator { @Override @NotNull public String getFilterValue(@NotNull final String filterName, @NotNull final String filterValue) { switch (filterName) { case ATTACHMENT_STATUS: { return NetworkInterfaceAttachmentStatus.getValue(filterValue); } case STATUS: { return NetworkInterfaceStatus.getValue(filterValue); } default: { return filterValue; } } } }
NetworkFilterValidator implements FilterValidator { @Override @NotNull public String getFilterValue(@NotNull final String filterName, @NotNull final String filterValue) { switch (filterName) { case ATTACHMENT_STATUS: { return NetworkInterfaceAttachmentStatus.getValue(filterValue); } case STATUS: { return NetworkInterfaceStatus.getValue(filterValue); } default: { return filterValue; } } }  }
NetworkFilterValidator implements FilterValidator { @Override @NotNull public String getFilterValue(@NotNull final String filterName, @NotNull final String filterValue) { switch (filterName) { case ATTACHMENT_STATUS: { return NetworkInterfaceAttachmentStatus.getValue(filterValue); } case STATUS: { return NetworkInterfaceStatus.getValue(filterValue); } default: { return filterValue; } } }  @Override @NotNull String getFilterValue(@NotNull final String filterName, @NotNull final String filterValue); }
NetworkFilterValidator implements FilterValidator { @Override @NotNull public String getFilterValue(@NotNull final String filterName, @NotNull final String filterValue) { switch (filterName) { case ATTACHMENT_STATUS: { return NetworkInterfaceAttachmentStatus.getValue(filterValue); } case STATUS: { return NetworkInterfaceStatus.getValue(filterValue); } default: { return filterValue; } } }  @Override @NotNull String getFilterValue(@NotNull final String filterName, @NotNull final String filterValue);  }