mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Heinous merge from HEAD. Seems to basically work. Be on guard however.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4137 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -198,6 +198,18 @@ public class IntegrityTest extends TestCase
|
||||
assertNotNull("Static IntegrityChecker not created", integrityChecker);
|
||||
}
|
||||
|
||||
public void testTemporaryDowngrading() throws Exception
|
||||
{
|
||||
assertEquals("Per-transaction override not correct", false, IntegrityChecker.isWarnInTransaction());
|
||||
// create bad node
|
||||
NodeRef nodeRef = createNode("abc", TEST_TYPE_WITH_PROPERTIES, null);
|
||||
// switch it off
|
||||
IntegrityChecker.setWarnInTransaction();
|
||||
assertEquals("Per-transaction override not correct", true, IntegrityChecker.isWarnInTransaction());
|
||||
// now, only warnings should occur
|
||||
checkIntegrityNoFailure();
|
||||
}
|
||||
|
||||
public void testCreateWithoutProperties() throws Exception
|
||||
{
|
||||
NodeRef nodeRef = createNode("abc", TEST_TYPE_WITH_PROPERTIES, null);
|
||||
|
Reference in New Issue
Block a user