public class RatingServiceIntegrationTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ApplicationContextInit |
APP_CONTEXT_INIT |
static org.junit.rules.RuleChain |
ruleChain |
RunAsFullyAuthenticatedRule |
runAsRule |
static TemporaryNodes |
STATIC_TEST_NODES |
static AlfrescoPerson |
TEST_USER1 |
static AlfrescoPerson |
TEST_USER2 |
TemporaryNodes |
testNodes |
| Constructor and Description |
|---|
RatingServiceIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyIllegalRatings()
This test method ensures that an attempt to apply an out-of-range rating value
throws the expected exception.
|
void |
applyRating_MultipleUsers()
This test method applies ratings to a single node as a number of different users.
|
void |
applyUpdateDeleteRatings() |
void |
copyNodeNotRatings() |
void |
createTestContent() |
static void |
initStaticData() |
void |
javascriptAPI() |
void |
oneUserRatesAndRerates() |
void |
oneUserRatesInTwoSchemes()
This test method ensures that if a single user attempts to rate a piece of content in two
different rating schemes, then an exception should not be thrown.
|
void |
outOfTheBoxRatingSchemes()
This method tests that the expected 'out of the box' rating schemes are available
and correctly initialised.
|
void |
usersCantRateTheirOwnContent() |
public static ApplicationContextInit APP_CONTEXT_INIT
public static AlfrescoPerson TEST_USER1
public static AlfrescoPerson TEST_USER2
public static TemporaryNodes STATIC_TEST_NODES
public static org.junit.rules.RuleChain ruleChain
public TemporaryNodes testNodes
public RunAsFullyAuthenticatedRule runAsRule
public static void initStaticData()
throws java.lang.Exception
java.lang.Exceptionpublic void createTestContent()
public void outOfTheBoxRatingSchemes()
throws java.lang.Exception
java.lang.Exceptionpublic void applyIllegalRatings()
throws java.lang.Exception
java.lang.Exceptionpublic void applyUpdateDeleteRatings()
throws java.lang.Exception
java.lang.Exceptionpublic void oneUserRatesAndRerates()
throws java.lang.Exception
java.lang.Exceptionpublic void oneUserRatesInTwoSchemes()
throws java.lang.Exception
java.lang.Exceptionpublic void applyRating_MultipleUsers()
throws java.lang.Exception
java.lang.Exceptionpublic void usersCantRateTheirOwnContent()
throws java.lang.Exception
java.lang.Exception@RunAsFullyAuthenticatedRule.RunAsUser(userName="UserTwo") public void javascriptAPI() throws java.lang.Exception
java.lang.Exceptionpublic void copyNodeNotRatings()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.