@Test public void convertToSyntaxObjectWhenUnknownSyntax() throws Exception { try { this.mocker.getComponentUnderTest().convert(Syntax.class, "invalid"); Assert.fail("Should have thrown ConversionException"); } catch (ConversionException expected) { Assert.assertEquals("Unknown syntax [invalid]", expected.getMessage()); } }
@Override public Object convert(Type targetType, Object sourceValue) { return this.converter.convert(targetType, sourceValue); }
DeprecatedSyntaxConverter extends AbstractConverter { @Override public Object convert(Type targetType, Object sourceValue) { return this.converter.convert(targetType, sourceValue); } }
DeprecatedSyntaxConverter extends AbstractConverter { @Override public Object convert(Type targetType, Object sourceValue) { return this.converter.convert(targetType, sourceValue); }  }
DeprecatedSyntaxConverter extends AbstractConverter { @Override public Object convert(Type targetType, Object sourceValue) { return this.converter.convert(targetType, sourceValue); }  @Override Object convert(Type targetType, Object sourceValue); }
DeprecatedSyntaxConverter extends AbstractConverter { @Override public Object convert(Type targetType, Object sourceValue) { return this.converter.convert(targetType, sourceValue); }  @Override Object convert(Type targetType, Object sourceValue);  }