test_class.declarator: ATTRIBUTE_ID = "attr"
test_class.modifier: private final
test_class.original_string: private final String ATTRIBUTE_ID = "attr";
test_class.type: String
test_class.var_name: ATTRIBUTE_ID
test_class.declarator: attributesMock
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Attributes attributesMock;
test_class.type: Attributes
test_class.var_name: attributesMock
test_class.declarator: attributeMock
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Attribute attributeMock;
test_class.type: Attribute
test_class.var_name: attributeMock
test_class.declarator: enumerationMock
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private NamingEnumeration enumerationMock;
test_class.type: NamingEnumeration
test_class.var_name: enumerationMock
test_class.declarator: baseAttributeMapper
test_class.modifier: private
test_class.original_string: private BaseAttributeMapper<String> baseAttributeMapper;
test_class.type: BaseAttributeMapper<String>
test_class.var_name: baseAttributeMapper
test_class.file: backend/project-board/src/test/java/de/adesso/projectboard/ad/service/mapper/BaseAttributeMapperTest.java
test_class.identifier: BaseAttributeMapperTest
test_case.body: @Test
      public void getAttrByIdReturnsPopulatedOptionalWhenAttrPresent() {
          // given
          given(attributesMock.get(ATTRIBUTE_ID)).willReturn(attributeMock);
  
          // when
          var actualAttrOptional = baseAttributeMapper.getAttributeById(attributesMock, ATTRIBUTE_ID);
  
          // then
          assertThat(actualAttrOptional)
                  .isPresent()
                  .contains(attributeMock);
      }
test_case.class_method_signature: BaseAttributeMapperTest.getAttrByIdReturnsPopulatedOptionalWhenAttrPresent()
test_case.full_signature: @Test public void getAttrByIdReturnsPopulatedOptionalWhenAttrPresent()
test_case.identifier: getAttrByIdReturnsPopulatedOptionalWhenAttrPresent
test_case.invocations: willReturn given get getAttributeById contains isPresent assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getAttrByIdReturnsPopulatedOptionalWhenAttrPresent()
focal_class.file: backend/project-board/src/main/java/de/adesso/projectboard/ad/service/mapper/BaseAttributeMapper.java
focal_class.identifier: BaseAttributeMapper
focal_class.interfaces: implements AttributesMapper<T>
focal_class.class_method_signature: BaseAttributeMapper.getSingleAttributeValue(Attributes attributes, String attributeId, Class<S> typeClass)
focal_class.full_signature: protected S getSingleAttributeValue(Attributes attributes, String attributeId, Class<S> typeClass)
focal_class.identifier: getSingleAttributeValue
focal_class.modifiers: protected
focal_class.parameters: (Attributes attributes, String attributeId, Class<S> typeClass)
focal_class.return: S
focal_class.signature: S getSingleAttributeValue(Attributes attributes, String attributeId, Class<S> typeClass)
focal_class.class_method_signature: BaseAttributeMapper.getAllAttributeValues(Attributes attributes, String attributeId, Class<S> typeClass)
focal_class.full_signature: protected List<S> getAllAttributeValues(Attributes attributes, String attributeId, Class<S> typeClass)
focal_class.identifier: getAllAttributeValues
focal_class.modifiers: protected
focal_class.parameters: (Attributes attributes, String attributeId, Class<S> typeClass)
focal_class.return: List<S>
focal_class.signature: List<S> getAllAttributeValues(Attributes attributes, String attributeId, Class<S> typeClass)
focal_class.class_method_signature: BaseAttributeMapper.getAttributeById(Attributes attributes, String attributeId)
focal_class.full_signature: protected Optional<Attribute> getAttributeById(Attributes attributes, String attributeId)
focal_class.identifier: getAttributeById
focal_class.modifiers: protected
focal_class.parameters: (Attributes attributes, String attributeId)
focal_class.return: Optional<Attribute>
focal_class.signature: Optional<Attribute> getAttributeById(Attributes attributes, String attributeId)
focal_class.class_method_signature: BaseAttributeMapper.castAttributeValues(Attribute attribute, Class<S> typeClass)
focal_class.full_signature: protected List<S> castAttributeValues(Attribute attribute, Class<S> typeClass)
focal_class.identifier: castAttributeValues
focal_class.modifiers: protected
focal_class.parameters: (Attribute attribute, Class<S> typeClass)
focal_class.return: List<S>
focal_class.signature: List<S> castAttributeValues(Attribute attribute, Class<S> typeClass)
focal_method.body: protected Optional<Attribute> getAttributeById(Attributes attributes, String attributeId) {
          requireNonNull(attributeId);
          requireNonNull(attributes);
  
          return Optional.ofNullable(attributes.get(attributeId));
      }
focal_method.class_method_signature: BaseAttributeMapper.getAttributeById(Attributes attributes, String attributeId)
focal_method.full_signature: protected Optional<Attribute> getAttributeById(Attributes attributes, String attributeId)
focal_method.identifier: getAttributeById
focal_method.invocations: requireNonNull requireNonNull ofNullable get
focal_method.modifiers: protected
focal_method.parameters: (Attributes attributes, String attributeId)
focal_method.return: Optional<Attribute>
focal_method.signature: Optional<Attribute> getAttributeById(Attributes attributes, String attributeId)