mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Change file modified date on returned content from web script of type 'ContentStream', fix for SLNG- 894, change relating to SLNG-989, assertNotNull added to JS unit test API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10223 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -49,6 +49,23 @@ public class ScriptTestUtils extends BaseScopableProcessorExtension
|
||||
}
|
||||
}
|
||||
|
||||
public void assertNotEquals(Object expected, Object value)
|
||||
{
|
||||
assertNotEquals(expected, value, null);
|
||||
}
|
||||
|
||||
public void assertNotEquals(Object expected, Object value, String message)
|
||||
{
|
||||
if (expected.equals(value) == true)
|
||||
{
|
||||
if (message == null)
|
||||
{
|
||||
message = "Expected value '" + expected + "' should not match recieved value '" + value + "'";
|
||||
}
|
||||
throw new AlfrescoRuntimeException(message);
|
||||
}
|
||||
}
|
||||
|
||||
public void assertNotNull(Object value)
|
||||
{
|
||||
assertNotNull(value, null);
|
||||
|
Reference in New Issue
Block a user