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