MybatisProperties { public Resource[] resolveMapperLocations() { return Stream.of(Optional.ofNullable(this.mapperLocations).orElse(new String[0])) .flatMap(location -> Stream.of(getResources(location))).toArray(Resource[]::new); }  String getConfigLocation(); void setConfigLocation(String configLocation); String[] getMapperLocations(); void setMapperLocations(String[] mapperLocations); String getTypeHandlersPackage(); void setTypeHandlersPackage(String typeHandlersPackage); String getTypeAliasesPackage(); void setTypeAliasesPackage(String typeAliasesPackage); Class<?> getTypeAliasesSuperType(); void setTypeAliasesSuperType(Class<?> typeAliasesSuperType); boolean isCheckConfigLocation(); void setCheckConfigLocation(boolean checkConfigLocation); ExecutorType getExecutorType(); void setExecutorType(ExecutorType executorType); Class<? extends LanguageDriver> getDefaultScriptingLanguageDriver(); void setDefaultScriptingLanguageDriver(Class<? extends LanguageDriver> defaultScriptingLanguageDriver); Properties getConfigurationProperties(); void setConfigurationProperties(Properties configurationProperties); Configuration getConfiguration(); void setConfiguration(Configuration configuration); Resource[] resolveMapperLocations(); static final String MYBATIS_PREFIX; }
@Test void emptyMapperLocations() { MybatisProperties properties = new MybatisProperties(); assertThat(properties.resolveMapperLocations()).isEmpty(); }