mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
Fix unit test
This commit is contained in:
@@ -333,7 +333,7 @@ class XmlRepositoryDAOTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void x() throws IOException {
|
||||
void shouldPersistPermissions() throws IOException {
|
||||
Repository heartOfGold = createHeartOfGold();
|
||||
heartOfGold.setPermissions(asList(new RepositoryPermission("trillian", asList("read", "write"), false), new RepositoryPermission("vorgons", asList("delete"), true)));
|
||||
dao.add(heartOfGold);
|
||||
@@ -343,7 +343,7 @@ class XmlRepositoryDAOTest {
|
||||
|
||||
String content = content(metadataPath);
|
||||
System.out.println(content);
|
||||
assertThat(content).contains("Awesome Spaceship");
|
||||
assertThat(content).containsSubsequence("trillian", "<verb>read</verb>", "<verb>write</verb>", "vorgons", "<verb>delete</verb>");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user