use of cn.taketoday.origin.Origin in project today-infrastructure by TAKETODAY.
the class ConfigDataLocationTests method splitWhenHasOriginReturnsElementsWithOriginSet.
@Test
void splitWhenHasOriginReturnsElementsWithOriginSet() {
Origin origin = mock(Origin.class);
ConfigDataLocation location = ConfigDataLocation.valueOf("a;b").withOrigin(origin);
ConfigDataLocation[] split = location.split();
assertThat(split[0].getOrigin()).isEqualTo(origin);
assertThat(split[1].getOrigin()).isEqualTo(origin);
}
use of cn.taketoday.origin.Origin in project today-infrastructure by TAKETODAY.
the class ConfigurationPropertyTests method getPropertyOriginShouldReturnValuePropertyOrigin.
@Test
void getPropertyOriginShouldReturnValuePropertyOrigin() {
Origin origin = mock(Origin.class);
OriginProvider property = ConfigurationProperty.of(this.source, NAME, "foo", origin);
assertThat(property.getOrigin()).isEqualTo(origin);
}
Aggregations