@Test public void setValue() { TestPlanDefinition planDefinition = new TestPlanDefinition(); ValueTypeExtensionUtils.setValue( planDefinition, ValueType.INTEGER_POSITIVE, TypeFactory::createType ); Assert.assertEquals( 1, planDefinition.getExtension().size() ); Assert.assertEquals( ValueTypeExtensionUtils.URL, planDefinition.getExtension().get( 0 ).getUrl() ); Assert.assertEquals( "INTEGER_POSITIVE", planDefinition.getExtension().get( 0 ).getValue().toString() ); }
public static void setValue( @Nonnull IBaseHasExtensions resource, @Nonnull ValueType valueType, @Nonnull Function<String, IElement> typeFactory ) { BaseExtensionUtils.setStringValue( URL, resource, valueType.name(), typeFactory ); }
ValueTypeExtensionUtils { public static void setValue( @Nonnull IBaseHasExtensions resource, @Nonnull ValueType valueType, @Nonnull Function<String, IElement> typeFactory ) { BaseExtensionUtils.setStringValue( URL, resource, valueType.name(), typeFactory ); } }
ValueTypeExtensionUtils { public static void setValue( @Nonnull IBaseHasExtensions resource, @Nonnull ValueType valueType, @Nonnull Function<String, IElement> typeFactory ) { BaseExtensionUtils.setStringValue( URL, resource, valueType.name(), typeFactory ); } private  ValueTypeExtensionUtils(); }
ValueTypeExtensionUtils { public static void setValue( @Nonnull IBaseHasExtensions resource, @Nonnull ValueType valueType, @Nonnull Function<String, IElement> typeFactory ) { BaseExtensionUtils.setStringValue( URL, resource, valueType.name(), typeFactory ); } private  ValueTypeExtensionUtils(); static void setValue( @Nonnull IBaseHasExtensions resource, @Nonnull ValueType valueType, @Nonnull Function<String, IElement> typeFactory ); }
ValueTypeExtensionUtils { public static void setValue( @Nonnull IBaseHasExtensions resource, @Nonnull ValueType valueType, @Nonnull Function<String, IElement> typeFactory ) { BaseExtensionUtils.setStringValue( URL, resource, valueType.name(), typeFactory ); } private  ValueTypeExtensionUtils(); static void setValue( @Nonnull IBaseHasExtensions resource, @Nonnull ValueType valueType, @Nonnull Function<String, IElement> typeFactory ); static final String URL; }