Package br.com.six2six.fixturefactory.function.impl

Examples of br.com.six2six.fixturefactory.function.impl.IdentityFunction


    }
   
    @Test
    public void shouldReturnValueFromIdentityFunction() {
        String value = "some name";
        Property property = new Property("attr", new IdentityFunction(value));
        assertEquals(value, property.getValue());
    }
View Full Code Here


        assertEquals(value, property.getValue());
    }

    @Test
    public void shouldReturnNullFromIdentityFunction() {
        Property property = new Property("attr", new IdentityFunction(null));
        assertEquals(null, property.getValue());
    }
View Full Code Here

        this.properties.add(new Property(property, value));
    }

    public void add(String property, Function function) {
        if (function == null) {
            function = new IdentityFunction(null);
        }
      this.properties.add(new Property(property, function));
    }
View Full Code Here

    this.name = name;
    this.function = function;
  }

  public Property(String name, Object value) {
      this(name, new IdentityFunction(value));
  }
View Full Code Here

TOP

Related Classes of br.com.six2six.fixturefactory.function.impl.IdentityFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.