Another test method order fix up for JDK7

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@41948 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2012-09-25 11:30:12 +00:00
parent 82b9aba09a
commit 5921783200

View File

@@ -87,7 +87,7 @@ public class ScriptBehaviourTest extends BaseSpringTest
this.folderNodeRef = childAssocRef.getChildRef(); this.folderNodeRef = childAssocRef.getChildRef();
} }
public void testEnableDiableBehaviour() public void test1EnableDisableBehaviour()
{ {
// Register the onCreateNode behaviour script // Register the onCreateNode behaviour script
ScriptLocation location = new ClasspathScriptLocation("org/alfresco/repo/jscript/test_onCreateNode_cmContent.js"); ScriptLocation location = new ClasspathScriptLocation("org/alfresco/repo/jscript/test_onCreateNode_cmContent.js");
@@ -124,7 +124,7 @@ public class ScriptBehaviourTest extends BaseSpringTest
assertTrue(this.nodeService.hasAspect(childAssoc2.getChildRef(), ContentModel.ASPECT_TITLED)); assertTrue(this.nodeService.hasAspect(childAssoc2.getChildRef(), ContentModel.ASPECT_TITLED));
} }
public void testClasspathLocationBehaviour() public void test2ClasspathLocationBehaviour()
{ {
// Register the onCreateNode behaviour script // Register the onCreateNode behaviour script
ScriptLocation location = new ClasspathScriptLocation("org/alfresco/repo/jscript/test_onCreateNode_cmContent.js"); ScriptLocation location = new ClasspathScriptLocation("org/alfresco/repo/jscript/test_onCreateNode_cmContent.js");
@@ -149,7 +149,7 @@ public class ScriptBehaviourTest extends BaseSpringTest
assertTrue(this.nodeService.hasAspect(childAssoc.getChildRef(), ContentModel.ASPECT_TITLED)); assertTrue(this.nodeService.hasAspect(childAssoc.getChildRef(), ContentModel.ASPECT_TITLED));
} }
public void testSpringConfiguredBehaviour() public void test3SpringConfiguredBehaviour()
{ {
this.nodeService.addAspect(this.folderNodeRef, ContentModel.ASPECT_COUNTABLE, null); this.nodeService.addAspect(this.folderNodeRef, ContentModel.ASPECT_COUNTABLE, null);
assertTrue(this.nodeService.hasAspect(this.folderNodeRef, ContentModel.ASPECT_TITLED)); assertTrue(this.nodeService.hasAspect(this.folderNodeRef, ContentModel.ASPECT_TITLED));