DefaultArgumentConverter implements ArgumentConverter { @Override public boolean isConvertible(ParameterType type) { return getConverter(type) != null; } DefaultArgumentConverter(); @Override boolean isConvertible(ParameterType type); @Override String convertToString(ParameterType parameterType, Object object); @Override Object convertFromString(ParameterType parameterType, String str);  }
@Test public void unknownType() { assertFalse(_converter.isConvertible(ParameterType.ofType(FunctionMetadata.class))); }
@Test public void cannotConvertRawList() { TypeToken<List> typeToken = new TypeToken<List>() { }; ParameterType parameterType = ParameterType.ofType(typeToken.getType()); assertFalse(_converter.isConvertible(parameterType)); }
@Test public void cannotConvertListOfUnknownType() { TypeToken<List<FunctionMetadata>> typeToken = new TypeToken<List<FunctionMetadata>>() { }; ParameterType parameterType = ParameterType.ofType(typeToken.getType()); assertFalse(_converter.isConvertible(parameterType)); }