log test method call order
@@ -95,6 +95,7 @@ public class JcrProjectProviderAccessControlTest extends AbstractTestNGSpringCon
@Test
public void testCreateProject3() {
+ logger.info("Running Test 'testCreateProject3'" );
// taken from: JcrFeedAllowedActionsTest createFeeds()
String projectName = metadata.commit(() -> {
@@ -127,6 +128,7 @@ public class JcrProjectProviderAccessControlTest extends AbstractTestNGSpringCon
@Test(dependsOnMethods = "testCreateProject3", expectedExceptions = AccessControlException.class)
public void checkPermsDeniedProject3() {
+ logger.info("Running Test 'checkPermsDeniedProject3'" );
metadata.read(() -> {
Optional<Project> u1Proj = this.projProvider.findProjectByName("Project3");
assertThat(u1Proj.isPresent()).isTrue();
@@ -139,6 +141,8 @@ public class JcrProjectProviderAccessControlTest extends AbstractTestNGSpringCon
@Test(dependsOnMethods = "testCreateProject3")
public void checkPermsAllowedProject3() {
+ logger.info("Running Test 'checkPermsAllowedProject3'" );
+
metadata.read(() -> {
Optional<Project> u1Proj = this.projProvider.findProjectByName("Project3");
assertThat(u1Proj.isPresent()).isTrue();
@@ -151,6 +155,8 @@ public class JcrProjectProviderAccessControlTest extends AbstractTestNGSpringCon
@Test(dependsOnMethods = "testCreateProject3")
public void checkNotFoundProject3() {
+ logger.info("Running Test 'checkNotFoundProject3'" );
+
metadata.read(() -> {
Optional<Project> u1Proj = this.projProvider.findProjectByName("Project3");
assertThat(u1Proj.isPresent()).isFalse();
@@ -161,6 +167,8 @@ public class JcrProjectProviderAccessControlTest extends AbstractTestNGSpringCon
@Test(dependsOnMethods = "testCreateProject3")
public void getProjects2() {
+ logger.info("Running Test 'getProjects2'" );
+
int projectCount = metadata.read(() -> this.projProvider.getProjects().size(), TEST_USER1);
assertThat(projectCount).isEqualTo(1);
projectCount = metadata.read(() -> this.projProvider.getProjects().size(), TEST_USER2);
@@ -171,6 +179,8 @@ public class JcrProjectProviderAccessControlTest extends AbstractTestNGSpringCon
@Test(dependsOnMethods = "testCreateProject3")
public void getProjectsIcanEdit() {
+ logger.info("Running Test 'getProjectsIcanEdit'" );
+
List<Project> projects = metadata.read(
() -> this.projProvider.getMyEditableProjects(), TEST_USER1);
assertThat(projects.size()).isEqualTo(1);
@@ -186,6 +196,8 @@ public class JcrProjectProviderAccessControlTest extends AbstractTestNGSpringCon
@Test(dependsOnMethods = "testCreateProject3")
public void testUserGroups() {
+ logger.info("Running Test 'testUserGroups'" );
+
metadata.read(() -> {
Optional<Project> u1Proj = this.projProvider.findProjectByName("Project3");
assertThat(u1Proj.isPresent()).isTrue();
