@Override public String formatValueSynchron(final String pvalue) { return IsbnUtil.isbnFormat(pvalue); }
/** * test formating isbn. */ @Test public void testIsbnFormat() { Assert.assertNull("isbn format should be null", IsbnUtil.isbnFormat(null)); for (final Entry<String, String> entry : IsbnUtilTestCases.getIsbnFormatCases().entrySet()) { Assert.assertEquals("isbn format failed", entry.getKey(), IsbnUtil.isbnFormat(entry.getValue())); } }
/** * test formating isbn. */ @Test public void testIsbnFormat() { Assert.assertNull("isbn format should be null", IsbnUtil.isbnFormat(null)); for (final Entry<String, String> entry : IsbnUtilTestCases.getIsbnFormatCases().entrySet()) { Assert.assertEquals("isbn format failed", entry.getKey(), IsbnUtil.isbnFormat(entry.getValue())); } }