generic formatter registry

This commit is contained in:
Keith Donald
2008-03-26 03:49:12 +00:00
parent b1b7de9a30
commit e4145e0c97
3 changed files with 4 additions and 4 deletions

View File

@@ -7,11 +7,11 @@ import junit.framework.TestCase;
import org.springframework.binding.format.Formatter;
import org.springframework.binding.format.InvalidFormatException;
import org.springframework.binding.format.formatters.NumberFormatter;
import org.springframework.binding.format.registry.FormatterRegistryImpl;
import org.springframework.binding.format.registry.GenericFormatterRegistry;
public class FormatterRegistryImplTests extends TestCase {
FormatterRegistryImpl registry = new FormatterRegistryImpl();
GenericFormatterRegistry registry = new GenericFormatterRegistry();
public void testRegisterAndGetFormatter() {
registry.registerFormatter(Integer.class, new NumberFormatter(Integer.class));