All Downloads are FREE. Search and download functionalities are using the official Maven repository.

autofixture.generators.objects.PlainObjectGenerator Maven / Gradle / Ivy

package autofixture.generators.objects;

import autofixture.interfaces.FixtureContract;
import autofixture.interfaces.InstanceGenerator;
import autofixture.interfaces.InstanceType;

public class PlainObjectGenerator implements InstanceGenerator {

  @Override
  public  boolean appliesTo(final InstanceType typeToken) {
    return typeToken.isRawTypeAssignableFrom(Object.class);
  }

  @SuppressWarnings("unchecked")
  @Override
  public  T next(final InstanceType typeToken, final FixtureContract fixture) {
    return (T) new Object();
  }

  @Override
  public void setOmittingAutoProperties(final boolean isOn) {
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy