ReferenceBaseAttribute extends Attribute<U,A> implements FactoryChildrenEnclosingAttribute { @SuppressWarnings("unchecked") public AttributeMetadata internal_getMetadata(){ return FactoryMetadataManager.getMetadata(parent.getClass()).getAttributeMetadata(parent,this); } ReferenceBaseAttribute(); @SuppressWarnings("unchecked") A possibleValueProvider(Function<FactoryBase<?,?>,Collection<F>> provider); Collection<F> internal_possibleValues(AttributeMetadata attributeMetadata); @Override void internal_addBackReferences( FactoryBase<?,?> root, FactoryBase<?,?> parent); @SuppressWarnings("unchecked") @Deprecated A newValuesProvider(Function<FactoryBase<?,?>,List<F>> newValuesProvider); @SuppressWarnings("unchecked") A newValuesProvider(BiFunction<FactoryBase<?,?>,A,List<F>> newValuesProviderFromRootAndAttribute); @SuppressWarnings("unchecked") A additionalDeleteAction(BiConsumer<F,FactoryBase<?,?>> additionalDeleteAction); @SuppressWarnings("unchecked") A userNotSelectable(); @JsonIgnore boolean internal_isUserSelectable(); @SuppressWarnings("unchecked") A userNotCreatable(); @JsonIgnore boolean internal_isUserCreatable(); @SuppressWarnings("unchecked") A catalogueBased(); @JsonIgnore boolean internal_isCatalogueBased(); @SuppressWarnings("unchecked") List<F> internal_createNewPossibleValues(AttributeMetadata attributeMetadata); @Override void internal_reset(); @SuppressWarnings("unchecked") AttributeMetadata internal_getMetadata();  }
@Test public void test_internal_getMetadata(){ ExampleDataA exampleFactoryA = new ExampleDataA(); exampleFactoryA.referenceListAttribute.add(new ExampleDataB()); exampleFactoryA.internal().finalise(); Assertions.assertEquals(exampleFactoryA.referenceListAttribute.internal_getMetadata().referenceClass,ExampleDataB.class); }