コード例 #1
0
  @Test
  public void testWithDefaultConfig() throws Exception {

    when(propertyLocation.clear()).thenReturn(propertyLocation);
    when(propertySuffix.clear()).thenReturn(propertySuffix);
    when(propertyFilter.clear()).thenReturn(propertyFilter);

    assertEquals(propertyLoader, propertyLoader.withDefaultConfig());

    verify(propertyLocation).clear();
    verify(propertySuffix).clear();
    verify(propertyFilter).clear();
    verify(propertyLocation).atDefaultLocations();
    verify(propertySuffix).addDefaultSuffixes();
    verify(propertyFilter).withDefaultFilters();
  }