org.alfresco.repo.web.scripts.blogs
Class BlogServiceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.alfresco.repo.web.scripts.BaseWebScriptTest
org.alfresco.repo.web.scripts.blogs.BlogServiceTest
- All Implemented Interfaces:
- junit.framework.Test
public class BlogServiceTest
- extends BaseWebScriptTest
Unit Test to test Blog Web Script API
Methods inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest |
getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRes |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BlogServiceTest
public BlogServiceTest()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp
in class BaseWebScriptTest
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class junit.framework.TestCase
- Throws:
java.lang.Exception
testCreateDraftPost
public void testCreateDraftPost()
throws java.lang.Exception
- Throws:
java.lang.Exception
testCreateDraftPostWithTagsAndComment
public void testCreateDraftPostWithTagsAndComment()
throws java.lang.Exception
- Throws:
java.lang.Exception
- Since:
- 4.0
testCreatePublishedPost
public void testCreatePublishedPost()
throws java.lang.Exception
- Throws:
java.lang.Exception
testCreateEmptyPost
public void testCreateEmptyPost()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUpdated
public void testUpdated()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUpdateWithEmptyValues
public void testUpdateWithEmptyValues()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPublishThroughUpdate
public void testPublishThroughUpdate()
throws java.lang.Exception
- Throws:
java.lang.Exception
testCannotDoUnpublish
public void testCannotDoUnpublish()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetAll
public void testGetAll()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetNew
public void testGetNew()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetDrafts
public void testGetDrafts()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMyPublished
public void testMyPublished()
throws java.lang.Exception
- Throws:
java.lang.Exception
testComments
public void testComments()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBlogIntegration
public void testBlogIntegration()
throws java.lang.Exception
- You can attach information to the blog container relating
to integration with external blogs.
This tests that feature
- Throws:
java.lang.Exception
_testTagsStressTest
public void _testTagsStressTest()
throws java.lang.Exception
- Does some stress tests.
Currently observed errors:
1. [repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=485211db-f117-4976-9530-ab861a19f563, node=null ]
org.alfresco.repo.security.permissions.AccessDeniedException: Access Denied. You do not have the appropriate permissions to perform this operation.
2. JSONException, but with root cause being
get(assocs) failed on instance of org.alfresco.repo.template.TemplateNode
The problematic instruction:
----------
==> if person.assocs["cm:avatar"]?? [on line 4, column 7 in org/alfresco/repository/blogs/blogpost.lib.ftl]
- Throws:
java.lang.Exception
off_testPostTags
public void off_testPostTags()
throws java.lang.Exception
- Throws:
java.lang.Exception
off_testClearTags
public void off_testClearTags()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.