Examples of SetWrapper


Examples of info.archinnov.achilles.internal.proxy.wrapper.SetWrapper

  public SetWrapperBuilder(Set<Object> target) {
    this.target = target;
  }

  public SetWrapper build() {
    SetWrapper setWrapper = new SetWrapper(this.target);
    super.build(setWrapper);
    return setWrapper;
  }
View Full Code Here

Examples of info.archinnov.achilles.internal.proxy.wrapper.SetWrapper

  }

  @Test
  public void should_build() throws Exception {
    Set<Object> target = new HashSet<>();
    SetWrapper wrapper = SetWrapperBuilder
        //
        .builder(target).dirtyMap(dirtyMap).setter(setter).propertyMeta(propertyMeta)
        .build();

    assertThat(wrapper.getTarget()).isSameAs(target);
    assertThat(wrapper.getDirtyMap()).isSameAs(dirtyMap);
    assertThat(Whitebox.getInternalState(wrapper, "setter")).isSameAs(setter);
    assertThat(Whitebox.getInternalState(wrapper, "propertyMeta")).isSameAs(propertyMeta);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.