ImmutableValueAttribute extends Attribute<T,A> { @Override public boolean internal_required() { return !nullable; } ImmutableValueAttribute(); @Override boolean internal_mergeMatch(AttributeMatch<T> value); @Override T get(); @Override void set(T value); @Override void internal_copyTo(AttributeCopy<T> copyAttribute, Function<FactoryBase<?,?>,FactoryBase<?,?>> newCopyInstanceProvider, int level, int maxLevel, List<FactoryBase<?, ?>> oldData, FactoryBase<?, ?> parent, FactoryBase<?, ?> root); @JsonIgnore @Override String getDisplayText(); @Override boolean internal_required(); @SuppressWarnings("unchecked") A nullable(); @Override @SuppressWarnings("unchecked") List<ValidationError> internal_validate(FactoryBase<?,?> parent, String attributeVariableName); @SuppressWarnings("unchecked") A defaultValue(T defaultValue); @Override void internal_reset(); @Override void internal_addBackReferences(FactoryBase<?, ?> root, FactoryBase<?, ?> parent); Optional<T> getNullable();  }
@Test public void test_internal_require_true(){ IntegerAttribute attribute = new IntegerAttribute(); Assertions.assertTrue(attribute.internal_required()); }