@Test public void locationProfilesApplication() { this.repository.setSearchLocations("classpath:/test/{profile}"); Locations locations = this.repository.getLocations("foo", "dev,one,two", "master"); assertEquals(3, locations.getLocations().length); assertEquals("classpath:/test/dev/", locations.getLocations()[0]); }
@Test public void locationPlaceholdersApplication() { this.repository.setSearchLocations("classpath:/test/{application}"); Locations locations = this.repository.getLocations("foo", "dev", "master"); assertEquals(1, locations.getLocations().length); assertEquals("classpath:/test/foo/", locations.getLocations()[0]); }