From d6c28d0f2f4685442bca4f86eb7f792fd6f44ac9 Mon Sep 17 00:00:00 2001 From: Neil McErlean Date: Mon, 2 Sep 2013 13:23:28 +0000 Subject: [PATCH] Fixing a typo in test code. I accidentally put two @Rule annotations in when there only should have been one. For the record, I think the presence of two of these @Rule annotations would mean that all @Test methods in this class would run inside *two* RunAs blocks instead of one. So wrong, but shouldn't have caused any problems. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54775 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/test-java/org/alfresco/repo/jscript/ScriptNodeTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/test-java/org/alfresco/repo/jscript/ScriptNodeTest.java b/source/test-java/org/alfresco/repo/jscript/ScriptNodeTest.java index 4a86747256..ca69e6459a 100644 --- a/source/test-java/org/alfresco/repo/jscript/ScriptNodeTest.java +++ b/source/test-java/org/alfresco/repo/jscript/ScriptNodeTest.java @@ -102,7 +102,7 @@ public class ScriptNodeTest public TemporaryNodes testNodes = new TemporaryNodes(APP_CONTEXT_INIT); // A rule to allow individual test methods all to be run as "UserOne". - @Rule public RunAsFullyAuthenticatedRule runAsRule = new RunAsFullyAuthenticatedRule(TEST_USER1); + public RunAsFullyAuthenticatedRule runAsRule = new RunAsFullyAuthenticatedRule(TEST_USER1); // Tie them together in a non-static rule chain. @Rule public RuleChain ruleChain = RuleChain.outerRule(runAsRule)