test_class.declarator: a = new Field("a", StandardSpecificFieldType.DATETIME.toSpecificFieldType(), false ,"", false, false, null)
test_class.modifier: private final
test_class.original_string: private final Field a = new Field("a", StandardSpecificFieldType.DATETIME.toSpecificFieldType(), false ,"", false, false, null);
test_class.type: Field
test_class.var_name: a
test_class.declarator: b = new Field("b", StandardSpecificFieldType.DATETIME.toSpecificFieldType(), false, "", false, false, null)
test_class.modifier: private final
test_class.original_string: private final Field b = new Field("b", StandardSpecificFieldType.DATETIME.toSpecificFieldType(), false, "", false, false, null);
test_class.type: Field
test_class.var_name: b
test_class.declarator: equalToDateRelations = new EqualToRelation(a, b)
test_class.modifier: private final
test_class.original_string: private final FieldSpecRelation equalToDateRelations = new EqualToRelation(a, b);
test_class.type: FieldSpecRelation
test_class.var_name: equalToDateRelations
test_class.file: core/src/test/java/com/scottlogic/datahelix/generator/core/fieldspecs/relations/EqualToRelationTest.java
test_class.identifier: EqualToRelationTest
test_case.body: @Test
      public void testReduceToFieldSpec_withNotNull_reducesToSpec() {
          OffsetDateTime value = OffsetDateTime.of(2000,
              1,
              1,
              0,
              0,
              0,
              0,
              ZoneOffset.UTC);
          DataBagValue generatedValue = new DataBagValue(value);
  
          FieldSpec result = equalToDateRelations.createModifierFromOtherValue(generatedValue);
  
          FieldSpec expected = FieldSpecFactory.fromList(DistributedList.singleton(value));
          assertThat(result, sameBeanAs(expected));
      }
test_case.class_method_signature: EqualToRelationTest.testReduceToFieldSpec_withNotNull_reducesToSpec()
test_case.full_signature: @Test public void testReduceToFieldSpec_withNotNull_reducesToSpec()
test_case.identifier: testReduceToFieldSpec_withNotNull_reducesToSpec
test_case.invocations: of createModifierFromOtherValue fromList singleton assertThat sameBeanAs
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReduceToFieldSpec_withNotNull_reducesToSpec()
focal_class.declarator: main
focal_class.modifier: private final
focal_class.original_string: private final Field main;
focal_class.type: Field
focal_class.var_name: main
focal_class.declarator: other
focal_class.modifier: private final
focal_class.original_string: private final Field other;
focal_class.type: Field
focal_class.var_name: other
focal_class.file: core/src/main/java/com/scottlogic/datahelix/generator/core/fieldspecs/relations/EqualToRelation.java
focal_class.identifier: EqualToRelation
focal_class.interfaces: implements FieldSpecRelation
focal_class.class_method_signature: EqualToRelation.EqualToRelation(Field main, Field other)
focal_class.full_signature: public  EqualToRelation(Field main, Field other)
focal_class.identifier: EqualToRelation
focal_class.modifiers: public
focal_class.parameters: (Field main, Field other)
focal_class.signature:  EqualToRelation(Field main, Field other)
focal_class.class_method_signature: EqualToRelation.createModifierFromOtherFieldSpec(FieldSpec otherFieldSpec)
focal_class.full_signature: @Override public FieldSpec createModifierFromOtherFieldSpec(FieldSpec otherFieldSpec)
focal_class.identifier: createModifierFromOtherFieldSpec
focal_class.modifiers: @Override public
focal_class.parameters: (FieldSpec otherFieldSpec)
focal_class.return: FieldSpec
focal_class.signature: FieldSpec createModifierFromOtherFieldSpec(FieldSpec otherFieldSpec)
focal_class.class_method_signature: EqualToRelation.createModifierFromOtherValue(DataBagValue otherFieldGeneratedValue)
focal_class.full_signature: @Override public FieldSpec createModifierFromOtherValue(DataBagValue otherFieldGeneratedValue)
focal_class.identifier: createModifierFromOtherValue
focal_class.modifiers: @Override public
focal_class.parameters: (DataBagValue otherFieldGeneratedValue)
focal_class.return: FieldSpec
focal_class.signature: FieldSpec createModifierFromOtherValue(DataBagValue otherFieldGeneratedValue)
focal_class.class_method_signature: EqualToRelation.inverse()
focal_class.full_signature: @Override public FieldSpecRelation inverse()
focal_class.identifier: inverse
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: FieldSpecRelation
focal_class.signature: FieldSpecRelation inverse()
focal_class.class_method_signature: EqualToRelation.main()
focal_class.full_signature: @Override public Field main()
focal_class.identifier: main
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Field
focal_class.signature: Field main()
focal_class.class_method_signature: EqualToRelation.other()
focal_class.full_signature: @Override public Field other()
focal_class.identifier: other
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Field
focal_class.signature: Field other()
focal_class.class_method_signature: EqualToRelation.negate()
focal_class.full_signature: @Override public Constraint negate()
focal_class.identifier: negate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Constraint
focal_class.signature: Constraint negate()
focal_method.body: @Override
      public FieldSpec createModifierFromOtherValue(DataBagValue otherFieldGeneratedValue) {
          if (otherFieldGeneratedValue.getValue() == null){
              return FieldSpecFactory.nullOnly();
          }
          return FieldSpecFactory.fromList(DistributedList.singleton(otherFieldGeneratedValue.getValue()));
      }
focal_method.class_method_signature: EqualToRelation.createModifierFromOtherValue(DataBagValue otherFieldGeneratedValue)
focal_method.full_signature: @Override public FieldSpec createModifierFromOtherValue(DataBagValue otherFieldGeneratedValue)
focal_method.identifier: createModifierFromOtherValue
focal_method.invocations: getValue nullOnly fromList singleton getValue
focal_method.modifiers: @Override public
focal_method.parameters: (DataBagValue otherFieldGeneratedValue)
focal_method.return: FieldSpec
focal_method.signature: FieldSpec createModifierFromOtherValue(DataBagValue otherFieldGeneratedValue)