test_class.file: backend/project-board/src/test/java/de/adesso/projectboard/util/FieldTruncationUtilsTest.java
test_class.identifier: FieldTruncationUtilsTest
test_case.body: @Test
      public void truncatesFieldToColumnAnnotationLengthWhenStringTooLong() {
          // given
          var facilityName = "Dortmund";
          var modelName = "";
          var productionDate = LocalDate.of(2019, 4, 23);
          var car = new Car(productionDate, facilityName, modelName, null);
  
          // when
          var truncatedCar = FieldTruncationUtils.truncateStringsToColumnLengths(car);
  
          // then
          assertThat(truncatedCar).isEqualTo(car);
      }
test_case.class_method_signature: FieldTruncationUtilsTest.truncatesFieldToColumnAnnotationLengthWhenStringTooLong()
test_case.full_signature: @Test public void truncatesFieldToColumnAnnotationLengthWhenStringTooLong()
test_case.identifier: truncatesFieldToColumnAnnotationLengthWhenStringTooLong
test_case.invocations: of truncateStringsToColumnLengths isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void truncatesFieldToColumnAnnotationLengthWhenStringTooLong()
focal_class.declarator: DEFAULT_COLUMN_LENGTH = 255
focal_class.modifier: public static final
focal_class.original_string: public static final int DEFAULT_COLUMN_LENGTH = 255;
focal_class.type: int
focal_class.var_name: DEFAULT_COLUMN_LENGTH
focal_class.file: backend/project-board/src/main/java/de/adesso/projectboard/util/FieldTruncationUtils.java
focal_class.identifier: FieldTruncationUtils
focal_class.class_method_signature: FieldTruncationUtils.truncateStringsToColumnLengths(@NonNull T entity)
focal_class.full_signature: public static T truncateStringsToColumnLengths(@NonNull T entity)
focal_class.identifier: truncateStringsToColumnLengths
focal_class.modifiers: public static
focal_class.parameters: (@NonNull T entity)
focal_class.return: T
focal_class.signature: T truncateStringsToColumnLengths(@NonNull T entity)
focal_method.body: public static <T> T truncateStringsToColumnLengths(@NonNull T entity) {
          ReflectionUtils.doWithFields(entity.getClass(), new StringTruncationFieldCallback(entity), new StringFieldFilter());
          return entity;
      }
focal_method.class_method_signature: FieldTruncationUtils.truncateStringsToColumnLengths(@NonNull T entity)
focal_method.full_signature: public static T truncateStringsToColumnLengths(@NonNull T entity)
focal_method.identifier: truncateStringsToColumnLengths
focal_method.invocations: doWithFields getClass
focal_method.modifiers: public static
focal_method.parameters: (@NonNull T entity)
focal_method.return: T
focal_method.signature: T truncateStringsToColumnLengths(@NonNull T entity)