Search in sources :

Example 1 with OriginProvider

use of cn.taketoday.origin.OriginProvider in project today-framework 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);
}
Also used : Origin(cn.taketoday.origin.Origin) OriginProvider(cn.taketoday.origin.OriginProvider) Test(org.junit.jupiter.api.Test)

Example 2 with OriginProvider

use of cn.taketoday.origin.OriginProvider 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);
}
Also used : Origin(cn.taketoday.origin.Origin) OriginProvider(cn.taketoday.origin.OriginProvider) Test(org.junit.jupiter.api.Test)

Aggregations

Origin (cn.taketoday.origin.Origin)2 OriginProvider (cn.taketoday.origin.OriginProvider)2 Test (org.junit.jupiter.api.Test)2