Send 404 if Git label not found

See gh-153
This commit is contained in:
Dave Syer
2015-05-19 11:47:28 +01:00
parent e94b4039a6
commit c685931308
6 changed files with 73 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ public class JGitEnvironmentRepositoryIntegrationTests {
assertEquals("master", repository.getDefaultLabel());
}
@Test(expected = IllegalStateException.class)
@Test(expected = NoSuchLabelException.class)
public void invalidLabel() throws IOException {
String uri = ConfigServerTestUtils.prepareLocalRepo();
context = new SpringApplicationBuilder(TestConfiguration.class).web(false)