@Test(expected = IllegalArgumentException.class) public void testCreateSimpleFieldCharacter() { new FieldImplFactory().createSimpleField("test", DataType.CHARACTER); }
public Field createSimpleField(final String name, final DataType type) { if (DataType.CHARACTER.equals(type)) throw new IllegalArgumentException("Use createCharacterField(String, int) to create character fields."); return new PrimitiveFieldImpl(name, type); }
FieldImplFactory { public Field createSimpleField(final String name, final DataType type) { if (DataType.CHARACTER.equals(type)) throw new IllegalArgumentException("Use createCharacterField(String, int) to create character fields."); return new PrimitiveFieldImpl(name, type); } }
FieldImplFactory { public Field createSimpleField(final String name, final DataType type) { if (DataType.CHARACTER.equals(type)) throw new IllegalArgumentException("Use createCharacterField(String, int) to create character fields."); return new PrimitiveFieldImpl(name, type); }  }
FieldImplFactory { public Field createSimpleField(final String name, final DataType type) { if (DataType.CHARACTER.equals(type)) throw new IllegalArgumentException("Use createCharacterField(String, int) to create character fields."); return new PrimitiveFieldImpl(name, type); }  Field createCharacterField(final String name, final int characterLength); Field createSimpleField(final String name, final DataType type); Field createRecordField(final String name, final Structure structure); Field createListField(final String name, final Structure structure, final int size); Field createDynamicListField(final String name, final Structure structure); }
FieldImplFactory { public Field createSimpleField(final String name, final DataType type) { if (DataType.CHARACTER.equals(type)) throw new IllegalArgumentException("Use createCharacterField(String, int) to create character fields."); return new PrimitiveFieldImpl(name, type); }  Field createCharacterField(final String name, final int characterLength); Field createSimpleField(final String name, final DataType type); Field createRecordField(final String name, final Structure structure); Field createListField(final String name, final Structure structure, final int size); Field createDynamicListField(final String name, final Structure structure);  }