Pollen-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
August 2012
- 1 participants
- 83 discussions
r3649 - trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin
by tchemit@users.chorem.org 28 Aug '12
by tchemit@users.chorem.org 28 Aug '12
28 Aug '12
Author: tchemit
Date: 2012-08-28 18:28:18 +0200 (Tue, 28 Aug 2012)
New Revision: 3649
Url: http://chorem.org/repositories/revision/pollen/3649
Log:
creator is now a normal user...
Modified:
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/SummaryPoll.java
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/SummaryPoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/SummaryPoll.java 2012-08-28 16:28:01 UTC (rev 3648)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/SummaryPoll.java 2012-08-28 16:28:18 UTC (rev 3649)
@@ -53,6 +53,17 @@
// can removed accountId only for free poll
//FIXME Should found out in ohter case the accountId (if exists for the connected id) if no accountId is given
getUserSecurityContext().removeAccountIdWhenConnected(url);
+ } else {
+ if (getUserSecurityContext().isRestrictedVoter()) {
+
+ // special case : creator and restricted user (same account still used! find out why)
+ // anyway must add the creatorId
+ if (!getUserSecurityContext().isConnected()) {
+
+ // add the accountId
+ url.getPollUri().setAccountId(getUserSecurityContext().getAccountId());
+ }
+ }
}
return url.getUrl();
}
@@ -112,7 +123,7 @@
}
public boolean isCanVote() {
- return getSecurityService().isCanVoteFromSummary(getUserSecurityContext());
+ return getSecurityService().isCanVote(getUserSecurityContext());
}
@Override
1
0
r3648 - trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it
by tchemit@users.chorem.org 28 Aug '12
by tchemit@users.chorem.org 28 Aug '12
28 Aug '12
Author: tchemit
Date: 2012-08-28 18:28:01 +0200 (Tue, 28 Aug 2012)
New Revision: 3648
Url: http://chorem.org/repositories/revision/pollen/3648
Log:
improve tests constructor
Modified:
trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java
Modified: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java 2012-08-28 16:26:50 UTC (rev 3647)
+++ trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java 2012-08-28 16:28:01 UTC (rev 3648)
@@ -47,13 +47,12 @@
protected final PollUri creatorUri;
protected AbstractPollIT(Class<? extends WebDriver> driverType,
- String pollId, String creatorId) {
+ String pollIdAccountId) {
super(driverType);
- this.pollId = pollId;
- this.creatorId = creatorId;
-
+ creatorUri = PollUri.newPollUri(pollIdAccountId);
+ this.pollId = creatorUri.getPollId();
+ this.creatorId = creatorUri.getAccountId();
pollUri = PollUri.newPollUri(pollId);
- creatorUri = PollUri.newPollUri(pollId, creatorId);
}
protected PollUri newPollUri(String accountId) {
1
0
28 Aug '12
Author: tchemit
Date: 2012-08-28 18:26:50 +0200 (Tue, 28 Aug 2012)
New Revision: 3647
Url: http://chorem.org/repositories/revision/pollen/3647
Log:
add jetty:runner to avoid classpath missunderstanding :(
Modified:
trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml
Modified: trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml 2012-08-28 16:26:00 UTC (rev 3646)
+++ trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml 2012-08-28 16:26:50 UTC (rev 3647)
@@ -62,6 +62,11 @@
</dependency>
<dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-runner</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
1
0
28 Aug '12
Author: tchemit
Date: 2012-08-28 18:26:00 +0200 (Tue, 28 Aug 2012)
New Revision: 3646
Url: http://chorem.org/repositories/revision/pollen/3646
Log:
refs #742: Option to allow all users to show voting of others users at last, all tests for this
Added:
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/FreePollTestSuite.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/RestrictedPollTestSuite.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/0a96604ee43e45e7b9bff495f0d1be7c.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/1cfa579292c94bf68eea76da5c7dcc54.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/231a34e880d4447bbd9247cf6fb08239.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3442086a6b7b4ba48b6431099f61e12a.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3e0c927b3930498195a9da90dd003ff1.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4bcf02e9758a4e6689f7b9536e8d1414.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4ff1aff69b234ed8af88889b2a8334ce.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/5ae795551aa34f1192d761885b9cc7ac.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/63145d6ae2f34f29b18ca4d2ce1eea6f.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/69b8aec17ae5416082666b51debdeb3e.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/6ba21b17a8ee4fe3acc2b33d971067fd.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/732d3bd4825b49efae7e4af5de9e1536.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7d1d828b24e9450fa346321b32a1d463.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/80f4369d988a40e89b200e22e22e3a52.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8b781e56d4d545db82b2dc301a32a7de.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8d904a3490e94ef2a4368b62afc83402.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a13d4759209a4b919c4a63ee2a0003dc.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/ac92041cf86f4bf9b3b5accfdd63330b.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/aeff6e804f244b1c8e78fec93262c50f.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b38d0d680fb84ea891c2dd0bf4698a1f.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c19ba513378b4c63873f6948bbf3dc72.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c672a1f964904c769fcb2235de46bafa.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c881d4c8f8a74a2198d292d05489097a.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e4fccb937a0b4bf1a008d17c1234ce45.xml
Removed:
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml
Modified:
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db/pollendb.h2.db
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -22,10 +22,13 @@
* #L%
*/
+import com.google.common.collect.Sets;
import org.chorem.pollen.bean.PollUri;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
+import java.util.Set;
+
/**
* Abstrac it for this it.
*
@@ -43,111 +46,88 @@
/** Admin user voter uri. */
protected final PollUri adminVotePollUri;
+ protected final Set<PollUri> voteUri;
+
protected AbstractIT(Class<? extends WebDriver> driverType,
- String pollId,
- String creatorId,
+ String pollUri,
String notConnectedVoteId,
String userVoteId,
String adminVoteId) {
- super(driverType, pollId, creatorId);
+ super(driverType, pollUri);
notConnectedVotePollUri = newPollUri(notConnectedVoteId);
connectedVotePollUri = newPollUri(userVoteId);
adminVotePollUri = newPollUri(adminVoteId);
- }
- protected PollUri newPollUri(String accountId) {
- return PollUri.newPollUri(pollId, accountId);
+ voteUri = Sets.newHashSet(adminVotePollUri,
+ notConnectedVotePollUri,
+ connectedVotePollUri,
+ adminVotePollUri);
}
protected final void canNotModifyAnyVote() {
- checkCanNotModifiyVote(notConnectedVotePollUri);
- checkCanNotModifiyVote(connectedVotePollUri);
- checkCanNotModifiyVote(adminVotePollUri);
+ for (PollUri uri : voteUri) {
+ checkCanNotModifiyVote(uri);
+ }
}
- protected final void canNotDeleteAnyVote() {
- checkCanNotDeleteVote(notConnectedVotePollUri);
- checkCanNotDeleteVote(connectedVotePollUri);
- checkCanNotDeleteVote(adminVotePollUri);
+ protected final void canModifyAnyVote() {
+ for (PollUri uri : voteUri) {
+ canModifiyVote(uri);
+ }
}
- protected final void canSeeOnlyAdminVote() {
- checkCanSeeVote(adminVotePollUri);
- checkCanNotSeeVote(notConnectedVotePollUri);
- checkCanNotSeeVote(connectedVotePollUri);
+ protected final void canNotDeleteAnyVote() {
+ for (PollUri uri : voteUri) {
+ checkCanNotDeleteVote(uri);
+ }
}
- protected final void canSeeOnlyConnectedVote() {
- checkCanSeeVote(connectedVotePollUri);
- checkCanNotSeeVote(notConnectedVotePollUri);
- checkCanNotSeeVote(adminVotePollUri);
+ protected final void canDeleteAnyVote() {
+ for (PollUri uri : voteUri) {
+ checkCanDeleteVote(uri);
+ }
}
- protected final void canSeeOnlyNotConnectedVote() {
- checkCanSeeVote(notConnectedVotePollUri);
- checkCanNotSeeVote(connectedVotePollUri);
- checkCanNotSeeVote(adminVotePollUri);
+ protected final void canNotSeeAnyVote() {
+ for (PollUri uri : voteUri) {
+ checkCanNotSeeVote(uri);
+ }
}
- protected final void canDeleteAdminVote() {
- checkCanDeleteVote(adminVotePollUri);
- checkCanNotDeleteVote(notConnectedVotePollUri);
- checkCanNotDeleteVote(connectedVotePollUri);
+ protected final void canSeeAnyVote() {
+ for (PollUri uri : voteUri) {
+ checkCanSeeVote(uri);
+ }
}
- protected final void canDeleteConnectedVote() {
- checkCanDeleteVote(connectedVotePollUri);
- checkCanNotDeleteVote(notConnectedVotePollUri);
- checkCanNotDeleteVote(adminVotePollUri);
+ protected final void canSeeOnlyVote(PollUri uri) {
+ checkCanSeeVote(uri);
+ for (PollUri uri2 : voteUri) {
+ if (!uri2.equals(uri)) {
+ checkCanNotSeeVote(uri2);
+ }
+ }
}
- protected final void canDeleteNotConnectedVote() {
- checkCanDeleteVote(notConnectedVotePollUri);
- checkCanNotDeleteVote(connectedVotePollUri);
- checkCanNotDeleteVote(adminVotePollUri);
+ protected final void canOnlyModifyVote(PollUri uri) {
+ canModifiyVote(uri);
+ for (PollUri uri2 : voteUri) {
+ if (!uri2.equals(uri)) {
+ checkCanNotModifiyVote(uri2);
+ }
+ }
}
- protected final void canModifyNotConnectedVote() {
- checkCanModifiyVote(notConnectedVotePollUri);
- checkCanNotModifiyVote(connectedVotePollUri);
- checkCanNotModifiyVote(adminVotePollUri);
+ protected final void canOnlyDeleteVote(PollUri uri) {
+ checkCanDeleteVote(uri);
+ for (PollUri uri2 : voteUri) {
+ if (!uri2.equals(uri)) {
+ checkCanNotDeleteVote(uri2);
+ }
+ }
}
- protected final void canModifyUserVote() {
- checkCanModifiyVote(connectedVotePollUri);
- checkCanNotModifiyVote(notConnectedVotePollUri);
- checkCanNotModifiyVote(adminVotePollUri);
- }
-
- protected final void canModifyAdminVote() {
- checkCanModifiyVote(adminVotePollUri);
- checkCanNotModifiyVote(notConnectedVotePollUri);
- checkCanNotModifiyVote(connectedVotePollUri);
- }
-
- protected final void canNotSeeAnyVote() {
- checkCanNotSeeVote(notConnectedVotePollUri);
- checkCanNotSeeVote(connectedVotePollUri);
- checkCanNotSeeVote(adminVotePollUri);
- }
-
- protected final void canSeeAllVotes() {
- checkCanSeeVote(notConnectedVotePollUri);
- checkCanSeeVote(connectedVotePollUri);
- checkCanSeeVote(adminVotePollUri);
- }
-
- protected final void canDeleteAllVotes() {
- checkCanDeleteVote(notConnectedVotePollUri);
- checkCanDeleteVote(connectedVotePollUri);
- checkCanDeleteVote(adminVotePollUri);
- }
-
- protected void checkPollNotFoundInGrid(String pollId) {
- checkNoElement(By.xpath("//td[@title=\"" + pollId + "\"]"));
- }
-
protected void checkPollFoundInGrid(String pollId) {
findElement(By.xpath("//td[@title=\"" + pollId + "\"]"));
}
@@ -160,7 +140,7 @@
findElement(By.id("vote_" + uri.getAccountId()));
}
- protected void checkCanModifiyVote(PollUri uri) {
+ protected void canModifiyVote(PollUri uri) {
findElement(By.id("modifyVote_" + uri.getAccountId()));
}
@@ -176,12 +156,12 @@
checkNoElement(By.id("deleteVote_" + uri.getAccountId()));
}
- protected void checkCanNotVote(PollUri uri) {
+ protected void canNotVote() {
checkNoElement(By.id("voteForm_pollen_action_pollVote"));
checkNoElement(By.name("vote.choiceVoteToChoice[0].voteValue"));
}
- protected void checkCanVote(PollUri uri) {
+ protected void canVote() {
findElement(By.id("voteForm_pollen_action_pollVote"));
findElement(By.name("vote.choiceVoteToChoice[0].voteValue"));
}
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,17 +1,6 @@
package org.chorem.pollen.ui.it;
-import org.chorem.pollen.ui.it.freepoll.anonymousPoll.AnonymousFreePollByAdminIT;
-import org.chorem.pollen.ui.it.freepoll.anonymousPoll.AnonymousFreePollByConnectedIT;
-import org.chorem.pollen.ui.it.freepoll.anonymousPoll.AnonymousFreePollByNotConnectedIT;
-import org.chorem.pollen.ui.it.freepoll.creatorOnly.CreatorOnlyFreePollByAdminIT;
-import org.chorem.pollen.ui.it.freepoll.creatorOnly.CreatorOnlyFreePollByConnectedIT;
-import org.chorem.pollen.ui.it.freepoll.creatorOnly.CreatorOnlyFreePollByNotConnectedIT;
-import org.chorem.pollen.ui.it.freepoll.everybody.EverybodyFreePollByAdminIT;
-import org.chorem.pollen.ui.it.freepoll.everybody.EverybodyFreePollByConnectedIT;
-import org.chorem.pollen.ui.it.freepoll.everybody.EverybodyFreePollByNotConnectedIT;
-import org.chorem.pollen.ui.it.freepoll.voterOnly.VoterOnlyFreePollByAdminIT;
-import org.chorem.pollen.ui.it.freepoll.voterOnly.VoterOnlyFreePollByConnectedIT;
-import org.chorem.pollen.ui.it.freepoll.voterOnly.VoterOnlyFreePollByNotConnectedIT;
+import org.chorem.pollen.ui.it.restrictedpoll.RestrictedPollTestSuite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@@ -24,22 +13,8 @@
@RunWith(Suite.class)
@Suite.SuiteClasses(
{
- AnonymousFreePollByNotConnectedIT.class,
- AnonymousFreePollByConnectedIT.class,
- AnonymousFreePollByAdminIT.class,
-
- CreatorOnlyFreePollByNotConnectedIT.class,
- CreatorOnlyFreePollByConnectedIT.class,
- CreatorOnlyFreePollByAdminIT.class,
-
- VoterOnlyFreePollByNotConnectedIT.class,
- VoterOnlyFreePollByConnectedIT.class,
- VoterOnlyFreePollByAdminIT.class,
-
- EverybodyFreePollByNotConnectedIT.class,
- EverybodyFreePollByConnectedIT.class,
- EverybodyFreePollByAdminIT.class,
-
+// FreePollTestSuite.class,
+ RestrictedPollTestSuite.class,
CleanDrivers.class
}
)
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByAdminIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByAdminIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByAdminIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,235 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a anonymous free poll created by an administrator.
+ * <p/>
+ * For that poll nobody can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class AnonymousPollByAdminIT extends AbstractIT {
+
+ public AnonymousPollByAdminIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "8b781e56d4d545db82b2dc301a32a7de:5feb4640ecc44f2b98f38cdec6aa8a25",
+ "639166bccd224b00ba7f3062d11a1dd1",
+ "74a77860c4244c04ac81c825115d98aa",
+ "5feb4640ecc44f2b98f38cdec6aa8a25");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(creatorUri);
+
+ // connect as user
+ adminLogin();
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), false);
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(creatorUri);
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see any vote
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByAdminIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByConnectedIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByConnectedIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,235 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a anonymous free poll created by a connected user.
+ * <p/>
+ * For that poll nobody can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class AnonymousPollByConnectedIT extends AbstractIT {
+
+ public AnonymousPollByConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "6ba21b17a8ee4fe3acc2b33d971067fd:2c318e938efa44cebb64a1c62d14ae32",
+ "28ad798040784f09a4c07de7cd1b137e",
+ "2c318e938efa44cebb64a1c62d14ae32",
+ "f3cf238fce0245dfa07652e6ff3c22c5");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modify his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete is vote
+ canOnlyDeleteVote(creatorUri);
+
+ // connect as user
+ userLogin();
+
+ // can access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), false);
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modify his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete is vote
+ canOnlyDeleteVote(creatorUri);
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see any vote
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can not see votes
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can not see votes
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can not see votes
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can not see votes
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByNotConnectedIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByNotConnectedIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByNotConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,235 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a anonymous free poll created by a not connected user.
+ * <p/>
+ * For that poll nobody can see other people votes.
+ * <p/>
+ * Wen have 4 votes:
+ * - creator one
+ * - not connected one
+ * - connected one
+ * - admin one
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class AnonymousPollByNotConnectedIT extends AbstractIT {
+
+ public AnonymousPollByNotConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "231a34e880d4447bbd9247cf6fb08239:1c7bc5fe5acc43f784f152ffa8cb955b",
+ "8d8e7c08e4ce4a53b69f123fdf1294d1",
+ "fc41810efa0949df82b09ec2fcb61dc4",
+ "1d64709e2d394ae58b56202fcfb91262");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(creatorUri);
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorIdVote() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(creatorUri);
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see any vote
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see only his vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/AnonymousPollByNotConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByAdminIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByAdminIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByAdminIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,234 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a creator only free poll created by an administrator.
+ * <p/>
+ * For that poll only creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class CreatorOnlyByAdminIT extends AbstractIT {
+
+ public CreatorOnlyByAdminIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "4bcf02e9758a4e6689f7b9536e8d1414:2569ae43ebed4c44bf8dac1d1efbb96f",
+ "d8e604972de448af9bef5b4cd10e088e",
+ "a38efef5adae4887a1841207a71f0f2d",
+ "2569ae43ebed4c44bf8dac1d1efbb96f");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see votes
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see his own vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see votes his own vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user (he is the creator)
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his own vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his votes
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByAdminIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByConnectedIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByConnectedIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,234 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a creator only free poll created by an connected user.
+ * <p/>
+ * For that poll only creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class CreatorOnlyByConnectedIT extends AbstractIT {
+
+ public CreatorOnlyByConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "69b8aec17ae5416082666b51debdeb3e:927f57d89e2d47d0925021271c4fc763",
+ "1cf8967324ac4ddba90d4681a36cdda4",
+ "927f57d89e2d47d0925021271c4fc763",
+ "56c872e29ccc475fa67d59e03aa562eb");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see votes
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see his own vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // connect as user (he is the creator)
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (user is creator)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByNotConnectedIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByNotConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,233 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a creator only free poll created by a not connected user.
+ * <p/>
+ * For that poll only creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class CreatorOnlyByNotConnectedIT extends AbstractIT {
+
+ public CreatorOnlyByNotConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "c881d4c8f8a74a2198d292d05489097a:62c539335c15470fae0c4c3e3a20d32c",
+ "ee1f02b1f5d749c3a25d234cdbc1d4ba",
+ "04f9d532121448beb4553946ff2dd92e",
+ "396d7f4dd8dc49b2aa1b582a617768bf");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see votes
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see his own vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see votes his own vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see vote his own vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see ony his own vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/CreatorOnlyByNotConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByAdminIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByAdminIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByAdminIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,234 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a everybody free poll created by a administrator user.
+ * <p/>
+ * For that poll everybody can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class EverybodyByAdminIT extends AbstractIT {
+
+ public EverybodyByAdminIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "ac92041cf86f4bf9b3b5accfdd63330b:95fb02e6b9be4dcd88f9368a4a9eb92b",
+ "a9ff61e77cc74880a5b0976cc0c8ca51",
+ "0819a466ff5f481abb2a582b75d81586",
+ "95fb02e6b9be4dcd88f9368a4a9eb92b");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user (he is the creator)
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his votes
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByAdminIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByConnectedIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByConnectedIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,234 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a everybody free poll created by a connected user.
+ * <p/>
+ * For that poll everybody can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class EverybodyByConnectedIT extends AbstractIT {
+
+ public EverybodyByConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "3e0c927b3930498195a9da90dd003ff1:a7648a5b6d564e88af984c0a1970a760",
+ "d3836461808b4df28129bef979023d53",
+ "a7648a5b6d564e88af984c0a1970a760",
+ "f2b5693d30634f7ca62a978fa78aa389");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes (he is the creator)
+ canDeleteAnyVote();
+
+ // connect as user (he is the creator)
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (user is creator)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByNotConnectedIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByNotConnectedIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByNotConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,234 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a everybody free poll created by a not connected user.
+ * <p/>
+ * For that poll everybody can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class EverybodyByNotConnectedIT extends AbstractIT {
+
+ public EverybodyByNotConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "1cfa579292c94bf68eea76da5c7dcc54:4139d51978ac46e7975bbecc3625eecf",
+ "88dea733c109497e892e3fd2b29fed17",
+ "2a624b7b6e5b4e3f9d45caf19894d6bd",
+ "caa33b633d324c74b7419b8b2ebcd311");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/EverybodyByNotConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/FreePollTestSuite.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/FreePollTestSuite.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/FreePollTestSuite.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,33 @@
+package org.chorem.pollen.ui.it.freepoll;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * All tests of this package.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+(a)RunWith(Suite.class)
+(a)Suite.SuiteClasses(
+ {
+ AnonymousPollByNotConnectedIT.class,
+ AnonymousPollByConnectedIT.class,
+ AnonymousPollByAdminIT.class,
+
+ CreatorOnlyByNotConnectedIT.class,
+ CreatorOnlyByConnectedIT.class,
+ CreatorOnlyByAdminIT.class,
+
+ VoterOnlyByNotConnectedIT.class,
+ VoterOnlyByConnectedIT.class,
+ VoterOnlyByAdminIT.class,
+
+ EverybodyByNotConnectedIT.class,
+ EverybodyByConnectedIT.class,
+ EverybodyByAdminIT.class
+ }
+)
+public class FreePollTestSuite {
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/FreePollTestSuite.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByAdminIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByAdminIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByAdminIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,234 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a voter only free poll created by a administrator user.
+ * <p/>
+ * For that poll only voter, creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class VoterOnlyByAdminIT extends AbstractIT {
+
+ public VoterOnlyByAdminIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "c672a1f964904c769fcb2235de46bafa:e94a3f2cb67a43e399d40bcc0e6be510",
+ "a4def042cd4e4e2ba8984dd25b54faac",
+ "efad86f3a34d4c2da4bb440d016f72af",
+ "e94a3f2cb67a43e399d40bcc0e6be510");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see votes
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user (he is the creator)
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his votes
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete any vote (he is the creator)
+ canDeleteAnyVote();
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByAdminIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByConnectedIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByConnectedIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,233 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a voter only free poll created by a connected user.
+ * <p/>
+ * For that poll only voter, creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class VoterOnlyByConnectedIT extends AbstractIT {
+
+ public VoterOnlyByConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "3442086a6b7b4ba48b6431099f61e12a:59e8e91c067c4e309e52a248c03725dd",
+ "2a08fca09f8a4909b734e928f65afb84",
+ "59e8e91c067c4e309e52a248c03725dd",
+ "34f327f3e500499cae6ad733873c1ae8");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see votes
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all vote (he is creator)
+ canDeleteAnyVote();
+
+ // connect as user (he is the creator)
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (user is creator)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByNotConnectedIT.java (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByNotConnectedIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByNotConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,234 @@
+package org.chorem.pollen.ui.it.freepoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a voter only free poll created by a not connected user.
+ * <p/>
+ * For that poll only voter, creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class VoterOnlyByNotConnectedIT extends AbstractIT {
+
+ public VoterOnlyByNotConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "b38d0d680fb84ea891c2dd0bf4698a1f:0f733bb9e225413d90694a8be6f83da0",
+ "a0bc5995d1cb41eca69c59a7e9a3c09d",
+ "d1496269cc1e4be7b6e72d0d850c95fc",
+ "c24fd3ecba144b46903ced0b3a62c40b");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canModifiyVote(creatorUri);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can vote
+ canVote();
+
+ // can not see votes
+ canNotSeeAnyVote();
+
+ // can not modify any vote
+ canNotModifyAnyVote();
+
+ // can not delete any vote
+ canNotDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/VoterOnlyByNotConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByAdminIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,219 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.anonymousPoll;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a anonymous free poll created by an administrator.
- * <p/>
- * For that poll nobody can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class AnonymousFreePollByAdminIT extends AbstractIT {
-
- public AnonymousFreePollByAdminIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "87cb5b1529374ac0b8c6b7f0b98e169c",
- "65a3caf0bf204226bfcd259c69e56ca8",
- "a0ff6892a28b4a65809b16cd8903245e",
- "fd47e01378354fcaa220a4ffd0974417",
- "010f05042ff3485c834d1ecdc4d17f1e");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // connect as user
- adminLogin();
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), false);
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
- // can modifiy his vote
-// checkCanModifiyVote(notConnectedVotePollUri);
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
- // can modifiy his vote
-// checkCanModifiyVote(connectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can delete his vote
-// checkCanDeleteVote(connectedVotePollUri);
- // connect as user
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can not modifiy his vote (with no accountId, anonymous poll can not find the vote)
- canNotModifyAnyVote();
-
- // can not his vote (with no accountId, anonymous poll can not find the vote)
- canNotDeleteAnyVote();
-
- // poll not present in participant poll (anonymous poll)
- gotoUrl(urlFixtures.participatedList(), true);
-
- checkPollNotFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can modifiy his vote
-// checkCanModifiyVote(adminVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can delete his vote
-// checkCanDeleteVote(adminVotePollUri);
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can not modifiy his vote (with no accountId, anonymous poll can not find the vote)
- canNotModifyAnyVote();
-
- // can not delete his vote (with no accountId, anonymous poll can not find the vote)
- canNotDeleteAnyVote();
-
- // poll not present in participant poll (anonymous poll)
- gotoUrl(urlFixtures.participatedList(), true);
-
- checkPollNotFoundInGrid(pollId);
- }
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByConnectedIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,219 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.anonymousPoll;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a anonymous free poll created by a connected user.
- * <p/>
- * For that poll nobody can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class AnonymousFreePollByConnectedIT extends AbstractIT {
-
- public AnonymousFreePollByConnectedIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "fdd43f4c8d614a9aa48047804583508a",
- "9a8e8523f1ba404f8fde45d1844c59ac",
- "07dc154dce514d368441eaa9f27d21e0",
- "e67a14d729c7440ebe4a55d589cba515",
- "29993520034a41168def96f908d2696b");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // connect as user
- userLogin();
-
- // can access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), false);
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
- // can modifiy his vote
-// checkCanModifiyVote(notConnectedVotePollUri);
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
- // can modifiy his vote
-// checkCanModifiyVote(connectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can delete his vote
-// checkCanDeleteVote(connectedVotePollUri);
- // connect as user
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(pollUri);
-
- // can not modifiy his vote (with no accountId, anonymous poll can not find the vote)
- canNotModifyAnyVote();
-
- // can not his vote (with no accountId, anonymous poll can not find the vote)
- canNotDeleteAnyVote();
-
- // poll not present in participant poll (anonymous poll)
- gotoUrl(urlFixtures.participatedList(), true);
-
- checkPollNotFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can modifiy his vote
-// checkCanModifiyVote(adminVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can delete his vote
-// checkCanDeleteVote(adminVotePollUri);
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can not modifiy his vote (with no accountId, anonymous poll can not find the vote)
- canNotModifyAnyVote();
-
- // can not delete his vote (with no accountId, anonymous poll can not find the vote)
- canNotDeleteAnyVote();
-
- // poll not present in participant poll (anonymous poll)
- gotoUrl(urlFixtures.participatedList(), true);
-
- checkPollNotFoundInGrid(pollId);
- }
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByNotConnectedIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,213 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.anonymousPoll;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a anonymous free poll created by a not connected user.
- * <p/>
- * For that poll nobody can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class AnonymousFreePollByNotConnectedIT extends AbstractIT {
-
- public AnonymousFreePollByNotConnectedIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "cacb52f4d49047b7a7aa24ec528fcc87",
- "e814ba6e25174d5983ad796c400520f5",
- "56acbf87f3c049c2adc757ef1da88ee1",
- "c54a12ffde5d44a4ad9e609aa644fc80",
- "15500943e49842c88d6ceeefaa62e2ed");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
- // can modifiy his vote
-// checkCanModifiyVote(notConnectedVotePollUri);
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
- // can modifiy his vote
-// checkCanModifiyVote(connectedVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can delete his vote
-// checkCanDeleteVote(connectedVotePollUri);
- // connect as user
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(pollUri);
-
- // can not modifiy his vote (with no accountId, anonymous poll can not find the vote)
- canNotModifyAnyVote();
-
- // can not his vote (with no accountId, anonymous poll can not find the vote)
- canNotDeleteAnyVote();
-
- // poll not present in participant poll (anonymous poll)
- gotoUrl(urlFixtures.participatedList(), true);
-
- checkPollNotFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can modifiy his vote
-// checkCanModifiyVote(adminVotePollUri);
-
- //TODO Fix this with http://chorem.org/issues/795
-// // can delete his vote
-// checkCanDeleteVote(adminVotePollUri);
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can not see votes
- canNotSeeAnyVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can not modifiy his vote (with no accountId, anonymous poll can not find the vote)
- canNotModifyAnyVote();
-
- // can not delete his vote (with no accountId, anonymous poll can not find the vote)
- canNotDeleteAnyVote();
-
- // poll not present in participant poll (anonymous poll)
- gotoUrl(urlFixtures.participatedList(), true);
-
- checkPollNotFoundInGrid(pollId);
- }
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByAdminIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,223 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.creatorOnly;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a creator only free poll created by an administrator.
- * <p/>
- * For that poll only creator or administrator can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class CreatorOnlyFreePollByAdminIT extends AbstractIT {
-
- public CreatorOnlyFreePollByAdminIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "a04bd349d8964c4fad48ac6ececc60a0",
- "a1346bb80bb84913983e91673c76e80c",
- "e6fa20f2afb24bdebfdc579c2574a3ab",
- "01b2b146c6874593b678261f42014935",
- "cf4f77e74b2f40428595452ce2ee6fbf");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see his own vote
- canSeeOnlyNotConnectedVote();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see votes his own vote
- canSeeOnlyConnectedVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user (he is the creator)
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see his own vote
- canSeeOnlyConnectedVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his votes
- canDeleteConnectedVote();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see ony his own vote
- canSeeOnlyAdminVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByConnectedIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,223 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.creatorOnly;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a creator only free poll created by an connected user.
- * <p/>
- * For that poll only creator or administrator can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class CreatorOnlyFreePollByConnectedIT extends AbstractIT {
-
- public CreatorOnlyFreePollByConnectedIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "075ab18c50c74f83b894c042bba84ff5",
- "0f51b7c953f6427f9c85807fa838d44f",
- "4937a887797a4ab5ac618152383512ae",
- "f162acd5dd8a4242a6f38b098ecec3c3",
- "02dbe56ac36d458d95f1fe07ba783f61");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see his own vote
- canSeeOnlyNotConnectedVote();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see votes his own vote
- canSeeOnlyConnectedVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user (he is the creator)
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes (user is creator)
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see ony his own vote
- canSeeOnlyAdminVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,222 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.creatorOnly;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a creator only free poll created by a not connected user.
- * <p/>
- * For that poll only creator or administrator can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class CreatorOnlyFreePollByNotConnectedIT extends AbstractIT {
-
- public CreatorOnlyFreePollByNotConnectedIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "e61a350a1d714e479aad526ee85b7bc6",
- "8517bd2f6b414072b3d9d6c4cb7e5fd0",
- "e8fd28021faa434aa466c5f6bdbc6e94",
- "52ef06ee93dd4095ae7498edb9e1c28e",
- "c86b0b775e154fdeaf51ae1e5ef4074d");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see his own vote
- canSeeOnlyNotConnectedVote();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see votes his own vote
- canSeeOnlyConnectedVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see vote his own vote
- canSeeOnlyConnectedVote();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see ony his own vote
- canSeeOnlyAdminVote();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByAdminIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,223 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.everybody;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a everybody free poll created by a administrator user.
- * <p/>
- * For that poll everybody can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class EverybodyFreePollByAdminIT extends AbstractIT {
-
- public EverybodyFreePollByAdminIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "3300e59939bd4c9797e360060b8e54be",
- "c370172faf7a4108be0d76630af34c4b",
- "4399e0ff6dbe4544b64861d1e234ee1a",
- "5af1c33357084f89a56d1cde89584cb7",
- "335e6a3921fb4dd5b6220c55311b7931");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can see all votes
- canSeeAllVotes();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user (he is the creator)
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his votes
- canDeleteConnectedVote();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByConnectedIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,223 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.everybody;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a everybody free poll created by a connected user.
- * <p/>
- * For that poll everybody can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class EverybodyFreePollByConnectedIT extends AbstractIT {
-
- public EverybodyFreePollByConnectedIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "4cd79d032aa7433d9944ec9376c385c0",
- "f26e253004d14547b465b5a414b65a7f",
- "307222b5e17442758bd23fc9d8a19f5e",
- "8a10f049538142669ca84bb034f7a886",
- "6e92bf48f672429ea265a2647bef415d");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can see all votes
- canSeeAllVotes();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user (he is the creator)
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes (user is creator)
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByNotConnectedIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,223 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.everybody;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a everybody free poll created by a not connected user.
- * <p/>
- * For that poll everybody can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class EverybodyFreePollByNotConnectedIT extends AbstractIT {
-
- public EverybodyFreePollByNotConnectedIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "2262a31f374e4969bb3593e762c0cae6",
- "659bb046fc06493f9909ca9f34ca6261",
- "6909131490ab4a1abae0daaf15129cdb",
- "f058910736af48e9905f83f3f5de5b8d",
- "2d97c079df054a7c9fc321b2df3488f3");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can see all votes
- canSeeAllVotes();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByAdminIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,223 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.voterOnly;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a voter only free poll created by a administrator user.
- * <p/>
- * For that poll only voter, creator or administrator can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class VoterOnlyFreePollByAdminIT extends AbstractIT {
-
- public VoterOnlyFreePollByAdminIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "7103c6d4a79246699425e99e1f344b98",
- "717ebe61a3b64fcea453c9cba5953149",
- "ad50a5d406d84aa09e3a02dd9ad0116c",
- "24abe4ba077341b489af505531ac93de",
- "2237dbc51f7c4268a8a7e10f6146ae87");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user (he is the creator)
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his votes
- canDeleteConnectedVote();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByConnectedIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,222 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.voterOnly;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a voter only free poll created by a connected user.
- * <p/>
- * For that poll only voter, creator or administrator can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class VoterOnlyFreePollByConnectedIT extends AbstractIT {
-
- public VoterOnlyFreePollByConnectedIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "b321ddccf7d743bf9c67b2664231d14f",
- "a48f1b97a3f84443845009c074298bce",
- "938e4831d7d547a59fd6d76c3bdfe6b5",
- "b3e407acc97b4911b0de470b1d45a68f",
- "6f980a4541e04edd9dec95d3dbde0830");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user (he is the creator)
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes (user is creator)
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-}
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByNotConnectedIT.java 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,223 +0,0 @@
-package org.chorem.pollen.ui.it.freepoll.voterOnly;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.chorem.pollen.ui.it.AbstractIT;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-/**
- * Test a voter only free poll created by a not connected user.
- * <p/>
- * For that poll only voter, creator or administrator can see votes.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4.5
- */
-public class VoterOnlyFreePollByNotConnectedIT extends AbstractIT {
-
- public VoterOnlyFreePollByNotConnectedIT(Class<? extends WebDriver> driverType) {
- super(driverType,
- "8518ede7bf1247d2ba0dfe222575c5ba",
- "ea5c96d4d44547f9b0717f30bfa6dd03",
- "fa914a31f6c94cfa8561f48e3c45d6cf",
- "5c67d277460b4b4eb1fb59a26bf4a622",
- "28d450be407e4eabbb787739ec27ae52");
- }
-
- @Test
- public void checkSummaryPollPage() {
-
- // can not access to summary page with no pollId
- gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
-
- // can not access to summary page with no creatorId
- gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to summary page
- gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
-
- // user can vote (#voteUrl)
- findElement(By.id("voteUrl"));
- }
-
- @Test
- public void checkModeratePollPage() {
-
- // can not access to moderate page with no pollId
- gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
-
- // can not access to moderate page with no creatorId
- gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
-
- // access to moderate page
- gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithCreatorId() {
-
- // access to votefor page with creatorId
- gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
-
- // can not vote
- checkCanNotVote(creatorUri);
-
- // can see all votes
- canSeeAllVotes();
-
- // can delete all votes
- canDeleteAllVotes();
- }
-
- @Test
- public void checkVoteForPageWithNoAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can vote
- checkCanVote(pollUri);
-
- // can not see votes
- canNotSeeAnyVote();
- }
-
- @Test
- public void checkVoteWithNotConnectedVoteAccountId() {
-
- // access to votefor page with notConnected voter
- gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(notConnectedVotePollUri);
-
- // can modifiy his vote
- canModifyNotConnectedVote();
-
- // can delete his vote
- canDeleteNotConnectedVote();
- }
-
- @Test
- public void checkVoteWithConnectedVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // connect as user
- userLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(connectedVotePollUri);
-
- // can modifiy his vote
- canModifyUserVote();
-
- // can delete his vote
- canDeleteConnectedVote();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
- @Test
- public void checkVoteWithAdminVoteAccountId() {
-
- // access to votefor page with no accountId
- gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete his vote
- canDeleteAdminVote();
-
- // connect as admin
- adminLogin();
-
- // access to votefor page with no accountId (will use the userAccount)
- gotoUrl(urlFixtures.voteforPoll(pollUri), true);
-
- // can see all votes
- canSeeAllVotes();
-
- // can vote
- checkCanVote(adminVotePollUri);
-
- // can modifiy his vote
- canModifyAdminVote();
-
- // can delete all votes
- canDeleteAllVotes();
-
- // poll present in participant poll
- gotoUrl(urlFixtures.participatedList(), true);
-
- //FIXME Find out how to wait until jquery is done (or can direct call the json query)
- // found poll in grid
-// checkPollFoundInGrid(pollId);
- }
-
-}
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByAdminIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,227 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/it/pollVoteVis… $
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a anonymous restricted poll created by a administrator.
+ * <p/>
+ * For that poll nobody can see other people votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class AnonymousPollByAdminIT extends AbstractIT {
+
+ public AnonymousPollByAdminIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "7d1d828b24e9450fa346321b32a1d463:a5e38089f4be4a0888caaed31d349262",
+ "b25285cfc1c74ebbbb89cfc860a82dff",
+ "4bec956ebc13414484a9bc013a3ab645",
+ "a5e38089f4be4a0888caaed31d349262");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(creatorUri);
+
+ // connect as user
+ adminLogin();
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), false);
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(creatorUri);
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByAdminIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,227 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/it/pollVoteVis… $
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a anonymous restricted poll created by a connected user.
+ * <p/>
+ * For that poll nobody can see other people votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class AnonymousPollByConnectedIT extends AbstractIT {
+
+ public AnonymousPollByConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "63145d6ae2f34f29b18ca4d2ce1eea6f:cf2031cb01dc4745bdeb3adb12154b93",
+ "8c7086f0e5354134acf4801f9b56012b",
+ "cf2031cb01dc4745bdeb3adb12154b93",
+ "ae891a65e47d47e5bf31444a02f8acd5");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modify his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete is vote
+ canOnlyDeleteVote(creatorUri);
+
+ // connect as user
+ userLogin();
+
+ // can access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), false);
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modify his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete is vote
+ canOnlyDeleteVote(creatorUri);
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can not see votes
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can not see votes
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can not see votes
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can not see votes
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByNotConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,221 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/it/pollVoteVis… $
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a anonymous restricted poll created by a not connected user.
+ * <p/>
+ * For that poll nobody can see other people votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class AnonymousPollByNotConnectedIT extends AbstractIT {
+
+ public AnonymousPollByNotConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "80f4369d988a40e89b200e22e22e3a52:c99c36e8e49d483aad4597aad314f195",
+ "c99c36e8e49d483aad4597aad314f195",
+ "fb3ca39d0cf5406dbe675990615feedd",
+ "3bd1cdc76d214249abcf4c6530a6bcfb");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(creatorUri);
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorIdVote() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see his vote
+ canSeeOnlyVote(creatorUri);
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(creatorUri);
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see only his vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see his vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // poll present in participant poll (anonymous poll)
+ gotoUrl(urlFixtures.participatedList(), true);
+
+// checkPollFoundInGrid(pollId);
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/AnonymousPollByNotConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByAdminIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,203 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a creator only restricted poll created by an administrator.
+ * <p/>
+ * For that poll only creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class CreatorOnlyByAdminIT extends AbstractIT {
+
+ public CreatorOnlyByAdminIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "5ae795551aa34f1192d761885b9cc7ac:8f66e7c7bc9b46428c9f3955a8d7cbd8",
+ "6b68d9d4271f4177851c07ebca0df6f8",
+ "65f24585e446402d80beebf39f3e447d",
+ "8f66e7c7bc9b46428c9f3955a8d7cbd8");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see his own vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see votes his own vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see vote his own vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes (he is the creator + admin!)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (he is the creator + admin!)
+ canDeleteAnyVote();
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (he is the creator + admin!)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (he is the creator + admin!)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByAdminIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,203 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a creator only restricted poll created by an connected user.
+ * <p/>
+ * For that poll only creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class CreatorOnlyByConnectedIT extends AbstractIT {
+
+ public CreatorOnlyByConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "4ff1aff69b234ed8af88889b2a8334ce:a2f290a90ab74ce3b26268df69d45deb",
+ "649648307cd84cb99729d2950d9b58bd",
+ "a2f290a90ab74ce3b26268df69d45deb",
+ "af419fd08f4f4ca9b43fbfd0a6b66cd9");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see his own vote
+ canSeeOnlyVote(notConnectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with connected voter
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes (he is the creator)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes (he is the creator)
+ canDeleteAnyVote();
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (he is the creator)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes (he is the creator)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see ony his own vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (he is admin)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (he is admin)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByNotConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,200 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a creator only restricted poll created by an not connected user.
+ * <p/>
+ * For that poll only creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class CreatorOnlyByNotConnectedIT extends AbstractIT {
+
+ public CreatorOnlyByNotConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "732d3bd4825b49efae7e4af5de9e1536:c057c0aed8784687b36d8f9102ae8cce",
+ "c057c0aed8784687b36d8f9102ae8cce",
+ "fa93d85ef285481b97404ff2fc0afee5",
+ "b12d0614f83d439891ff81e02682035b");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes (he is the creator)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete all votes (he is the creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with connected voter
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see votes his own vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see vote his own vote
+ canSeeOnlyVote(connectedVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with admin voter
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see ony his own vote
+ canSeeOnlyVote(adminVotePollUri);
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/CreatorOnlyByNotConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByAdminIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,203 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a everybody restricted poll created by an administrator.
+ * <p/>
+ * For that poll everybody can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class EverybodyByAdminIT extends AbstractIT {
+
+ public EverybodyByAdminIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "0a96604ee43e45e7b9bff495f0d1be7c:7761837158a14b438e13d15d41160d76",
+ "ff76660ae9a449799a886c25dc536ece",
+ "428abbb102ae41c7ac4e4af7dfb6eb1e",
+ "7761837158a14b438e13d15d41160d76");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (he is the creator)
+ canDeleteAnyVote();
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (he is the creator + admin!)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByAdminIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,203 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a everybody restricted poll created by an connected user.
+ * <p/>
+ * For that poll everybody can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class EverybodyByConnectedIT extends AbstractIT {
+
+ public EverybodyByConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "e4fccb937a0b4bf1a008d17c1234ce45:fa522367aacd412e8023e079c03a98d5",
+ "ce599843a80d4b8ba58b2902ce8b302d",
+ "fa522367aacd412e8023e079c03a98d5",
+ "5afe19aa4b164b95a672c849bee594ae");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with connected voter
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (admin)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByNotConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,200 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a everybody restricted poll created by an not connected user.
+ * <p/>
+ * For that poll evrybody, creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class EverybodyByNotConnectedIT extends AbstractIT {
+
+ public EverybodyByNotConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "c19ba513378b4c63873f6948bbf3dc72:28e0cff0e2f24b20ad9c2c10a90a1ba3",
+ "28e0cff0e2f24b20ad9c2c10a90a1ba3",
+ "5a905af1bc4943dbb5c2db7468d87744",
+ "55db4a7781f84a1fbf1aa5b7a09e9b3d");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with connected voter
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with admin voter
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (everybody)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (admin)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/EverybodyByNotConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/RestrictedPollTestSuite.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/RestrictedPollTestSuite.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/RestrictedPollTestSuite.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,33 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * All tests of this package.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+(a)RunWith(Suite.class)
+(a)Suite.SuiteClasses(
+ {
+ AnonymousPollByNotConnectedIT.class,
+ AnonymousPollByConnectedIT.class,
+ AnonymousPollByAdminIT.class,
+
+ CreatorOnlyByNotConnectedIT.class,
+ CreatorOnlyByConnectedIT.class,
+ CreatorOnlyByAdminIT.class,
+
+ VoterOnlyByNotConnectedIT.class,
+ VoterOnlyByConnectedIT.class,
+ VoterOnlyByAdminIT.class,
+
+ EverybodyByNotConnectedIT.class,
+ EverybodyByConnectedIT.class,
+ EverybodyByAdminIT.class
+ }
+)
+public class RestrictedPollTestSuite {
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/RestrictedPollTestSuite.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByAdminIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByAdminIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,203 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a voter only restricted poll created by an administrator.
+ * <p/>
+ * For that poll only voter, creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class VoterOnlyByAdminIT extends AbstractIT {
+
+ public VoterOnlyByAdminIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "aeff6e804f244b1c8e78fec93262c50f:93df1c3dda2441759d10c1d16167b032",
+ "d555700f700343d18d8471afd4d36a15",
+ "2f29be0dc054449ab3ce926c648e5e5c",
+ "93df1c3dda2441759d10c1d16167b032");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes (voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes (voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes (he is the creator + voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (he is the creator)
+ canDeleteAnyVote();
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (he is the creator + voter + admin!)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (he is the creator + admin!)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByAdminIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,203 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a vote only restricted poll created by an connected user.
+ * <p/>
+ * For that poll only voter, creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class VoterOnlyByConnectedIT extends AbstractIT {
+
+ public VoterOnlyByConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "8d904a3490e94ef2a4368b62afc83402:495a542b8ee6402a91bc55b1420a1126",
+ "f92fa2d519f74d27a78ab318cf38b1df",
+ "495a542b8ee6402a91bc55b1420a1126",
+ "001cf634064f4872be34ffe69b04e590");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes (creator)
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes (creator+voter)
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes (voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(notConnectedVotePollUri);
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with connected voter
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes (creator+voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (creator+voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes (creator)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (admin+voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (admin)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByNotConnectedIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByNotConnectedIT.java 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,200 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+
+import org.chorem.pollen.ui.it.AbstractIT;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+
+/**
+ * Test a voter only restricted poll created by an not connected user.
+ * <p/>
+ * For that poll only voter, creator or administrator can see votes.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class VoterOnlyByNotConnectedIT extends AbstractIT {
+
+ public VoterOnlyByNotConnectedIT(Class<? extends WebDriver> driverType) {
+ super(driverType,
+ "a13d4759209a4b919c4a63ee2a0003dc:1b64562e16aa498da1d212fb402ec4b6",
+ "1b64562e16aa498da1d212fb402ec4b6",
+ "8f491f9a1c084e3ababc6c354d8bedce",
+ "e5b526e87035444790d31f9a23970995");
+ }
+
+ @Test
+ public void checkSummaryPollPage() {
+
+ // can not access to summary page with no pollId
+ gotoUrl(urlFixtures.summaryPoll(), urlFixtures.poll_required(), false);
+
+ // can not access to summary page with no creatorId
+ gotoUrl(urlFixtures.summaryPoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to summary page
+ gotoUrl(urlFixtures.summaryPoll(creatorUri), true);
+
+ // user can vote (#voteUrl)
+ findElement(By.id("voteUrl"));
+ }
+
+ @Test
+ public void checkModeratePollPage() {
+
+ // can not access to moderate page with no pollId
+ gotoUrl(urlFixtures.moderatePoll(), urlFixtures.poll_required(), false);
+
+ // can not access to moderate page with no creatorId
+ gotoUrl(urlFixtures.moderatePoll(pollUri), urlFixtures.poll_creator_required(), false);
+
+ // access to moderate page
+ gotoUrl(urlFixtures.moderatePoll(creatorUri), true);
+
+ // can not vote
+ canNotVote();
+
+ // can see all votes (creator+voter)
+ canSeeAnyVote();
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithCreatorId() {
+
+ // access to votefor page with creatorId
+ gotoUrl(urlFixtures.voteforPoll(creatorUri), true);
+
+ // can vote
+ canVote();
+
+ // can see all votes (creator+voter)
+ canSeeAnyVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(creatorUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteForPageWithNoAccountId() {
+
+ // can not access to votefor page with no accountId
+ gotoUrl(urlFixtures.voteforPoll(pollUri), urlFixtures.poll_access_required(), false);
+
+ // can not access to votefor page with bad accountId
+ gotoUrl(urlFixtures.voteforPoll(newPollUri("fake-" + System.nanoTime())),
+ urlFixtures.poll_access_required(), false);
+ }
+
+ @Test
+ public void checkVoteWithNotConnectedVoteAccountId() {
+
+ // access to votefor page with notConnected voter
+ gotoUrl(urlFixtures.voteforPoll(notConnectedVotePollUri), true);
+
+ // can see all votes (creator+voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(notConnectedVotePollUri);
+
+ // can delete all votes (creator)
+ canDeleteAnyVote();
+ }
+
+ @Test
+ public void checkVoteWithConnectedVoteAccountId() {
+
+ // access to votefor page with connected voter
+ gotoUrl(urlFixtures.voteforPoll(connectedVotePollUri), true);
+
+ // can see all votes (voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // connect as user
+ userLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(connectedVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(connectedVotePollUri);
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+
+ @Test
+ public void checkVoteWithAdminVoteAccountId() {
+
+ // access to votefor page with admin voter
+ gotoUrl(urlFixtures.voteforPoll(adminVotePollUri), true);
+
+ // can see all votes (voter)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete his vote
+ canOnlyDeleteVote(adminVotePollUri);
+
+ // connect as admin
+ adminLogin();
+
+ // access to votefor page with no accountId (will use the userAccount)
+ gotoUrl(urlFixtures.voteforPoll(pollUri), true);
+
+ // can see all votes (voter+admin)
+ canSeeAnyVote();
+
+ // can vote
+ canVote();
+
+ // can modifiy his vote
+ canOnlyModifyVote(adminVotePollUri);
+
+ // can delete all votes (admin)
+ canDeleteAnyVote();
+
+ // poll present in participant poll
+ gotoUrl(urlFixtures.participatedList(), true);
+
+ //FIXME Find out how to wait until jquery is done (or can direct call the json query)
+ // found poll in grid
+// checkPollFoundInGrid(pollId);
+ }
+}
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/VoterOnlyByNotConnectedIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data
___________________________________________________________________
Added: svn:ignore
+ tmp
uploadedImages
emails
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db/pollendb.h2.db
===================================================================
(Binary files differ)
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : onlyCreator free poll (by conntected user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
- <subtitle>sondage libre dont les votes ne sont visibles que par le créateur ou un administrateur (crée par un utilisateur connecté)</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
- <updated>2012-08-24T09:22:00Z</updated>
- <published>2012-08-24T09:22:00Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T09:22:00Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connecter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
- <updated>2012-08-24T09:23:34Z</updated>
- <published>2012-08-24T09:23:34Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T09:23:34Z</dc:date>
- </entry>
- <entry>
- <title>Vote modified for 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
- <updated>2012-08-24T09:25:15Z</updated>
- <published>2012-08-24T09:25:15Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T09:25:15Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
- <updated>2012-08-24T09:25:43Z</updated>
- <published>2012-08-24T09:25:43Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T09:25:43Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
- <updated>2012-08-24T09:27:46Z</updated>
- <published>2012-08-24T09:27:46Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:creator />
- <dc:date>2012-08-24T09:27:46Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user2(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T09:33:30Z</updated>
- <published>2012-08-24T09:33:30Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T09:33:30Z</dc:date>
- </entry>
-</feed>
-
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/0a96604ee43e45e7b9bff495f0d1be7c.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/0a96604ee43e45e7b9bff495f0d1be7c.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/0a96604ee43e45e7b9bff495f0d1be7c.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : everybody restricted poll (by admin)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c" />
+ <subtitle>sondage restreint everybody (tout le monde peut voter et voir les votes) créé par un utilisateur administrateur</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c</id>
+ <updated>2012-08-28T15:21:48Z</updated>
+ <published>2012-08-28T15:21:48Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T15:21:48Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c</id>
+ <updated>2012-08-28T15:27:01Z</updated>
+ <published>2012-08-28T15:27:01Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:27:01Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c</id>
+ <updated>2012-08-28T15:27:11Z</updated>
+ <published>2012-08-28T15:27:11Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:27:11Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c</id>
+ <updated>2012-08-28T15:27:20Z</updated>
+ <published>2012-08-28T15:27:20Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:27:20Z</dc:date>
+ </entry>
+ <entry>
+ <title>Vote modified for 'admin2'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/0a96604ee43e45e7b9bff495f0d1be7c" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T15:28:02Z</updated>
+ <published>2012-08-28T15:28:02Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T15:28:02Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/0a96604ee43e45e7b9bff495f0d1be7c.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/1cfa579292c94bf68eea76da5c7dcc54.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/1cfa579292c94bf68eea76da5c7dcc54.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/1cfa579292c94bf68eea76da5c7dcc54.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : onlyVoter free poll (by admin user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
+ <subtitle>sondage libre dont les votes ne sont visibles que par les participants, créateurs et admin</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba</id>
+ <updated>2012-08-24T09:48:47Z</updated>
+ <published>2012-08-24T09:48:47Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T09:48:47Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba</id>
+ <updated>2012-08-24T10:13:26Z</updated>
+ <published>2012-08-24T10:13:26Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T10:13:26Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba</id>
+ <updated>2012-08-24T11:02:46Z</updated>
+ <published>2012-08-24T11:02:46Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T11:02:46Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba</id>
+ <updated>2012-08-24T11:05:11Z</updated>
+ <published>2012-08-24T11:05:11Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T11:05:11Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54</id>
+ <updated>2012-08-28T09:56:43Z</updated>
+ <published>2012-08-28T09:56:43Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:56:43Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54</id>
+ <updated>2012-08-28T09:56:48Z</updated>
+ <published>2012-08-28T09:56:48Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:56:48Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54</id>
+ <updated>2012-08-28T09:57:38Z</updated>
+ <published>2012-08-28T09:57:38Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:57:38Z</dc:date>
+ </entry>
+ <entry>
+ <title>Delete vote of 'chemit+notconnected(a)codelutin.com' for reason ''</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54</id>
+ <updated>2012-08-28T09:58:56Z</updated>
+ <published>2012-08-28T09:58:56Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:58:56Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54</id>
+ <updated>2012-08-28T09:59:27Z</updated>
+ <published>2012-08-28T09:59:27Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:59:27Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected2(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/1cfa579292c94bf68eea76da5c7dcc54" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T09:59:50Z</updated>
+ <published>2012-08-28T09:59:50Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T09:59:50Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/1cfa579292c94bf68eea76da5c7dcc54.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : everybody free poll (by not connected user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
- <subtitle>sondage libre dont les votes sont visibles par tous (crée par un utilisateur non connecté)</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
- <updated>2012-08-24T09:53:11Z</updated>
- <published>2012-08-24T09:53:11Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T09:53:11Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
- <updated>2012-08-24T12:18:52Z</updated>
- <published>2012-08-24T12:18:52Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:18:52Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
- <updated>2012-08-24T12:20:02Z</updated>
- <published>2012-08-24T12:20:02Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:20:02Z</dc:date>
- </entry>
- <entry>
- <title>Vote modified for 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
- <updated>2012-08-24T12:24:43Z</updated>
- <published>2012-08-24T12:24:43Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:24:43Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T12:25:10Z</updated>
- <published>2012-08-24T12:25:10Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T12:25:10Z</dc:date>
- </entry>
-</feed>
-
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/231a34e880d4447bbd9247cf6fb08239.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/231a34e880d4447bbd9247cf6fb08239.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/231a34e880d4447bbd9247cf6fb08239.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : everybody free poll (by connected user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
+ <subtitle>sondage libre dont les votes sont visibles par tous (crée par un utilisateur connecté)</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0</id>
+ <updated>2012-08-24T09:53:59Z</updated>
+ <published>2012-08-24T09:53:59Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T09:53:59Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0</id>
+ <updated>2012-08-24T12:36:22Z</updated>
+ <published>2012-08-24T12:36:22Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:36:22Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0</id>
+ <updated>2012-08-24T13:12:31Z</updated>
+ <published>2012-08-24T13:12:31Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T13:12:31Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0</id>
+ <updated>2012-08-24T13:24:53Z</updated>
+ <published>2012-08-24T13:24:53Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T13:24:53Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/231a34e880d4447bbd9247cf6fb08239" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/231a34e880d4447bbd9247cf6fb08239</id>
+ <updated>2012-08-28T07:19:09Z</updated>
+ <published>2012-08-28T07:19:09Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T07:19:09Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/231a34e880d4447bbd9247cf6fb08239" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/231a34e880d4447bbd9247cf6fb08239</id>
+ <updated>2012-08-28T07:20:12Z</updated>
+ <published>2012-08-28T07:20:12Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T07:20:12Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/231a34e880d4447bbd9247cf6fb08239" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/231a34e880d4447bbd9247cf6fb08239</id>
+ <updated>2012-08-28T07:21:57Z</updated>
+ <published>2012-08-28T07:21:57Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T07:21:57Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/231a34e880d4447bbd9247cf6fb08239" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T07:22:50Z</updated>
+ <published>2012-08-28T07:22:50Z</published>
+ <summary type="text">Poll result: a=3, b=2</summary>
+ <dc:date>2012-08-28T07:22:50Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/231a34e880d4447bbd9247cf6fb08239.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : everybody free poll (by admin user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
- <subtitle>sondage libre dont les votes sont visibles par tous (crée par un administrateur)</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be</id>
- <updated>2012-08-24T09:52:27Z</updated>
- <published>2012-08-24T09:52:27Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T09:52:27Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be</id>
- <updated>2012-08-24T13:28:22Z</updated>
- <published>2012-08-24T13:28:22Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T13:28:22Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be</id>
- <updated>2012-08-24T13:29:19Z</updated>
- <published>2012-08-24T13:29:19Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T13:29:19Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T13:30:31Z</updated>
- <published>2012-08-24T13:30:31Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T13:30:31Z</dc:date>
- </entry>
-</feed>
-
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3442086a6b7b4ba48b6431099f61e12a.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3442086a6b7b4ba48b6431099f61e12a.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3442086a6b7b4ba48b6431099f61e12a.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : everybody free poll (by admin user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
+ <subtitle>sondage libre dont les votes sont visibles par tous (crée par un administrateur)</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be</id>
+ <updated>2012-08-24T09:52:27Z</updated>
+ <published>2012-08-24T09:52:27Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T09:52:27Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be</id>
+ <updated>2012-08-24T13:28:22Z</updated>
+ <published>2012-08-24T13:28:22Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T13:28:22Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be</id>
+ <updated>2012-08-24T13:29:19Z</updated>
+ <published>2012-08-24T13:29:19Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T13:29:19Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be</id>
+ <updated>2012-08-24T13:30:31Z</updated>
+ <published>2012-08-24T13:30:31Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T13:30:31Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3442086a6b7b4ba48b6431099f61e12a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/3442086a6b7b4ba48b6431099f61e12a</id>
+ <updated>2012-08-28T09:18:54Z</updated>
+ <published>2012-08-28T09:18:54Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:18:54Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com '</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3442086a6b7b4ba48b6431099f61e12a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/3442086a6b7b4ba48b6431099f61e12a</id>
+ <updated>2012-08-28T09:19:15Z</updated>
+ <published>2012-08-28T09:19:15Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:19:15Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3442086a6b7b4ba48b6431099f61e12a" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T09:19:46Z</updated>
+ <published>2012-08-28T09:19:46Z</published>
+ <summary type="text">Poll result: a=3, b=2</summary>
+ <dc:date>2012-08-28T09:19:46Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3442086a6b7b4ba48b6431099f61e12a.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3e0c927b3930498195a9da90dd003ff1.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3e0c927b3930498195a9da90dd003ff1.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3e0c927b3930498195a9da90dd003ff1.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : onlyCreator free poll (by admin user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
+ <subtitle>sondage libre dont les votes ne sont visibles que par le créateur ou un administrateur (crée par un administrateur)</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0</id>
+ <updated>2012-08-24T09:36:06Z</updated>
+ <published>2012-08-24T09:36:06Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T09:36:06Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0</id>
+ <updated>2012-08-24T09:37:01Z</updated>
+ <published>2012-08-24T09:37:01Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T09:37:01Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0</id>
+ <updated>2012-08-24T09:38:20Z</updated>
+ <published>2012-08-24T09:38:20Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T09:38:20Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0</id>
+ <updated>2012-08-24T09:40:27Z</updated>
+ <published>2012-08-24T09:40:27Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T09:40:27Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3e0c927b3930498195a9da90dd003ff1" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/3e0c927b3930498195a9da90dd003ff1</id>
+ <updated>2012-08-28T10:04:04Z</updated>
+ <published>2012-08-28T10:04:04Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T10:04:04Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3e0c927b3930498195a9da90dd003ff1" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/3e0c927b3930498195a9da90dd003ff1</id>
+ <updated>2012-08-28T10:05:23Z</updated>
+ <published>2012-08-28T10:05:23Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T10:05:23Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3e0c927b3930498195a9da90dd003ff1" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T10:05:30Z</updated>
+ <published>2012-08-28T10:05:30Z</published>
+ <summary type="text">Poll result: a=3, b=1</summary>
+ <dc:date>2012-08-28T10:05:30Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3e0c927b3930498195a9da90dd003ff1.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4bcf02e9758a4e6689f7b9536e8d1414.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4bcf02e9758a4e6689f7b9536e8d1414.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4bcf02e9758a4e6689f7b9536e8d1414.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : anonymous free poll (by connected user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
+ <subtitle>sondage anonyme libre (tout le monde peut voter mais personne ne voit les votes) créé par un utilisateur connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a</id>
+ <updated>2012-08-23T22:23:36Z</updated>
+ <published>2012-08-23T22:23:36Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-23T22:23:36Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a</id>
+ <updated>2012-08-23T22:24:13Z</updated>
+ <published>2012-08-23T22:24:13Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:24:13Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a</id>
+ <updated>2012-08-23T22:25:09Z</updated>
+ <published>2012-08-23T22:25:09Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:25:09Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a</id>
+ <updated>2012-08-23T22:26:18Z</updated>
+ <published>2012-08-23T22:26:18Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:26:18Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4bcf02e9758a4e6689f7b9536e8d1414" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4bcf02e9758a4e6689f7b9536e8d1414</id>
+ <updated>2012-08-28T08:16:45Z</updated>
+ <published>2012-08-28T08:16:45Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T08:16:45Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4bcf02e9758a4e6689f7b9536e8d1414" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4bcf02e9758a4e6689f7b9536e8d1414</id>
+ <updated>2012-08-28T08:17:17Z</updated>
+ <published>2012-08-28T08:17:17Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T08:17:17Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4bcf02e9758a4e6689f7b9536e8d1414" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T08:17:46Z</updated>
+ <published>2012-08-28T08:17:46Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T08:17:46Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4bcf02e9758a4e6689f7b9536e8d1414.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : everybody free poll (by connected user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
- <subtitle>sondage libre dont les votes sont visibles par tous (crée par un utilisateur connecté)</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0</id>
- <updated>2012-08-24T09:53:59Z</updated>
- <published>2012-08-24T09:53:59Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T09:53:59Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0</id>
- <updated>2012-08-24T12:36:22Z</updated>
- <published>2012-08-24T12:36:22Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:36:22Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0</id>
- <updated>2012-08-24T13:12:31Z</updated>
- <published>2012-08-24T13:12:31Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T13:12:31Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T13:24:53Z</updated>
- <published>2012-08-24T13:24:53Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T13:24:53Z</dc:date>
- </entry>
-</feed>
-
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4ff1aff69b234ed8af88889b2a8334ce.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4ff1aff69b234ed8af88889b2a8334ce.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4ff1aff69b234ed8af88889b2a8334ce.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : creator only restricted poll (by connected)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4ff1aff69b234ed8af88889b2a8334ce" />
+ <subtitle>sondage restreint creator only (tout le monde peut voter mais seul le créateur ou administrateur voit les votes) créé par un utilisateur connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4ff1aff69b234ed8af88889b2a8334ce" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4ff1aff69b234ed8af88889b2a8334ce</id>
+ <updated>2012-08-28T13:15:38Z</updated>
+ <published>2012-08-28T13:15:38Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T13:15:38Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4ff1aff69b234ed8af88889b2a8334ce" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4ff1aff69b234ed8af88889b2a8334ce</id>
+ <updated>2012-08-28T14:20:18Z</updated>
+ <published>2012-08-28T14:20:18Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T14:20:18Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4ff1aff69b234ed8af88889b2a8334ce" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/4ff1aff69b234ed8af88889b2a8334ce</id>
+ <updated>2012-08-28T14:20:26Z</updated>
+ <published>2012-08-28T14:20:26Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T14:20:26Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4ff1aff69b234ed8af88889b2a8334ce" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T14:20:34Z</updated>
+ <published>2012-08-28T14:20:34Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T14:20:34Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4ff1aff69b234ed8af88889b2a8334ce.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/5ae795551aa34f1192d761885b9cc7ac.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/5ae795551aa34f1192d761885b9cc7ac.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/5ae795551aa34f1192d761885b9cc7ac.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : creator only restricted poll (by admin)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/5ae795551aa34f1192d761885b9cc7ac" />
+ <subtitle>sondage restreint creator only (tout le monde peut voter mais seul le créateur ou administrateur voit les votes) créé par un utilisateur administrateur</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/5ae795551aa34f1192d761885b9cc7ac" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/5ae795551aa34f1192d761885b9cc7ac</id>
+ <updated>2012-08-28T13:17:20Z</updated>
+ <published>2012-08-28T13:17:20Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T13:17:20Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/5ae795551aa34f1192d761885b9cc7ac" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/5ae795551aa34f1192d761885b9cc7ac</id>
+ <updated>2012-08-28T14:22:29Z</updated>
+ <published>2012-08-28T14:22:29Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T14:22:29Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/5ae795551aa34f1192d761885b9cc7ac" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/5ae795551aa34f1192d761885b9cc7ac</id>
+ <updated>2012-08-28T14:22:38Z</updated>
+ <published>2012-08-28T14:22:38Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T14:22:38Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/5ae795551aa34f1192d761885b9cc7ac" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T14:22:47Z</updated>
+ <published>2012-08-28T14:22:47Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T14:22:47Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/5ae795551aa34f1192d761885b9cc7ac.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/63145d6ae2f34f29b18ca4d2ce1eea6f.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/63145d6ae2f34f29b18ca4d2ce1eea6f.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/63145d6ae2f34f29b18ca4d2ce1eea6f.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : anonymous restricted poll (by connected)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/63145d6ae2f34f29b18ca4d2ce1eea6f" />
+ <subtitle>sondage anonyme restreint (tout le monde peut voter mais personne ne voit les votes) créé par un utilisateur connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/63145d6ae2f34f29b18ca4d2ce1eea6f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/63145d6ae2f34f29b18ca4d2ce1eea6f</id>
+ <updated>2012-08-28T15:39:10Z</updated>
+ <published>2012-08-28T15:39:10Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T15:39:10Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/63145d6ae2f34f29b18ca4d2ce1eea6f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/63145d6ae2f34f29b18ca4d2ce1eea6f</id>
+ <updated>2012-08-28T15:51:09Z</updated>
+ <published>2012-08-28T15:51:09Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:51:09Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/63145d6ae2f34f29b18ca4d2ce1eea6f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/63145d6ae2f34f29b18ca4d2ce1eea6f</id>
+ <updated>2012-08-28T15:51:37Z</updated>
+ <published>2012-08-28T15:51:37Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:51:37Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/63145d6ae2f34f29b18ca4d2ce1eea6f" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T15:51:55Z</updated>
+ <published>2012-08-28T15:51:55Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T15:51:55Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/63145d6ae2f34f29b18ca4d2ce1eea6f.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/69b8aec17ae5416082666b51debdeb3e.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/69b8aec17ae5416082666b51debdeb3e.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/69b8aec17ae5416082666b51debdeb3e.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : onlyCreator free poll (by not conntected user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
+ <subtitle>sondage libre dont les votes ne sont visibles que par le créateur ou un administrateur</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
+ <updated>2012-08-24T08:28:00Z</updated>
+ <published>2012-08-24T08:28:00Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T08:28:00Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'anonymous vote'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
+ <updated>2012-08-24T08:33:09Z</updated>
+ <published>2012-08-24T08:33:09Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T08:33:09Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
+ <updated>2012-08-24T08:42:02Z</updated>
+ <published>2012-08-24T08:42:02Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T08:42:02Z</dc:date>
+ </entry>
+ <entry>
+ <title>Delete vote of 'chemit+user(a)codelutin.com' for reason ''</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
+ <updated>2012-08-24T08:48:37Z</updated>
+ <published>2012-08-24T08:48:37Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T08:48:37Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
+ <updated>2012-08-24T08:50:58Z</updated>
+ <published>2012-08-24T08:50:58Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T08:50:58Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
+ <updated>2012-08-24T08:54:08Z</updated>
+ <published>2012-08-24T08:54:08Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T08:54:08Z</dc:date>
+ </entry>
+ <entry>
+ <title>Vote modified for 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
+ <updated>2012-08-24T08:54:45Z</updated>
+ <published>2012-08-24T08:54:45Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T08:54:45Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/69b8aec17ae5416082666b51debdeb3e" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/69b8aec17ae5416082666b51debdeb3e</id>
+ <updated>2012-08-28T08:14:22Z</updated>
+ <published>2012-08-28T08:14:22Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T08:14:22Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/69b8aec17ae5416082666b51debdeb3e" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/69b8aec17ae5416082666b51debdeb3e</id>
+ <updated>2012-08-28T08:14:57Z</updated>
+ <published>2012-08-28T08:14:57Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T08:14:57Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/69b8aec17ae5416082666b51debdeb3e" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T08:15:35Z</updated>
+ <published>2012-08-28T08:15:35Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T08:15:35Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/69b8aec17ae5416082666b51debdeb3e.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/6ba21b17a8ee4fe3acc2b33d971067fd.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/6ba21b17a8ee4fe3acc2b33d971067fd.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/6ba21b17a8ee4fe3acc2b33d971067fd.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : onlyCreator free poll (by conntected user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
+ <subtitle>sondage libre dont les votes ne sont visibles que par le créateur ou un administrateur (crée par un utilisateur connecté)</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
+ <updated>2012-08-24T09:22:00Z</updated>
+ <published>2012-08-24T09:22:00Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T09:22:00Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connecter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
+ <updated>2012-08-24T09:23:34Z</updated>
+ <published>2012-08-24T09:23:34Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T09:23:34Z</dc:date>
+ </entry>
+ <entry>
+ <title>Vote modified for 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
+ <updated>2012-08-24T09:25:15Z</updated>
+ <published>2012-08-24T09:25:15Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T09:25:15Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
+ <updated>2012-08-24T09:25:43Z</updated>
+ <published>2012-08-24T09:25:43Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T09:25:43Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
+ <updated>2012-08-24T09:27:46Z</updated>
+ <published>2012-08-24T09:27:46Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T09:27:46Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user2(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5</id>
+ <updated>2012-08-24T09:33:30Z</updated>
+ <published>2012-08-24T09:33:30Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T09:33:30Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/6ba21b17a8ee4fe3acc2b33d971067fd" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/6ba21b17a8ee4fe3acc2b33d971067fd</id>
+ <updated>2012-08-28T07:24:36Z</updated>
+ <published>2012-08-28T07:24:36Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T07:24:36Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/6ba21b17a8ee4fe3acc2b33d971067fd" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/6ba21b17a8ee4fe3acc2b33d971067fd</id>
+ <updated>2012-08-28T07:25:43Z</updated>
+ <published>2012-08-28T07:25:43Z</published>
+ <summary type="text">Poll result: a=1, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T07:25:43Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/6ba21b17a8ee4fe3acc2b33d971067fd" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T07:26:13Z</updated>
+ <published>2012-08-28T07:26:13Z</published>
+ <summary type="text">Poll result: a=1, b=2</summary>
+ <dc:date>2012-08-28T07:26:13Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/6ba21b17a8ee4fe3acc2b33d971067fd.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : onlyVoter free poll (by admin user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <subtitle>sondage libre dont les votes ne sont visibles que par les participants, créateurs et admin (crée par un administrateur)</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
- <updated>2012-08-24T09:51:17Z</updated>
- <published>2012-08-24T09:51:17Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T09:51:17Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
- <updated>2012-08-24T11:07:26Z</updated>
- <published>2012-08-24T11:07:26Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T11:07:26Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
- <updated>2012-08-24T11:09:10Z</updated>
- <published>2012-08-24T11:09:10Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T11:09:10Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
- <updated>2012-08-24T11:10:31Z</updated>
- <published>2012-08-24T11:10:31Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:creator />
- <dc:date>2012-08-24T11:10:31Z</dc:date>
- </entry>
- <entry>
- <title>Vote modified for 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
- <updated>2012-08-24T11:12:33Z</updated>
- <published>2012-08-24T11:12:33Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T11:12:33Z</dc:date>
- </entry>
- <entry>
- <title>Vote modified for 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
- <updated>2012-08-24T11:15:22Z</updated>
- <published>2012-08-24T11:15:22Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:creator />
- <dc:date>2012-08-24T11:15:22Z</dc:date>
- </entry>
- <entry>
- <title>Delete vote of 'not connected' for reason ''</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
- <updated>2012-08-24T12:16:02Z</updated>
- <published>2012-08-24T12:16:02Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:16:02Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T12:17:13Z</updated>
- <published>2012-08-24T12:17:13Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T12:17:13Z</dc:date>
- </entry>
-</feed>
-
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/732d3bd4825b49efae7e4af5de9e1536.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/732d3bd4825b49efae7e4af5de9e1536.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/732d3bd4825b49efae7e4af5de9e1536.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : creator only restricted poll (by not connected)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/732d3bd4825b49efae7e4af5de9e1536" />
+ <subtitle>sondage restreint creator only (tout le monde peut voter mais seul le créateur ou administrateur voit les votes) créé par un utilisateur non connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/732d3bd4825b49efae7e4af5de9e1536" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/732d3bd4825b49efae7e4af5de9e1536</id>
+ <updated>2012-08-28T13:13:45Z</updated>
+ <published>2012-08-28T13:13:45Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T13:13:45Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/732d3bd4825b49efae7e4af5de9e1536" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/732d3bd4825b49efae7e4af5de9e1536</id>
+ <updated>2012-08-28T13:21:51Z</updated>
+ <published>2012-08-28T13:21:51Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T13:21:51Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/732d3bd4825b49efae7e4af5de9e1536" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/732d3bd4825b49efae7e4af5de9e1536</id>
+ <updated>2012-08-28T13:22:35Z</updated>
+ <published>2012-08-28T13:22:35Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T13:22:35Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/732d3bd4825b49efae7e4af5de9e1536" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T13:23:03Z</updated>
+ <published>2012-08-28T13:23:03Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T13:23:03Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/732d3bd4825b49efae7e4af5de9e1536.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7d1d828b24e9450fa346321b32a1d463.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7d1d828b24e9450fa346321b32a1d463.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7d1d828b24e9450fa346321b32a1d463.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : anonymous restricted poll (by admin user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7d1d828b24e9450fa346321b32a1d463" />
+ <subtitle>sondage anonyme restreint (tout le monde peut voter mais personne ne voit les votes) créé par un utilisateur administrateur</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7d1d828b24e9450fa346321b32a1d463" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7d1d828b24e9450fa346321b32a1d463</id>
+ <updated>2012-08-28T15:39:25Z</updated>
+ <published>2012-08-28T15:39:25Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T15:39:25Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7d1d828b24e9450fa346321b32a1d463" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7d1d828b24e9450fa346321b32a1d463</id>
+ <updated>2012-08-28T16:01:32Z</updated>
+ <published>2012-08-28T16:01:32Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T16:01:32Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7d1d828b24e9450fa346321b32a1d463" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7d1d828b24e9450fa346321b32a1d463</id>
+ <updated>2012-08-28T16:01:42Z</updated>
+ <published>2012-08-28T16:01:42Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T16:01:42Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7d1d828b24e9450fa346321b32a1d463" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T16:01:52Z</updated>
+ <published>2012-08-28T16:01:52Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T16:01:52Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7d1d828b24e9450fa346321b32a1d463.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/80f4369d988a40e89b200e22e22e3a52.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/80f4369d988a40e89b200e22e22e3a52.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/80f4369d988a40e89b200e22e22e3a52.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : anonymous restricted poll (by not connected)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/80f4369d988a40e89b200e22e22e3a52" />
+ <subtitle>sondage anonyme restreint (tout le monde peut voter mais personne ne voit les votes) créé par un utilisateur non connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/80f4369d988a40e89b200e22e22e3a52" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/80f4369d988a40e89b200e22e22e3a52</id>
+ <updated>2012-08-28T15:38:35Z</updated>
+ <published>2012-08-28T15:38:35Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T15:38:35Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/80f4369d988a40e89b200e22e22e3a52" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/80f4369d988a40e89b200e22e22e3a52</id>
+ <updated>2012-08-28T15:40:26Z</updated>
+ <published>2012-08-28T15:40:26Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:40:26Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/80f4369d988a40e89b200e22e22e3a52" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/80f4369d988a40e89b200e22e22e3a52</id>
+ <updated>2012-08-28T15:41:06Z</updated>
+ <published>2012-08-28T15:41:06Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:41:06Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/80f4369d988a40e89b200e22e22e3a52" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T15:41:22Z</updated>
+ <published>2012-08-28T15:41:22Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T15:41:22Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/80f4369d988a40e89b200e22e22e3a52.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : onlyVoter free poll (by admin user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
- <subtitle>sondage libre dont les votes ne sont visibles que par les participants, créateurs et admin</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba</id>
- <updated>2012-08-24T09:48:47Z</updated>
- <published>2012-08-24T09:48:47Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T09:48:47Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba</id>
- <updated>2012-08-24T10:13:26Z</updated>
- <published>2012-08-24T10:13:26Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T10:13:26Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba</id>
- <updated>2012-08-24T11:02:46Z</updated>
- <published>2012-08-24T11:02:46Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T11:02:46Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T11:05:11Z</updated>
- <published>2012-08-24T11:05:11Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T11:05:11Z</dc:date>
- </entry>
-</feed>
-
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : anonymous free poll (by admin user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
- <subtitle>sondage anonyme libre (tout le monde peut voter mais personne ne voit les votes) créé par un administrateur</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c</id>
- <updated>2012-08-23T22:28:04Z</updated>
- <published>2012-08-23T22:28:04Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-23T22:28:04Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c</id>
- <updated>2012-08-23T22:28:59Z</updated>
- <published>2012-08-23T22:28:59Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-23T22:28:59Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c</id>
- <updated>2012-08-23T22:29:49Z</updated>
- <published>2012-08-23T22:29:49Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-23T22:29:49Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
- <author>
- <name />
- </author>
- <updated>2012-08-23T22:34:35Z</updated>
- <published>2012-08-23T22:34:35Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-23T22:34:35Z</dc:date>
- </entry>
-</feed>
-
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8b781e56d4d545db82b2dc301a32a7de.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8b781e56d4d545db82b2dc301a32a7de.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8b781e56d4d545db82b2dc301a32a7de.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : anonymous free poll (by admin user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
+ <subtitle>sondage anonyme libre (tout le monde peut voter mais personne ne voit les votes) créé par un administrateur</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c</id>
+ <updated>2012-08-23T22:28:04Z</updated>
+ <published>2012-08-23T22:28:04Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-23T22:28:04Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c</id>
+ <updated>2012-08-23T22:28:59Z</updated>
+ <published>2012-08-23T22:28:59Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:28:59Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c</id>
+ <updated>2012-08-23T22:29:49Z</updated>
+ <published>2012-08-23T22:29:49Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:29:49Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c</id>
+ <updated>2012-08-23T22:34:35Z</updated>
+ <published>2012-08-23T22:34:35Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:34:35Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8b781e56d4d545db82b2dc301a32a7de" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8b781e56d4d545db82b2dc301a32a7de</id>
+ <updated>2012-08-28T07:27:37Z</updated>
+ <published>2012-08-28T07:27:37Z</published>
+ <summary type="text">Poll result: a=0, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T07:27:37Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8b781e56d4d545db82b2dc301a32a7de" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8b781e56d4d545db82b2dc301a32a7de</id>
+ <updated>2012-08-28T07:28:08Z</updated>
+ <published>2012-08-28T07:28:08Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T07:28:08Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8b781e56d4d545db82b2dc301a32a7de" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T07:28:31Z</updated>
+ <published>2012-08-28T07:28:31Z</published>
+ <summary type="text">Poll result: a=1, b=2</summary>
+ <dc:date>2012-08-28T07:28:31Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8b781e56d4d545db82b2dc301a32a7de.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8d904a3490e94ef2a4368b62afc83402.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8d904a3490e94ef2a4368b62afc83402.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8d904a3490e94ef2a4368b62afc83402.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : voter only restricted poll (by connected)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8d904a3490e94ef2a4368b62afc83402" />
+ <subtitle>sondage restreint voter only (tout le monde peut voter mais seul les votants, le créateur ou administrateur voit les votes) créé par un utilisateur connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8d904a3490e94ef2a4368b62afc83402" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8d904a3490e94ef2a4368b62afc83402</id>
+ <updated>2012-08-28T14:58:15Z</updated>
+ <published>2012-08-28T14:58:15Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T14:58:15Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8d904a3490e94ef2a4368b62afc83402" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8d904a3490e94ef2a4368b62afc83402</id>
+ <updated>2012-08-28T15:03:42Z</updated>
+ <published>2012-08-28T15:03:42Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:03:42Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8d904a3490e94ef2a4368b62afc83402" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/8d904a3490e94ef2a4368b62afc83402</id>
+ <updated>2012-08-28T15:03:50Z</updated>
+ <published>2012-08-28T15:03:50Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:03:50Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8d904a3490e94ef2a4368b62afc83402" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T15:04:01Z</updated>
+ <published>2012-08-28T15:04:01Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T15:04:01Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8d904a3490e94ef2a4368b62afc83402.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : onlyCreator free poll (by admin user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
- <subtitle>sondage libre dont les votes ne sont visibles que par le créateur ou un administrateur (crée par un administrateur)</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0</id>
- <updated>2012-08-24T09:36:06Z</updated>
- <published>2012-08-24T09:36:06Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T09:36:06Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0</id>
- <updated>2012-08-24T09:37:01Z</updated>
- <published>2012-08-24T09:37:01Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T09:37:01Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0</id>
- <updated>2012-08-24T09:38:20Z</updated>
- <published>2012-08-24T09:38:20Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T09:38:20Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T09:40:27Z</updated>
- <published>2012-08-24T09:40:27Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T09:40:27Z</dc:date>
- </entry>
-</feed>
-
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a13d4759209a4b919c4a63ee2a0003dc.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a13d4759209a4b919c4a63ee2a0003dc.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a13d4759209a4b919c4a63ee2a0003dc.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : voter only restricted poll (by notconnected)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a13d4759209a4b919c4a63ee2a0003dc" />
+ <subtitle>sondage restreint voter only (tout le monde peut voter mais seul les votants, le créateur ou administrateur voit les votes) créé par un utilisateur non connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a13d4759209a4b919c4a63ee2a0003dc" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/a13d4759209a4b919c4a63ee2a0003dc</id>
+ <updated>2012-08-28T14:57:23Z</updated>
+ <published>2012-08-28T14:57:23Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T14:57:23Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a13d4759209a4b919c4a63ee2a0003dc" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/a13d4759209a4b919c4a63ee2a0003dc</id>
+ <updated>2012-08-28T15:01:27Z</updated>
+ <published>2012-08-28T15:01:27Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:01:27Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a13d4759209a4b919c4a63ee2a0003dc" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/a13d4759209a4b919c4a63ee2a0003dc</id>
+ <updated>2012-08-28T15:01:44Z</updated>
+ <published>2012-08-28T15:01:44Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:01:44Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a13d4759209a4b919c4a63ee2a0003dc" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T15:01:55Z</updated>
+ <published>2012-08-28T15:01:55Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T15:01:55Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a13d4759209a4b919c4a63ee2a0003dc.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/ac92041cf86f4bf9b3b5accfdd63330b.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/ac92041cf86f4bf9b3b5accfdd63330b.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/ac92041cf86f4bf9b3b5accfdd63330b.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : onlyVoter free poll (by connected user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
+ <subtitle>sondage libre dont les votes ne sont visibles que par les participants, créateurs et admin (crée par un utilisateur connecté)</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
+ <updated>2012-08-24T09:50:21Z</updated>
+ <published>2012-08-24T09:50:21Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T09:50:21Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
+ <updated>2012-08-24T12:27:30Z</updated>
+ <published>2012-08-24T12:27:30Z</published>
+ <summary type="text">Poll result: a=0, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:27:30Z</dc:date>
+ </entry>
+ <entry>
+ <title>Vote modified for 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
+ <updated>2012-08-24T12:29:20Z</updated>
+ <published>2012-08-24T12:29:20Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:29:20Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
+ <updated>2012-08-24T12:29:26Z</updated>
+ <published>2012-08-24T12:29:26Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:29:26Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
+ <updated>2012-08-24T12:31:23Z</updated>
+ <published>2012-08-24T12:31:23Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:31:23Z</dc:date>
+ </entry>
+ <entry>
+ <title>Vote modified for 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
+ <updated>2012-08-24T12:34:12Z</updated>
+ <published>2012-08-24T12:34:12Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:34:12Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/ac92041cf86f4bf9b3b5accfdd63330b" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/ac92041cf86f4bf9b3b5accfdd63330b</id>
+ <updated>2012-08-28T10:10:38Z</updated>
+ <published>2012-08-28T10:10:38Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T10:10:38Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/ac92041cf86f4bf9b3b5accfdd63330b" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/ac92041cf86f4bf9b3b5accfdd63330b</id>
+ <updated>2012-08-28T10:11:14Z</updated>
+ <published>2012-08-28T10:11:14Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T10:11:14Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/ac92041cf86f4bf9b3b5accfdd63330b" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T10:11:32Z</updated>
+ <published>2012-08-28T10:11:32Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T10:11:32Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/ac92041cf86f4bf9b3b5accfdd63330b.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/aeff6e804f244b1c8e78fec93262c50f.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/aeff6e804f244b1c8e78fec93262c50f.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/aeff6e804f244b1c8e78fec93262c50f.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : voter only restricted poll (by admin)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/aeff6e804f244b1c8e78fec93262c50f" />
+ <subtitle>sondage restreint voter only (tout le monde peut voter mais seul les votants, le créateur ou administrateur voit les votes) créé par un utilisateur administrateur</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/aeff6e804f244b1c8e78fec93262c50f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/aeff6e804f244b1c8e78fec93262c50f</id>
+ <updated>2012-08-28T14:59:26Z</updated>
+ <published>2012-08-28T14:59:26Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T14:59:26Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/aeff6e804f244b1c8e78fec93262c50f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/aeff6e804f244b1c8e78fec93262c50f</id>
+ <updated>2012-08-28T15:05:33Z</updated>
+ <published>2012-08-28T15:05:33Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:05:33Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/aeff6e804f244b1c8e78fec93262c50f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/aeff6e804f244b1c8e78fec93262c50f</id>
+ <updated>2012-08-28T15:06:46Z</updated>
+ <published>2012-08-28T15:06:46Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:06:46Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/aeff6e804f244b1c8e78fec93262c50f" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T15:06:56Z</updated>
+ <published>2012-08-28T15:06:56Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T15:06:56Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/aeff6e804f244b1c8e78fec93262c50f.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : onlyVoter free poll (by connected user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
- <subtitle>sondage libre dont les votes ne sont visibles que par les participants, créateurs et admin (crée par un utilisateur connecté)</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
- <updated>2012-08-24T09:50:21Z</updated>
- <published>2012-08-24T09:50:21Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T09:50:21Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
- <updated>2012-08-24T12:27:30Z</updated>
- <published>2012-08-24T12:27:30Z</published>
- <summary type="text">Poll result: a=0, b=0</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:27:30Z</dc:date>
- </entry>
- <entry>
- <title>Vote modified for 'not connected'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
- <updated>2012-08-24T12:29:20Z</updated>
- <published>2012-08-24T12:29:20Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:29:20Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
- <updated>2012-08-24T12:29:26Z</updated>
- <published>2012-08-24T12:29:26Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:29:26Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f</id>
- <updated>2012-08-24T12:31:23Z</updated>
- <published>2012-08-24T12:31:23Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T12:31:23Z</dc:date>
- </entry>
- <entry>
- <title>Vote modified for 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T12:34:12Z</updated>
- <published>2012-08-24T12:34:12Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T12:34:12Z</dc:date>
- </entry>
-</feed>
-
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b38d0d680fb84ea891c2dd0bf4698a1f.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b38d0d680fb84ea891c2dd0bf4698a1f.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b38d0d680fb84ea891c2dd0bf4698a1f.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : everybody free poll (by not connected user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
+ <subtitle>sondage libre dont les votes sont visibles par tous (crée par un utilisateur non connecté)</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
+ <updated>2012-08-24T09:53:11Z</updated>
+ <published>2012-08-24T09:53:11Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T09:53:11Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
+ <updated>2012-08-24T12:18:52Z</updated>
+ <published>2012-08-24T12:18:52Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:18:52Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
+ <updated>2012-08-24T12:20:02Z</updated>
+ <published>2012-08-24T12:20:02Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:20:02Z</dc:date>
+ </entry>
+ <entry>
+ <title>Vote modified for 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
+ <updated>2012-08-24T12:24:43Z</updated>
+ <published>2012-08-24T12:24:43Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:24:43Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6</id>
+ <updated>2012-08-24T12:25:10Z</updated>
+ <published>2012-08-24T12:25:10Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:25:10Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b38d0d680fb84ea891c2dd0bf4698a1f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b38d0d680fb84ea891c2dd0bf4698a1f</id>
+ <updated>2012-08-28T09:16:01Z</updated>
+ <published>2012-08-28T09:16:01Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:16:01Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected2(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b38d0d680fb84ea891c2dd0bf4698a1f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b38d0d680fb84ea891c2dd0bf4698a1f</id>
+ <updated>2012-08-28T09:16:18Z</updated>
+ <published>2012-08-28T09:16:18Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:16:18Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b38d0d680fb84ea891c2dd0bf4698a1f" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/b38d0d680fb84ea891c2dd0bf4698a1f</id>
+ <updated>2012-08-28T09:17:07Z</updated>
+ <published>2012-08-28T09:17:07Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:17:07Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b38d0d680fb84ea891c2dd0bf4698a1f" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T09:17:36Z</updated>
+ <published>2012-08-28T09:17:36Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T09:17:36Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b38d0d680fb84ea891c2dd0bf4698a1f.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c19ba513378b4c63873f6948bbf3dc72.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c19ba513378b4c63873f6948bbf3dc72.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c19ba513378b4c63873f6948bbf3dc72.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : everybody restricted poll (by not connected)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c19ba513378b4c63873f6948bbf3dc72" />
+ <subtitle>sondage restreint everybody (tout le monde peut voter et voir les votes) créé par un utilisateur non connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c19ba513378b4c63873f6948bbf3dc72" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/c19ba513378b4c63873f6948bbf3dc72</id>
+ <updated>2012-08-28T15:20:29Z</updated>
+ <published>2012-08-28T15:20:29Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T15:20:29Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c19ba513378b4c63873f6948bbf3dc72" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/c19ba513378b4c63873f6948bbf3dc72</id>
+ <updated>2012-08-28T15:23:08Z</updated>
+ <published>2012-08-28T15:23:08Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:23:08Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c19ba513378b4c63873f6948bbf3dc72" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/c19ba513378b4c63873f6948bbf3dc72</id>
+ <updated>2012-08-28T15:23:17Z</updated>
+ <published>2012-08-28T15:23:17Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:23:17Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c19ba513378b4c63873f6948bbf3dc72" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T15:23:25Z</updated>
+ <published>2012-08-28T15:23:25Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T15:23:25Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c19ba513378b4c63873f6948bbf3dc72.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c672a1f964904c769fcb2235de46bafa.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c672a1f964904c769fcb2235de46bafa.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c672a1f964904c769fcb2235de46bafa.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : onlyVoter free poll (by admin user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <subtitle>sondage libre dont les votes ne sont visibles que par les participants, créateurs et admin (crée par un administrateur)</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
+ <updated>2012-08-24T09:51:17Z</updated>
+ <published>2012-08-24T09:51:17Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-24T09:51:17Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
+ <updated>2012-08-24T11:07:26Z</updated>
+ <published>2012-08-24T11:07:26Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T11:07:26Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
+ <updated>2012-08-24T11:09:10Z</updated>
+ <published>2012-08-24T11:09:10Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T11:09:10Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
+ <updated>2012-08-24T11:10:31Z</updated>
+ <published>2012-08-24T11:10:31Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T11:10:31Z</dc:date>
+ </entry>
+ <entry>
+ <title>Vote modified for 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
+ <updated>2012-08-24T11:12:33Z</updated>
+ <published>2012-08-24T11:12:33Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T11:12:33Z</dc:date>
+ </entry>
+ <entry>
+ <title>Vote modified for 'admin(a)domain.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
+ <updated>2012-08-24T11:15:22Z</updated>
+ <published>2012-08-24T11:15:22Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T11:15:22Z</dc:date>
+ </entry>
+ <entry>
+ <title>Delete vote of 'not connected' for reason ''</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
+ <updated>2012-08-24T12:16:02Z</updated>
+ <published>2012-08-24T12:16:02Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:16:02Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'not connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98</id>
+ <updated>2012-08-24T12:17:13Z</updated>
+ <published>2012-08-24T12:17:13Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-24T12:17:13Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c672a1f964904c769fcb2235de46bafa" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/c672a1f964904c769fcb2235de46bafa</id>
+ <updated>2012-08-28T09:21:04Z</updated>
+ <published>2012-08-28T09:21:04Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:21:04Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c672a1f964904c769fcb2235de46bafa" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/c672a1f964904c769fcb2235de46bafa</id>
+ <updated>2012-08-28T09:21:23Z</updated>
+ <published>2012-08-28T09:21:23Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T09:21:23Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c672a1f964904c769fcb2235de46bafa" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T09:21:29Z</updated>
+ <published>2012-08-28T09:21:29Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T09:21:29Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c672a1f964904c769fcb2235de46bafa.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c881d4c8f8a74a2198d292d05489097a.xml (from rev 3642, trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml)
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c881d4c8f8a74a2198d292d05489097a.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c881d4c8f8a74a2198d292d05489097a.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : anonymous free poll (by not connected user)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
+ <subtitle>sondage anonyme libre (tout le monde peut voter mais personne ne voit les votes) créé par un utilisateur anonyme</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87</id>
+ <updated>2012-08-23T22:19:42Z</updated>
+ <published>2012-08-23T22:19:42Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-23T22:19:42Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87</id>
+ <updated>2012-08-23T22:20:28Z</updated>
+ <published>2012-08-23T22:20:28Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:20:28Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87</id>
+ <updated>2012-08-23T22:21:23Z</updated>
+ <published>2012-08-23T22:21:23Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:21:23Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'Anonymous voter'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87</id>
+ <updated>2012-08-23T22:22:09Z</updated>
+ <published>2012-08-23T22:22:09Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:creator />
+ <dc:date>2012-08-23T22:22:09Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c881d4c8f8a74a2198d292d05489097a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/c881d4c8f8a74a2198d292d05489097a</id>
+ <updated>2012-08-28T08:07:44Z</updated>
+ <published>2012-08-28T08:07:44Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T08:07:44Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+notconnected2(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c881d4c8f8a74a2198d292d05489097a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/c881d4c8f8a74a2198d292d05489097a</id>
+ <updated>2012-08-28T08:11:16Z</updated>
+ <published>2012-08-28T08:11:16Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T08:11:16Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+user(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c881d4c8f8a74a2198d292d05489097a" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/c881d4c8f8a74a2198d292d05489097a</id>
+ <updated>2012-08-28T08:12:15Z</updated>
+ <published>2012-08-28T08:12:15Z</published>
+ <summary type="text">Poll result: a=2, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T08:12:15Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'chemit+admin(a)codelutin.com'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/c881d4c8f8a74a2198d292d05489097a" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T08:12:36Z</updated>
+ <published>2012-08-28T08:12:36Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T08:12:36Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/c881d4c8f8a74a2198d292d05489097a.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : anonymous free poll (by not connected user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
- <subtitle>sondage anonyme libre (tout le monde peut voter mais personne ne voit les votes) créé par un utilisateur anonyme</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87</id>
- <updated>2012-08-23T22:19:42Z</updated>
- <published>2012-08-23T22:19:42Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-23T22:19:42Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87</id>
- <updated>2012-08-23T22:20:28Z</updated>
- <published>2012-08-23T22:20:28Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-23T22:20:28Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87</id>
- <updated>2012-08-23T22:21:23Z</updated>
- <published>2012-08-23T22:21:23Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-23T22:21:23Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
- <author>
- <name />
- </author>
- <updated>2012-08-23T22:22:09Z</updated>
- <published>2012-08-23T22:22:09Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-23T22:22:09Z</dc:date>
- </entry>
-</feed>
-
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e4fccb937a0b4bf1a008d17c1234ce45.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e4fccb937a0b4bf1a008d17c1234ce45.xml (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e4fccb937a0b4bf1a008d17c1234ce45.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <title>Pollen : everybody restricted poll (by connected)</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e4fccb937a0b4bf1a008d17c1234ce45" />
+ <subtitle>sondage restreint everybody (tout le monde peut voter et voir les votes) créé par un utilisateur connecté</subtitle>
+ <entry>
+ <title />
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e4fccb937a0b4bf1a008d17c1234ce45" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e4fccb937a0b4bf1a008d17c1234ce45</id>
+ <updated>2012-08-28T15:21:19Z</updated>
+ <published>2012-08-28T15:21:19Z</published>
+ <summary type="text" />
+ <dc:creator />
+ <dc:date>2012-08-28T15:21:19Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'notconnected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e4fccb937a0b4bf1a008d17c1234ce45" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e4fccb937a0b4bf1a008d17c1234ce45</id>
+ <updated>2012-08-28T15:24:59Z</updated>
+ <published>2012-08-28T15:24:59Z</published>
+ <summary type="text">Poll result: a=1, b=0</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:24:59Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'connected'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e4fccb937a0b4bf1a008d17c1234ce45" />
+ <author>
+ <name />
+ </author>
+ <id>http://localhost:8080/pollen/poll/votefor/e4fccb937a0b4bf1a008d17c1234ce45</id>
+ <updated>2012-08-28T15:25:10Z</updated>
+ <published>2012-08-28T15:25:10Z</published>
+ <summary type="text">Poll result: a=1, b=1</summary>
+ <dc:creator />
+ <dc:date>2012-08-28T15:25:10Z</dc:date>
+ </entry>
+ <entry>
+ <title>New vote from 'admin'</title>
+ <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e4fccb937a0b4bf1a008d17c1234ce45" />
+ <author>
+ <name />
+ </author>
+ <updated>2012-08-28T15:25:22Z</updated>
+ <published>2012-08-28T15:25:22Z</published>
+ <summary type="text">Poll result: a=2, b=2</summary>
+ <dc:date>2012-08-28T15:25:22Z</dc:date>
+ </entry>
+</feed>
+
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e4fccb937a0b4bf1a008d17c1234ce45.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,119 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : onlyCreator free poll (by not conntected user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
- <subtitle>sondage libre dont les votes ne sont visibles que par le créateur ou un administrateur</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
- <updated>2012-08-24T08:28:00Z</updated>
- <published>2012-08-24T08:28:00Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-24T08:28:00Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'anonymous vote'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
- <updated>2012-08-24T08:33:09Z</updated>
- <published>2012-08-24T08:33:09Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T08:33:09Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
- <updated>2012-08-24T08:42:02Z</updated>
- <published>2012-08-24T08:42:02Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T08:42:02Z</dc:date>
- </entry>
- <entry>
- <title>Delete vote of 'chemit+user(a)codelutin.com' for reason ''</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
- <updated>2012-08-24T08:48:37Z</updated>
- <published>2012-08-24T08:48:37Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T08:48:37Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'chemit+user(a)codelutin.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
- <updated>2012-08-24T08:50:58Z</updated>
- <published>2012-08-24T08:50:58Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T08:50:58Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6</id>
- <updated>2012-08-24T08:54:08Z</updated>
- <published>2012-08-24T08:54:08Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-24T08:54:08Z</dc:date>
- </entry>
- <entry>
- <title>Vote modified for 'admin(a)domain.com'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
- <author>
- <name />
- </author>
- <updated>2012-08-24T08:54:45Z</updated>
- <published>2012-08-24T08:54:45Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-24T08:54:45Z</dc:date>
- </entry>
-</feed>
-
Deleted: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml 2012-08-28 16:23:01 UTC (rev 3645)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml 2012-08-28 16:26:00 UTC (rev 3646)
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Pollen :: UI (struts2)
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
-
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <title>Pollen : anonymous free poll (by connected user)</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
- <subtitle>sondage anonyme libre (tout le monde peut voter mais personne ne voit les votes) créé par un utilisateur connecté</subtitle>
- <entry>
- <title />
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a</id>
- <updated>2012-08-23T22:23:36Z</updated>
- <published>2012-08-23T22:23:36Z</published>
- <summary type="text" />
- <dc:creator />
- <dc:date>2012-08-23T22:23:36Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a</id>
- <updated>2012-08-23T22:24:13Z</updated>
- <published>2012-08-23T22:24:13Z</published>
- <summary type="text">Poll result: a=1, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-23T22:24:13Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
- <author>
- <name />
- </author>
- <id>http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a</id>
- <updated>2012-08-23T22:25:09Z</updated>
- <published>2012-08-23T22:25:09Z</published>
- <summary type="text">Poll result: a=2, b=1</summary>
- <dc:creator />
- <dc:date>2012-08-23T22:25:09Z</dc:date>
- </entry>
- <entry>
- <title>New vote from 'Anonymous voter'</title>
- <link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
- <author>
- <name />
- </author>
- <updated>2012-08-23T22:26:18Z</updated>
- <published>2012-08-23T22:26:18Z</published>
- <summary type="text">Poll result: a=2, b=2</summary>
- <dc:date>2012-08-23T22:26:18Z</dc:date>
- </entry>
-</feed>
-
1
0
r3645 - in trunk/pollen-ui-struts2/src/it/pollen-ui-it: . src src/test src/test/resources
by tchemit@users.chorem.org 28 Aug '12
by tchemit@users.chorem.org 28 Aug '12
28 Aug '12
Author: tchemit
Date: 2012-08-28 18:23:01 +0200 (Tue, 28 Aug 2012)
New Revision: 3645
Url: http://chorem.org/repositories/revision/pollen/3645
Log:
add default test db with default users (user, user2 and admin)
Added:
trunk/pollen-ui-struts2/src/it/pollen-ui-it/src/
trunk/pollen-ui-struts2/src/it/pollen-ui-it/src/test/
trunk/pollen-ui-struts2/src/it/pollen-ui-it/src/test/resources/
trunk/pollen-ui-struts2/src/it/pollen-ui-it/src/test/resources/emptydbWithUsers.h2.db
Added: trunk/pollen-ui-struts2/src/it/pollen-ui-it/src/test/resources/emptydbWithUsers.h2.db
===================================================================
(Binary files differ)
Property changes on: trunk/pollen-ui-struts2/src/it/pollen-ui-it/src/test/resources/emptydbWithUsers.h2.db
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
1
0
Author: tchemit
Date: 2012-08-28 18:22:16 +0200 (Tue, 28 Aug 2012)
New Revision: 3644
Url: http://chorem.org/repositories/revision/pollen/3644
Log:
change jetty key (to make possible to run default server an dit one at the same time)
Modified:
trunk/pollen-ui-struts2/pom.xml
Modified: trunk/pollen-ui-struts2/pom.xml
===================================================================
--- trunk/pollen-ui-struts2/pom.xml 2012-08-27 19:00:59 UTC (rev 3643)
+++ trunk/pollen-ui-struts2/pom.xml 2012-08-28 16:22:16 UTC (rev 3644)
@@ -348,8 +348,8 @@
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
- <stopKey>A</stopKey>
- <stopPort>1269</stopPort>
+ <stopKey>B</stopKey>
+ <stopPort>1270</stopPort>
<contextXml>${basedir}/src/jetty/jetty-context.xml</contextXml>
<webAppConfig>
<contextPath>/${defaultWebContextPath}</contextPath>
1
0
r3643 - trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db
by tchemit@users.chorem.org 27 Aug '12
by tchemit@users.chorem.org 27 Aug '12
27 Aug '12
Author: tchemit
Date: 2012-08-27 21:00:59 +0200 (Mon, 27 Aug 2012)
New Revision: 3643
Url: http://chorem.org/repositories/revision/pollen/3643
Log:
change admin email
Modified:
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db/pollendb.h2.db
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db/pollendb.h2.db
===================================================================
(Binary files differ)
1
0
Author: tchemit
Date: 2012-08-27 14:08:51 +0200 (Mon, 27 Aug 2012)
New Revision: 3642
Url: http://chorem.org/repositories/revision/pollen/3642
Log:
drivers are only init once by it + improve test skeletons
Added:
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/java-info.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/java-info.java
trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/CleanDrivers.java
Removed:
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/
Modified:
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml
trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java
Copied: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollIT.java (from rev 3640, trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,307 @@
+package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+
+import java.util.List;
+
+/**
+ * Test the well work of a Free Date poll creation page.
+ * <p/>
+ * Tested cases :
+ * <ul>
+ * <li>Classic creation with filled mandatory fields (a title and at least 2 choices(OK)</li>
+ * <li>Classic creation with no title (KO)</li>
+ * <li>Classic creation with no choice (KO)</li>
+ * <li>Classic creation with two same choices (KO)</li>
+ * <li>Classic creation with invalid date format for one of the choices (KO)</li>
+ * </ul>
+ *
+ * @author ymartel <martel(a)codelutin.com>
+ * @since 1.4
+ */
+public class CreateFreeDatePollIT extends AbstractPollenIT {
+
+ public CreateFreeDatePollIT(Class<? extends WebDriver> driverType) {
+ super(driverType);
+ }
+
+ /**
+ * This test create a simple free text poll.
+ * At the end, should be on summary page.
+ */
+ @Test
+ public void createSimpleFreeDatePoll() {
+
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ titleElement.sendKeys("My Date Poll");
+
+ // Switch to Date choices
+ List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
+ Assert.assertEquals(3, choiceTypesElement.size());
+ WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
+ Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
+ Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
+ Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
+ dateChoiceTypeElement.click();
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("dateChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ choiceOneElement.sendKeys(date(1431, 5, 30));
+
+ // Set second choice
+ WebElement choiceTwoElement = findElement(By.name("dateChoice_1.name"));
+ Assert.assertEquals("input", choiceTwoElement.getTagName());
+ Assert.assertTrue(choiceTwoElement.isDisplayed());
+ choiceTwoElement.sendKeys(date(1789, 8, 26));
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.summaryPoll(), false);
+ }
+
+ /**
+ * This test create a free date poll with two choices but no title.
+ * At the end, should be still on create page, with an error message.
+ */
+ @Test
+ public void createSimpleFreeDatePollWithoutTitle() {
+
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Switch to Date choices
+ List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
+ Assert.assertEquals(3, choiceTypesElement.size());
+ WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
+ Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
+ Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
+ Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
+ dateChoiceTypeElement.click();
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("dateChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ String choiceOneValue = date(1431, 5, 30);
+ choiceOneElement.sendKeys(choiceOneValue);
+
+ // Set second choice
+ WebElement choiceTwoElement = findElement(By.name("dateChoice_1.name"));
+ Assert.assertEquals("input", choiceTwoElement.getTagName());
+ Assert.assertTrue(choiceTwoElement.isDisplayed());
+ String choiceTwoValue = date(1789, 8, 26);
+ choiceTwoElement.sendKeys(choiceTwoValue);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // Title is missing, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check an error message has been displayed
+ WebElement titleError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(titleError);
+
+ // Check that choice fields are not lost
+ choiceOneElement = findElement(By.name("dateChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ Assert.assertEquals(choiceOneValue, choiceOneElement.getAttribute("value"));
+ choiceTwoElement = findElement(By.name("dateChoice_1.name"));
+ Assert.assertEquals("input", choiceTwoElement.getTagName());
+ Assert.assertTrue(choiceTwoElement.isDisplayed());
+ Assert.assertEquals(choiceTwoValue, choiceTwoElement.getAttribute("value"));
+
+ }
+
+ /**
+ * This test create a free date poll without choices.
+ * At the end, should be still on create page, with an error message.
+ */
+ @Test
+ public void createSimpleFreeDatePollWithoutChoice() {
+
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ String pollTitle = "My Date Poll";
+ titleElement.sendKeys(pollTitle);
+
+ // Switch to Date choices
+ List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
+ Assert.assertEquals(3, choiceTypesElement.size());
+ WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
+ Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
+ Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
+ Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
+ dateChoiceTypeElement.click();
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // No choices, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check that title field is not lost
+ titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
+
+ // Check an error message has been displayed for choices
+ WebElement choicesError = findElement(By.id("poll_choices_error"));
+ Assert.assertNotNull(choicesError);
+
+ // Check that we are still on Date choices
+ choiceTypesElement = findElements(By.name("poll.choiceType"));
+ Assert.assertEquals(3, choiceTypesElement.size());
+ dateChoiceTypeElement = choiceTypesElement.get(1);
+ Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
+ Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
+ Assert.assertEquals("true", dateChoiceTypeElement.getAttribute("checked"));
+
+ }
+
+ /**
+ * This test create a free date poll with a same value for two choices.
+ * At the end, should be still on create page, with an error message.
+ */
+ @Test
+ public void createSimpleFreeDatePollWithTwoSameDate() {
+
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ titleElement.sendKeys("My Date Poll");
+
+ // Switch to Date choices
+ List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
+ Assert.assertEquals(3, choiceTypesElement.size());
+ WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
+ Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
+ Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
+ Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
+ dateChoiceTypeElement.click();
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("dateChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ String date = date(1431, 5, 30);
+ choiceOneElement.sendKeys(date);
+
+ // Set second choice
+ WebElement choiceTwoElement = findElement(By.name("dateChoice_1.name"));
+ Assert.assertEquals("input", choiceTwoElement.getTagName());
+ Assert.assertTrue(choiceTwoElement.isDisplayed());
+ choiceTwoElement.sendKeys(date);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // An error, should stay on create page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check an error message has been displayed for choices
+ WebElement choicesError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(choicesError);
+ }
+
+ /**
+ * This test create a free date poll with a bas format for one of the choices.
+ * At the end, should be still on create page, with an error message.
+ */
+ @Test
+ public void createSimpleFreeDatePollWithBadFormatDate() {
+
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ titleElement.sendKeys("My Date Poll");
+
+ // Switch to Date choices
+ List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
+ Assert.assertEquals(3, choiceTypesElement.size());
+ WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
+ Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
+ Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
+ Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
+ dateChoiceTypeElement.click();
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("dateChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ choiceOneElement.sendKeys(date(1431, 5, 30));
+
+ // Set second choice
+ WebElement choiceTwoElement = findElement(By.name("dateChoice_1.name"));
+ Assert.assertEquals("input", choiceTwoElement.getTagName());
+ Assert.assertTrue(choiceTwoElement.isDisplayed());
+ choiceTwoElement.sendKeys("28 08 1789");
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // An error, should stay on create page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check an error message has been displayed for choices
+ WebElement choicesError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(choicesError);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java 2012-08-27 09:33:29 UTC (rev 3641)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,307 +0,0 @@
-package org.chorem.pollen.ui.it;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-import java.util.List;
-
-/**
- * Test the well work of a Free Date poll creation page.
- * <p/>
- * Tested cases :
- * <ul>
- * <li>Classic creation with filled mandatory fields (a title and at least 2 choices(OK)</li>
- * <li>Classic creation with no title (KO)</li>
- * <li>Classic creation with no choice (KO)</li>
- * <li>Classic creation with two same choices (KO)</li>
- * <li>Classic creation with invalid date format for one of the choices (KO)</li>
- * </ul>
- *
- * @author ymartel <martel(a)codelutin.com>
- * @since 1.4
- */
-public class CreateFreeDatePollSIT extends AbstractPollenIT {
-
- public CreateFreeDatePollSIT(Class<? extends WebDriver> driverType) {
- super(driverType);
- }
-
- /**
- * This test create a simple free text poll.
- * At the end, should be on summary page.
- */
- @Test
- public void createSimpleFreeDatePoll() {
-
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- titleElement.sendKeys("My Date Poll");
-
- // Switch to Date choices
- List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
- Assert.assertEquals(3, choiceTypesElement.size());
- WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
- Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
- Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
- Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
- dateChoiceTypeElement.click();
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("dateChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- choiceOneElement.sendKeys(date(1431, 5, 30));
-
- // Set second choice
- WebElement choiceTwoElement = findElement(By.name("dateChoice_1.name"));
- Assert.assertEquals("input", choiceTwoElement.getTagName());
- Assert.assertTrue(choiceTwoElement.isDisplayed());
- choiceTwoElement.sendKeys(date(1789, 8, 26));
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.summaryPoll(), false);
- }
-
- /**
- * This test create a free date poll with two choices but no title.
- * At the end, should be still on create page, with an error message.
- */
- @Test
- public void createSimpleFreeDatePollWithoutTitle() {
-
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Switch to Date choices
- List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
- Assert.assertEquals(3, choiceTypesElement.size());
- WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
- Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
- Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
- Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
- dateChoiceTypeElement.click();
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("dateChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- String choiceOneValue = date(1431, 5, 30);
- choiceOneElement.sendKeys(choiceOneValue);
-
- // Set second choice
- WebElement choiceTwoElement = findElement(By.name("dateChoice_1.name"));
- Assert.assertEquals("input", choiceTwoElement.getTagName());
- Assert.assertTrue(choiceTwoElement.isDisplayed());
- String choiceTwoValue = date(1789, 8, 26);
- choiceTwoElement.sendKeys(choiceTwoValue);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // Title is missing, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check an error message has been displayed
- WebElement titleError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(titleError);
-
- // Check that choice fields are not lost
- choiceOneElement = findElement(By.name("dateChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- Assert.assertEquals(choiceOneValue, choiceOneElement.getAttribute("value"));
- choiceTwoElement = findElement(By.name("dateChoice_1.name"));
- Assert.assertEquals("input", choiceTwoElement.getTagName());
- Assert.assertTrue(choiceTwoElement.isDisplayed());
- Assert.assertEquals(choiceTwoValue, choiceTwoElement.getAttribute("value"));
-
- }
-
- /**
- * This test create a free date poll without choices.
- * At the end, should be still on create page, with an error message.
- */
- @Test
- public void createSimpleFreeDatePollWithoutChoice() {
-
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- String pollTitle = "My Date Poll";
- titleElement.sendKeys(pollTitle);
-
- // Switch to Date choices
- List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
- Assert.assertEquals(3, choiceTypesElement.size());
- WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
- Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
- Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
- Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
- dateChoiceTypeElement.click();
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // No choices, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check that title field is not lost
- titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
-
- // Check an error message has been displayed for choices
- WebElement choicesError = findElement(By.id("poll_choices_error"));
- Assert.assertNotNull(choicesError);
-
- // Check that we are still on Date choices
- choiceTypesElement = findElements(By.name("poll.choiceType"));
- Assert.assertEquals(3, choiceTypesElement.size());
- dateChoiceTypeElement = choiceTypesElement.get(1);
- Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
- Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
- Assert.assertEquals("true", dateChoiceTypeElement.getAttribute("checked"));
-
- }
-
- /**
- * This test create a free date poll with a same value for two choices.
- * At the end, should be still on create page, with an error message.
- */
- @Test
- public void createSimpleFreeDatePollWithTwoSameDate() {
-
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- titleElement.sendKeys("My Date Poll");
-
- // Switch to Date choices
- List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
- Assert.assertEquals(3, choiceTypesElement.size());
- WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
- Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
- Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
- Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
- dateChoiceTypeElement.click();
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("dateChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- String date = date(1431, 5, 30);
- choiceOneElement.sendKeys(date);
-
- // Set second choice
- WebElement choiceTwoElement = findElement(By.name("dateChoice_1.name"));
- Assert.assertEquals("input", choiceTwoElement.getTagName());
- Assert.assertTrue(choiceTwoElement.isDisplayed());
- choiceTwoElement.sendKeys(date);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // An error, should stay on create page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check an error message has been displayed for choices
- WebElement choicesError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(choicesError);
- }
-
- /**
- * This test create a free date poll with a bas format for one of the choices.
- * At the end, should be still on create page, with an error message.
- */
- @Test
- public void createSimpleFreeDatePollWithBadFormatDate() {
-
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- titleElement.sendKeys("My Date Poll");
-
- // Switch to Date choices
- List<WebElement> choiceTypesElement = findElements(By.name("poll.choiceType"));
- Assert.assertEquals(3, choiceTypesElement.size());
- WebElement dateChoiceTypeElement = choiceTypesElement.get(1);
- Assert.assertEquals("input", dateChoiceTypeElement.getTagName());
- Assert.assertEquals("DATE", dateChoiceTypeElement.getAttribute("value"));
- Assert.assertTrue(dateChoiceTypeElement.isDisplayed());
- dateChoiceTypeElement.click();
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("dateChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- choiceOneElement.sendKeys(date(1431, 5, 30));
-
- // Set second choice
- WebElement choiceTwoElement = findElement(By.name("dateChoice_1.name"));
- Assert.assertEquals("input", choiceTwoElement.getTagName());
- Assert.assertTrue(choiceTwoElement.isDisplayed());
- choiceTwoElement.sendKeys("28 08 1789");
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // An error, should stay on create page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check an error message has been displayed for choices
- WebElement choicesError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(choicesError);
- }
-
-}
Copied: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollIT.java (from rev 3640, trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,462 @@
+package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.apache.commons.lang3.time.DateUtils;
+import org.junit.Assert;
+import org.junit.Test;
+import org.nuiton.util.DateUtil;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+
+import java.util.Date;
+
+/**
+ * Test the well work of a Free text poll creation page.
+ * <p/>
+ * Tested cases :
+ * <ul>
+ * <li>Classic creation with filled mandatory fields (OK)</li>
+ * <li>Classic creation with no title (KO)</li>
+ * <li>Classic creation with no choice (KO)</li>
+ * <li>Classic creation with two same choices (KO)</li>
+ * <li>Classic creation with ending date before starting date (KO)</li>
+ * <li>Classic creation with ending date before now (KO)</li>
+ * <li>Classic creation with invalid email (KO)</li>
+ * <li>Classic creation with an authorized number of choice per vote < 1 (KO)</li>
+ * <li>Classic creation with choice adding ending date before starting date (KO)</li>
+ * <li>Classic creation with choice adding starting date after poll ending date (KO)</li>
+ * <li>Classic creation with choice adding ending date after poll ending date (KO)</li>
+ * </ul>
+ *
+ * @author ymartel <martel(a)codelutin.com>
+ * @since 1.4
+ */
+public class CreateFreeTextPollIT extends AbstractPollenIT {
+
+ public CreateFreeTextPollIT(Class<? extends WebDriver> driverType) {
+ super(driverType);
+ }
+
+ /**
+ * This test create a simple free text poll.
+ * At the end, should be on summary page.
+ */
+ @Test
+ public void createSimpleFreeTextPoll() {
+
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ titleElement.sendKeys("My Poll");
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ choiceOneElement.sendKeys("Choix numero un");
+
+ // Set second choice
+ WebElement choiceTwoElement = findElement(By.name("textChoice_1.name"));
+ Assert.assertEquals("input", choiceTwoElement.getTagName());
+ Assert.assertTrue(choiceTwoElement.isDisplayed());
+ choiceTwoElement.sendKeys("Choix numero deux");
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.summaryPoll(), false);
+ }
+
+ /**
+ * This test create a simple free text poll without a title.
+ * When submit, an error text should be displayed : title is mandatory
+ */
+ @Test
+ public void createSimpleFreeTextPollWithoutTitle() {
+
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ String choiceOneValue = "Choix numero un";
+ choiceOneElement.sendKeys(choiceOneValue);
+
+ // Set second choice
+ WebElement choiceTwoElement = findElement(By.name("textChoice_1.name"));
+ Assert.assertEquals("input", choiceTwoElement.getTagName());
+ Assert.assertTrue(choiceTwoElement.isDisplayed());
+ String choiceTwoValue = "Choix numero deux";
+ choiceTwoElement.sendKeys(choiceTwoValue);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // Title is missing, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check an error message has been displayed
+ WebElement titleError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(titleError);
+
+ // Check that choice fields are not lost
+ choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ Assert.assertEquals(choiceOneValue, choiceOneElement.getAttribute("value"));
+ choiceTwoElement = findElement(By.name("textChoice_1.name"));
+ Assert.assertEquals("input", choiceTwoElement.getTagName());
+ Assert.assertTrue(choiceTwoElement.isDisplayed());
+ Assert.assertEquals(choiceTwoValue, choiceTwoElement.getAttribute("value"));
+
+ }
+
+ /**
+ * This test create a simple free text poll with no choice.
+ * When submit, an error text should be displayed : at least one choice must be given
+ */
+ @Test
+ public void createSimpleFreeTextPollWithoutChoice() {
+
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ String pollTitle = "My Poll";
+ titleElement.sendKeys(pollTitle);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // No choices, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check that title field is not lost
+ titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
+
+ // Check an error message has been displayed for choices
+ WebElement choicesError = findElement(By.id("poll_choices_error"));
+ Assert.assertNotNull(choicesError);
+ }
+
+ /**
+ * This test create a free text poll with a ending date in the past.
+ * When submit, an error text should be displayed : the poll cannot end before starting !
+ */
+ @Test
+ public void createFreeTextPollWithAnteriorEndingDateThanToday() {
+
+ // Go on create poll page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ String pollTitle = "My Poll";
+ titleElement.sendKeys(pollTitle);
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ String choiceOne = "Choix numero un";
+ choiceOneElement.sendKeys(choiceOne);
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Set end date
+ WebElement endDateElement = findElement(By.name("poll.endDate"));
+ Assert.assertEquals("input", endDateElement.getTagName());
+ Assert.assertTrue(endDateElement.isDisplayed());
+ //FIXME ymartel 2012/06/14 : review way to get DAte ?
+ Date aMonthAgo = DateUtils.addMonths(new Date(), -1);
+ String formatMonthAgo = DateUtil.formatDate(aMonthAgo, "dd/MM/yyyy HH:mm");
+ endDateElement.sendKeys(formatMonthAgo);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // No choices, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check an error message has been displayed
+ WebElement dateError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(dateError);
+
+ // Check that title is not displayed cause not in the tab in error
+ titleElement = findElement(By.name("poll.title"));
+ Assert.assertFalse(titleElement.isDisplayed());
+
+ // Go on general tab and check that Title and and choice fields values are not lost
+ WebElement generalClick = findElement(By.xpath("//a[@href=\"#tgeneral\"]"));
+ generalClick.click();
+
+ titleElement = findElement(By.name("poll.title"));
+ Assert.assertTrue(titleElement.isDisplayed());
+ Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
+
+ choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ Assert.assertEquals(choiceOne, choiceOneElement.getAttribute("value"));
+ }
+
+ /**
+ * This test create a free text poll with a ending date before the starting date.
+ * When submit, an error text should be displayed : the poll cannot end before starting !
+ */
+ @Test
+ public void createFreeTextPollWithAnteriorEndDateThanStartDate() {
+
+ // Go on create poll page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ String pollTitle = "My Poll";
+ titleElement.sendKeys(pollTitle);
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ String choiceOne = "Choix numero un";
+ choiceOneElement.sendKeys(choiceOne);
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Set start date to two month ago
+ WebElement startDateElement = findElement(By.name("poll.endDate"));
+ Assert.assertEquals("input", startDateElement.getTagName());
+ Assert.assertTrue(startDateElement.isDisplayed());
+ //FIXME ymartel 2012/06/14 : review way to get Date ?
+ Date twoMonthsAgo = DateUtils.addMonths(new Date(), -2);
+ String formatTwoMonthsAgo = DateUtil.formatDate(twoMonthsAgo, "dd/MM/yyyy HH:mm");
+ startDateElement.sendKeys(formatTwoMonthsAgo);
+
+ // Set end date to one months ago
+ WebElement endDateElement = findElement(By.name("poll.endDate"));
+ Assert.assertEquals("input", endDateElement.getTagName());
+ Assert.assertTrue(endDateElement.isDisplayed());
+ //FIXME ymartel 2012/06/14 : review way to get DAte ?
+ Date oneMonthAgo = DateUtils.addMonths(new Date(), -1);
+ String formatOneMonthAgo = DateUtil.formatDate(oneMonthAgo, "dd/MM/yyyy HH:mm");
+ endDateElement.sendKeys(formatOneMonthAgo);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // No choices, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check an error message has been displayed
+ WebElement dateError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(dateError);
+
+ // Go on general tab and check that Title and and choice fields values are not lost
+ WebElement generalClick = findElement(By.xpath("//a[@href=\"#tgeneral\"]"));
+ generalClick.click();
+
+ titleElement = findElement(By.name("poll.title"));
+ Assert.assertTrue(titleElement.isDisplayed());
+ Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
+
+ choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ Assert.assertEquals(choiceOne, choiceOneElement.getAttribute("value"));
+ }
+
+ /**
+ * This test create a free text poll with an invalid email.
+ * When submit, an error text should be displayed : email should be valid
+ */
+ @Test
+ public void createFreeTextPollWithInvalidEmail() {
+
+ // Go on create poll page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ String pollTitle = "My Poll";
+ titleElement.sendKeys(pollTitle);
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ String choiceOne = "Choix numero un";
+ choiceOneElement.sendKeys(choiceOne);
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ WebElement emailElement = findElement(By.name("poll.creator.email"));
+ Assert.assertEquals("input", emailElement.getTagName());
+ Assert.assertTrue(emailElement.isDisplayed());
+ emailElement.sendKeys("i@minvalid");
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // No choices, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check an error message has been displayed
+ WebElement dateError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(dateError);
+
+ // Go on general tab and check that Title and and choice fields values are not lost
+ WebElement generalClick = findElement(By.xpath("//a[@href=\"#tgeneral\"]"));
+ generalClick.click();
+
+ titleElement = findElement(By.name("poll.title"));
+ Assert.assertTrue(titleElement.isDisplayed());
+ Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
+
+ choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ Assert.assertEquals(choiceOne, choiceOneElement.getAttribute("value"));
+ }
+
+ /**
+ * This test create a free text poll with an invalid email.
+ * When submit, an error text should be displayed : email should be valid
+ */
+ @Test
+ public void createFreeTextPollWithInvalidMaxVotedChoices() {
+
+ // Go on create poll page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ WebElement titleElement = findElement(By.name("poll.title"));
+ Assert.assertEquals("input", titleElement.getTagName());
+ Assert.assertTrue(titleElement.isDisplayed());
+ String pollTitle = "My Poll";
+ titleElement.sendKeys(pollTitle);
+
+ // Set first choice
+ WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertEquals("input", choiceOneElement.getTagName());
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ String choiceOne = "Choix numero un";
+ choiceOneElement.sendKeys(choiceOne);
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Get the maxChoice element : should be disable while limitChoice is not selected
+ WebElement maxChoiceElement = findElement(By.name("maxChoices"));
+ Assert.assertEquals("input", maxChoiceElement.getTagName());
+ Assert.assertTrue(maxChoiceElement.isDisplayed());
+ // Get the checkbox and check it to set number of max choice after
+ WebElement limitChoiceElement = findElement(By.name("limitChoice"));
+ Assert.assertEquals("input", limitChoiceElement.getTagName());
+ Assert.assertTrue(limitChoiceElement.isEnabled());
+ limitChoiceElement.click();
+ // Set a negative number of max choice
+ maxChoiceElement = findElement(By.name("maxChoices"));
+ Assert.assertTrue(maxChoiceElement.isEnabled());
+ maxChoiceElement.clear();
+ maxChoiceElement.sendKeys("-1");
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // No choices, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+
+ // Check an error message has been displayed
+ WebElement maxChoicesError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(maxChoicesError);
+
+ // Go on general tab and check that Title and and choice fields values are not lost
+ WebElement generalClick = findElement(By.xpath("//a[@href=\"#tgeneral\"]"));
+ generalClick.click();
+
+ titleElement = findElement(By.name("poll.title"));
+ Assert.assertTrue(titleElement.isDisplayed());
+ Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
+
+ choiceOneElement = findElement(By.name("textChoice_0.name"));
+ Assert.assertTrue(choiceOneElement.isDisplayed());
+ Assert.assertEquals(choiceOne, choiceOneElement.getAttribute("value"));
+
+ // Second part: try to set "0" for max choice
+
+ // Go back to option panel : click on it
+ optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Set a negative number of max choice
+ maxChoiceElement = findElement(By.name("maxChoices"));
+ Assert.assertEquals("input", maxChoiceElement.getTagName());
+ Assert.assertTrue(maxChoiceElement.isEnabled());
+ maxChoiceElement.clear();
+ maxChoiceElement.sendKeys("0");
+
+ // Submit form
+ submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // No choices, should stay on create poll page
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ maxChoicesError = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(maxChoicesError);
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java 2012-08-27 09:33:29 UTC (rev 3641)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,462 +0,0 @@
-package org.chorem.pollen.ui.it;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.apache.commons.lang3.time.DateUtils;
-import org.junit.Assert;
-import org.junit.Test;
-import org.nuiton.util.DateUtil;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-import java.util.Date;
-
-/**
- * Test the well work of a Free text poll creation page.
- * <p/>
- * Tested cases :
- * <ul>
- * <li>Classic creation with filled mandatory fields (OK)</li>
- * <li>Classic creation with no title (KO)</li>
- * <li>Classic creation with no choice (KO)</li>
- * <li>Classic creation with two same choices (KO)</li>
- * <li>Classic creation with ending date before starting date (KO)</li>
- * <li>Classic creation with ending date before now (KO)</li>
- * <li>Classic creation with invalid email (KO)</li>
- * <li>Classic creation with an authorized number of choice per vote < 1 (KO)</li>
- * <li>Classic creation with choice adding ending date before starting date (KO)</li>
- * <li>Classic creation with choice adding starting date after poll ending date (KO)</li>
- * <li>Classic creation with choice adding ending date after poll ending date (KO)</li>
- * </ul>
- *
- * @author ymartel <martel(a)codelutin.com>
- * @since 1.4
- */
-public class CreateFreeTextPollSIT extends AbstractPollenIT {
-
- public CreateFreeTextPollSIT(Class<? extends WebDriver> driverType) {
- super(driverType);
- }
-
- /**
- * This test create a simple free text poll.
- * At the end, should be on summary page.
- */
- @Test
- public void createSimpleFreeTextPoll() {
-
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- titleElement.sendKeys("My Poll");
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- choiceOneElement.sendKeys("Choix numero un");
-
- // Set second choice
- WebElement choiceTwoElement = findElement(By.name("textChoice_1.name"));
- Assert.assertEquals("input", choiceTwoElement.getTagName());
- Assert.assertTrue(choiceTwoElement.isDisplayed());
- choiceTwoElement.sendKeys("Choix numero deux");
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.summaryPoll(), false);
- }
-
- /**
- * This test create a simple free text poll without a title.
- * When submit, an error text should be displayed : title is mandatory
- */
- @Test
- public void createSimpleFreeTextPollWithoutTitle() {
-
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- String choiceOneValue = "Choix numero un";
- choiceOneElement.sendKeys(choiceOneValue);
-
- // Set second choice
- WebElement choiceTwoElement = findElement(By.name("textChoice_1.name"));
- Assert.assertEquals("input", choiceTwoElement.getTagName());
- Assert.assertTrue(choiceTwoElement.isDisplayed());
- String choiceTwoValue = "Choix numero deux";
- choiceTwoElement.sendKeys(choiceTwoValue);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // Title is missing, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check an error message has been displayed
- WebElement titleError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(titleError);
-
- // Check that choice fields are not lost
- choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- Assert.assertEquals(choiceOneValue, choiceOneElement.getAttribute("value"));
- choiceTwoElement = findElement(By.name("textChoice_1.name"));
- Assert.assertEquals("input", choiceTwoElement.getTagName());
- Assert.assertTrue(choiceTwoElement.isDisplayed());
- Assert.assertEquals(choiceTwoValue, choiceTwoElement.getAttribute("value"));
-
- }
-
- /**
- * This test create a simple free text poll with no choice.
- * When submit, an error text should be displayed : at least one choice must be given
- */
- @Test
- public void createSimpleFreeTextPollWithoutChoice() {
-
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- String pollTitle = "My Poll";
- titleElement.sendKeys(pollTitle);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // No choices, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check that title field is not lost
- titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
-
- // Check an error message has been displayed for choices
- WebElement choicesError = findElement(By.id("poll_choices_error"));
- Assert.assertNotNull(choicesError);
- }
-
- /**
- * This test create a free text poll with a ending date in the past.
- * When submit, an error text should be displayed : the poll cannot end before starting !
- */
- @Test
- public void createFreeTextPollWithAnteriorEndingDateThanToday() {
-
- // Go on create poll page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- String pollTitle = "My Poll";
- titleElement.sendKeys(pollTitle);
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- String choiceOne = "Choix numero un";
- choiceOneElement.sendKeys(choiceOne);
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Set end date
- WebElement endDateElement = findElement(By.name("poll.endDate"));
- Assert.assertEquals("input", endDateElement.getTagName());
- Assert.assertTrue(endDateElement.isDisplayed());
- //FIXME ymartel 2012/06/14 : review way to get DAte ?
- Date aMonthAgo = DateUtils.addMonths(new Date(), -1);
- String formatMonthAgo = DateUtil.formatDate(aMonthAgo, "dd/MM/yyyy HH:mm");
- endDateElement.sendKeys(formatMonthAgo);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // No choices, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check an error message has been displayed
- WebElement dateError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(dateError);
-
- // Check that title is not displayed cause not in the tab in error
- titleElement = findElement(By.name("poll.title"));
- Assert.assertFalse(titleElement.isDisplayed());
-
- // Go on general tab and check that Title and and choice fields values are not lost
- WebElement generalClick = findElement(By.xpath("//a[@href=\"#tgeneral\"]"));
- generalClick.click();
-
- titleElement = findElement(By.name("poll.title"));
- Assert.assertTrue(titleElement.isDisplayed());
- Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
-
- choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertTrue(choiceOneElement.isDisplayed());
- Assert.assertEquals(choiceOne, choiceOneElement.getAttribute("value"));
- }
-
- /**
- * This test create a free text poll with a ending date before the starting date.
- * When submit, an error text should be displayed : the poll cannot end before starting !
- */
- @Test
- public void createFreeTextPollWithAnteriorEndDateThanStartDate() {
-
- // Go on create poll page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- String pollTitle = "My Poll";
- titleElement.sendKeys(pollTitle);
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- String choiceOne = "Choix numero un";
- choiceOneElement.sendKeys(choiceOne);
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Set start date to two month ago
- WebElement startDateElement = findElement(By.name("poll.endDate"));
- Assert.assertEquals("input", startDateElement.getTagName());
- Assert.assertTrue(startDateElement.isDisplayed());
- //FIXME ymartel 2012/06/14 : review way to get Date ?
- Date twoMonthsAgo = DateUtils.addMonths(new Date(), -2);
- String formatTwoMonthsAgo = DateUtil.formatDate(twoMonthsAgo, "dd/MM/yyyy HH:mm");
- startDateElement.sendKeys(formatTwoMonthsAgo);
-
- // Set end date to one months ago
- WebElement endDateElement = findElement(By.name("poll.endDate"));
- Assert.assertEquals("input", endDateElement.getTagName());
- Assert.assertTrue(endDateElement.isDisplayed());
- //FIXME ymartel 2012/06/14 : review way to get DAte ?
- Date oneMonthAgo = DateUtils.addMonths(new Date(), -1);
- String formatOneMonthAgo = DateUtil.formatDate(oneMonthAgo, "dd/MM/yyyy HH:mm");
- endDateElement.sendKeys(formatOneMonthAgo);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // No choices, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check an error message has been displayed
- WebElement dateError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(dateError);
-
- // Go on general tab and check that Title and and choice fields values are not lost
- WebElement generalClick = findElement(By.xpath("//a[@href=\"#tgeneral\"]"));
- generalClick.click();
-
- titleElement = findElement(By.name("poll.title"));
- Assert.assertTrue(titleElement.isDisplayed());
- Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
-
- choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertTrue(choiceOneElement.isDisplayed());
- Assert.assertEquals(choiceOne, choiceOneElement.getAttribute("value"));
- }
-
- /**
- * This test create a free text poll with an invalid email.
- * When submit, an error text should be displayed : email should be valid
- */
- @Test
- public void createFreeTextPollWithInvalidEmail() {
-
- // Go on create poll page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- String pollTitle = "My Poll";
- titleElement.sendKeys(pollTitle);
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- String choiceOne = "Choix numero un";
- choiceOneElement.sendKeys(choiceOne);
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- WebElement emailElement = findElement(By.name("poll.creator.email"));
- Assert.assertEquals("input", emailElement.getTagName());
- Assert.assertTrue(emailElement.isDisplayed());
- emailElement.sendKeys("i@minvalid");
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // No choices, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check an error message has been displayed
- WebElement dateError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(dateError);
-
- // Go on general tab and check that Title and and choice fields values are not lost
- WebElement generalClick = findElement(By.xpath("//a[@href=\"#tgeneral\"]"));
- generalClick.click();
-
- titleElement = findElement(By.name("poll.title"));
- Assert.assertTrue(titleElement.isDisplayed());
- Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
-
- choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertTrue(choiceOneElement.isDisplayed());
- Assert.assertEquals(choiceOne, choiceOneElement.getAttribute("value"));
- }
-
- /**
- * This test create a free text poll with an invalid email.
- * When submit, an error text should be displayed : email should be valid
- */
- @Test
- public void createFreeTextPollWithInvalidMaxVotedChoices() {
-
- // Go on create poll page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- WebElement titleElement = findElement(By.name("poll.title"));
- Assert.assertEquals("input", titleElement.getTagName());
- Assert.assertTrue(titleElement.isDisplayed());
- String pollTitle = "My Poll";
- titleElement.sendKeys(pollTitle);
-
- // Set first choice
- WebElement choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertEquals("input", choiceOneElement.getTagName());
- Assert.assertTrue(choiceOneElement.isDisplayed());
- String choiceOne = "Choix numero un";
- choiceOneElement.sendKeys(choiceOne);
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Get the maxChoice element : should be disable while limitChoice is not selected
- WebElement maxChoiceElement = findElement(By.name("maxChoices"));
- Assert.assertEquals("input", maxChoiceElement.getTagName());
- Assert.assertTrue(maxChoiceElement.isDisplayed());
- // Get the checkbox and check it to set number of max choice after
- WebElement limitChoiceElement = findElement(By.name("limitChoice"));
- Assert.assertEquals("input", limitChoiceElement.getTagName());
- Assert.assertTrue(limitChoiceElement.isEnabled());
- limitChoiceElement.click();
- // Set a negative number of max choice
- maxChoiceElement = findElement(By.name("maxChoices"));
- Assert.assertTrue(maxChoiceElement.isEnabled());
- maxChoiceElement.clear();
- maxChoiceElement.sendKeys("-1");
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // No choices, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
-
- // Check an error message has been displayed
- WebElement maxChoicesError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(maxChoicesError);
-
- // Go on general tab and check that Title and and choice fields values are not lost
- WebElement generalClick = findElement(By.xpath("//a[@href=\"#tgeneral\"]"));
- generalClick.click();
-
- titleElement = findElement(By.name("poll.title"));
- Assert.assertTrue(titleElement.isDisplayed());
- Assert.assertEquals(pollTitle, titleElement.getAttribute("value"));
-
- choiceOneElement = findElement(By.name("textChoice_0.name"));
- Assert.assertTrue(choiceOneElement.isDisplayed());
- Assert.assertEquals(choiceOne, choiceOneElement.getAttribute("value"));
-
- // Second part: try to set "0" for max choice
-
- // Go back to option panel : click on it
- optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Set a negative number of max choice
- maxChoiceElement = findElement(By.name("maxChoices"));
- Assert.assertEquals("input", maxChoiceElement.getTagName());
- Assert.assertTrue(maxChoiceElement.isEnabled());
- maxChoiceElement.clear();
- maxChoiceElement.sendKeys("0");
-
- // Submit form
- submit = findElement(By.name("action:create"));
- submit.click();
-
- // No choices, should stay on create poll page
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- maxChoicesError = findElement(By.className("errorMessage"));
- Assert.assertNotNull(maxChoicesError);
- }
-
-}
Copied: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollIT.java (from rev 3640, trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,308 @@
+package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+
+import java.util.List;
+
+/**
+ * Test the well work of a text poll creation page with a restricted list of participant.
+ * <p/>
+ * Tested cases :
+ * <ul>
+ * <li>Creation without participant (KO)</li>
+ * <li>Creation with two participants with same name (KO)</li>
+ * <li>Creation with two participants with same email (KO)</li>
+ * <li>Creation with a participant without email (KO)</li>
+ * <li>Creation with a participant with only an email (no name) (KO)</li>
+ * </ul>
+ *
+ * @author ymartel <martel(a)codelutin.com>
+ * @since 1.4
+ */
+public class CreateRestrictedTextPollIT extends AbstractPollenIT {
+
+ public CreateRestrictedTextPollIT(Class<? extends WebDriver> driverType) {
+ super(driverType);
+ }
+
+ /**
+ * This test create a text poll with restriction on participant but no participant.
+ * At the end, should stay on create poll page, cause at least one participant is needed.
+ */
+ @Test
+ public void createRestrictedTextPollWithoutParticipant() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Switch to restricted type
+ List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
+ Assert.assertEquals(3, pollTypesElement.size());
+ WebElement restrictedTypeElement = pollTypesElement.get(1);
+ Assert.assertEquals("input", restrictedTypeElement.getTagName());
+ Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
+ Assert.assertTrue(restrictedTypeElement.isDisplayed());
+ restrictedTypeElement.click();
+
+ // Check that the participant form is displayed
+ WebElement participantOneNameElement = findElement(By.id("votingListRESTRICTED_0PersonToList_0.votingId"));
+ Assert.assertEquals("input", participantOneNameElement.getTagName());
+ Assert.assertTrue(participantOneNameElement.isDisplayed());
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ participantOneNameElement = findElement(By.id("votingListRESTRICTED_0PersonToList_0.votingId"));
+ Assert.assertEquals("input", participantOneNameElement.getTagName());
+ Assert.assertTrue(participantOneNameElement.isDisplayed());
+ }
+
+ /**
+ * This test create a restricted text poll, with two participant with same name.
+ * At the end, should stay on create poll page, cause the name should be unique.
+ */
+ @Test
+ public void createRestrictedTextPollWithParticipantsWithSameName() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Switch to restricted type
+ List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
+ Assert.assertEquals(3, pollTypesElement.size());
+ WebElement restrictedTypeElement = pollTypesElement.get(1);
+ Assert.assertEquals("input", restrictedTypeElement.getTagName());
+ Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
+ Assert.assertTrue(restrictedTypeElement.isDisplayed());
+ restrictedTypeElement.click();
+
+ // Set first participant
+ // send name
+ String participantOneName = "toto";
+ sendKeysById("votingListRESTRICTED_0PersonToList_0.votingId", participantOneName);
+ // send email
+ String participantOneEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListRESTRICTED_0PersonToList_0.email", participantOneEmail);
+ // Set second participant
+ // send name
+ sendKeysById("votingListRESTRICTED_0PersonToList_1.votingId", participantOneName);
+ // send email
+ String participantTwoEmail = "toto2(a)codelutin.com";
+ sendKeysById("votingListRESTRICTED_0PersonToList_1.email", participantTwoEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.email"), participantOneEmail);
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_1.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_1.email"), participantTwoEmail);
+ }
+
+ /**
+ * This test create a restricted text poll, with two participant with same email.
+ * At the end, should stay on create poll page, cause the email should be unique.
+ */
+ @Test
+ public void createRestrictedTextPollWithParticipantsWithSameEmail() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Switch to restricted type
+ List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
+ Assert.assertEquals(3, pollTypesElement.size());
+ WebElement restrictedTypeElement = pollTypesElement.get(1);
+ Assert.assertEquals("input", restrictedTypeElement.getTagName());
+ Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
+ Assert.assertTrue(restrictedTypeElement.isDisplayed());
+ restrictedTypeElement.click();
+
+ // Set first participant
+ // send name
+ String participantOneName = "toto";
+ sendKeysById("votingListRESTRICTED_0PersonToList_0.votingId", participantOneName);
+ // send email
+ String participantOneEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListRESTRICTED_0PersonToList_0.email", participantOneEmail);
+ // Set second participant
+ // send name
+ String participantTwoName = "toto2";
+ sendKeysById("votingListRESTRICTED_0PersonToList_1.votingId", participantTwoName);
+ // send email
+ sendKeysById("votingListRESTRICTED_0PersonToList_1.email", participantOneEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.email"), participantOneEmail);
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_1.votingId"), participantTwoName);
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_1.email"), participantOneEmail);
+ }
+
+ /**
+ * This test create a restricted text poll, with one participant without email.
+ * At the end, should stay on create poll page, cause the mail is mandatory.
+ */
+ @Test
+ public void createRestrictedTextPollWithParticipantWithoutMail() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Switch to restricted type
+ List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
+ Assert.assertEquals(3, pollTypesElement.size());
+ WebElement restrictedTypeElement = pollTypesElement.get(1);
+ Assert.assertEquals("input", restrictedTypeElement.getTagName());
+ Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
+ Assert.assertTrue(restrictedTypeElement.isDisplayed());
+ restrictedTypeElement.click();
+
+ // Set first participant
+ // send name
+ String participantOneName = "toto";
+ sendKeysById("votingListRESTRICTED_0PersonToList_0.votingId", participantOneName);
+ // send email
+ String participantOneEmail = " ";
+ sendKeysById("votingListRESTRICTED_0PersonToList_0.email", participantOneEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.email"), participantOneEmail);
+ }
+
+ /**
+ * This test create a restricted text poll, with one participant without email.
+ * At the end, should stay on create poll page, cause the mail is mandatory.
+ */
+ @Test
+ public void createRestrictedTextPollWithParticipantWithoutName() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Switch to restricted type
+ List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
+ Assert.assertEquals(3, pollTypesElement.size());
+ WebElement restrictedTypeElement = pollTypesElement.get(1);
+ Assert.assertEquals("input", restrictedTypeElement.getTagName());
+ Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
+ Assert.assertTrue(restrictedTypeElement.isDisplayed());
+ restrictedTypeElement.click();
+
+ // Set first participant
+ // send name
+ String participantOneName = "";
+ sendKeysById("votingListRESTRICTED_0PersonToList_0.votingId", participantOneName);
+ // send email
+ String participantOneEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListRESTRICTED_0PersonToList_0.email", participantOneEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.email"), participantOneEmail);
+ }
+
+ /** Prepare the poll with general data : one title and two choices */
+ void preparePoll() {
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ sendKeysByName("poll.title", "My Poll");
+
+ // Set first choice
+ sendKeysByName("textChoice_0.name", "Choix numero un");
+
+ // Set second choice
+ sendKeysByName("textChoice_1.name", "Choix numero deux");
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java 2012-08-27 09:33:29 UTC (rev 3641)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,308 +0,0 @@
-package org.chorem.pollen.ui.it;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-import java.util.List;
-
-/**
- * Test the well work of a text poll creation page with a restricted list of participant.
- * <p/>
- * Tested cases :
- * <ul>
- * <li>Creation without participant (KO)</li>
- * <li>Creation with two participants with same name (KO)</li>
- * <li>Creation with two participants with same email (KO)</li>
- * <li>Creation with a participant without email (KO)</li>
- * <li>Creation with a participant with only an email (no name) (KO)</li>
- * </ul>
- *
- * @author ymartel <martel(a)codelutin.com>
- * @since 1.4
- */
-public class CreateRestrictedTextPollSIT extends AbstractPollenIT {
-
- public CreateRestrictedTextPollSIT(Class<? extends WebDriver> driverType) {
- super(driverType);
- }
-
- /**
- * This test create a text poll with restriction on participant but no participant.
- * At the end, should stay on create poll page, cause at least one participant is needed.
- */
- @Test
- public void createRestrictedTextPollWithoutParticipant() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Switch to restricted type
- List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
- Assert.assertEquals(3, pollTypesElement.size());
- WebElement restrictedTypeElement = pollTypesElement.get(1);
- Assert.assertEquals("input", restrictedTypeElement.getTagName());
- Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
- Assert.assertTrue(restrictedTypeElement.isDisplayed());
- restrictedTypeElement.click();
-
- // Check that the participant form is displayed
- WebElement participantOneNameElement = findElement(By.id("votingListRESTRICTED_0PersonToList_0.votingId"));
- Assert.assertEquals("input", participantOneNameElement.getTagName());
- Assert.assertTrue(participantOneNameElement.isDisplayed());
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- participantOneNameElement = findElement(By.id("votingListRESTRICTED_0PersonToList_0.votingId"));
- Assert.assertEquals("input", participantOneNameElement.getTagName());
- Assert.assertTrue(participantOneNameElement.isDisplayed());
- }
-
- /**
- * This test create a restricted text poll, with two participant with same name.
- * At the end, should stay on create poll page, cause the name should be unique.
- */
- @Test
- public void createRestrictedTextPollWithParticipantsWithSameName() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Switch to restricted type
- List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
- Assert.assertEquals(3, pollTypesElement.size());
- WebElement restrictedTypeElement = pollTypesElement.get(1);
- Assert.assertEquals("input", restrictedTypeElement.getTagName());
- Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
- Assert.assertTrue(restrictedTypeElement.isDisplayed());
- restrictedTypeElement.click();
-
- // Set first participant
- // send name
- String participantOneName = "toto";
- sendKeysById("votingListRESTRICTED_0PersonToList_0.votingId", participantOneName);
- // send email
- String participantOneEmail = "toto(a)codelutin.com";
- sendKeysById("votingListRESTRICTED_0PersonToList_0.email", participantOneEmail);
- // Set second participant
- // send name
- sendKeysById("votingListRESTRICTED_0PersonToList_1.votingId", participantOneName);
- // send email
- String participantTwoEmail = "toto2(a)codelutin.com";
- sendKeysById("votingListRESTRICTED_0PersonToList_1.email", participantTwoEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.email"), participantOneEmail);
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_1.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_1.email"), participantTwoEmail);
- }
-
- /**
- * This test create a restricted text poll, with two participant with same email.
- * At the end, should stay on create poll page, cause the email should be unique.
- */
- @Test
- public void createRestrictedTextPollWithParticipantsWithSameEmail() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Switch to restricted type
- List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
- Assert.assertEquals(3, pollTypesElement.size());
- WebElement restrictedTypeElement = pollTypesElement.get(1);
- Assert.assertEquals("input", restrictedTypeElement.getTagName());
- Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
- Assert.assertTrue(restrictedTypeElement.isDisplayed());
- restrictedTypeElement.click();
-
- // Set first participant
- // send name
- String participantOneName = "toto";
- sendKeysById("votingListRESTRICTED_0PersonToList_0.votingId", participantOneName);
- // send email
- String participantOneEmail = "toto(a)codelutin.com";
- sendKeysById("votingListRESTRICTED_0PersonToList_0.email", participantOneEmail);
- // Set second participant
- // send name
- String participantTwoName = "toto2";
- sendKeysById("votingListRESTRICTED_0PersonToList_1.votingId", participantTwoName);
- // send email
- sendKeysById("votingListRESTRICTED_0PersonToList_1.email", participantOneEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.email"), participantOneEmail);
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_1.votingId"), participantTwoName);
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_1.email"), participantOneEmail);
- }
-
- /**
- * This test create a restricted text poll, with one participant without email.
- * At the end, should stay on create poll page, cause the mail is mandatory.
- */
- @Test
- public void createRestrictedTextPollWithParticipantWithoutMail() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Switch to restricted type
- List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
- Assert.assertEquals(3, pollTypesElement.size());
- WebElement restrictedTypeElement = pollTypesElement.get(1);
- Assert.assertEquals("input", restrictedTypeElement.getTagName());
- Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
- Assert.assertTrue(restrictedTypeElement.isDisplayed());
- restrictedTypeElement.click();
-
- // Set first participant
- // send name
- String participantOneName = "toto";
- sendKeysById("votingListRESTRICTED_0PersonToList_0.votingId", participantOneName);
- // send email
- String participantOneEmail = " ";
- sendKeysById("votingListRESTRICTED_0PersonToList_0.email", participantOneEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.email"), participantOneEmail);
- }
-
- /**
- * This test create a restricted text poll, with one participant without email.
- * At the end, should stay on create poll page, cause the mail is mandatory.
- */
- @Test
- public void createRestrictedTextPollWithParticipantWithoutName() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Switch to restricted type
- List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
- Assert.assertEquals(3, pollTypesElement.size());
- WebElement restrictedTypeElement = pollTypesElement.get(1);
- Assert.assertEquals("input", restrictedTypeElement.getTagName());
- Assert.assertEquals("RESTRICTED", restrictedTypeElement.getAttribute("value"));
- Assert.assertTrue(restrictedTypeElement.isDisplayed());
- restrictedTypeElement.click();
-
- // Set first participant
- // send name
- String participantOneName = "";
- sendKeysById("votingListRESTRICTED_0PersonToList_0.votingId", participantOneName);
- // send email
- String participantOneEmail = "toto(a)codelutin.com";
- sendKeysById("votingListRESTRICTED_0PersonToList_0.email", participantOneEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListRESTRICTED_0PersonToList_0.email"), participantOneEmail);
- }
-
- /** Prepare the poll with general data : one title and two choices */
- void preparePoll() {
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- sendKeysByName("poll.title", "My Poll");
-
- // Set first choice
- sendKeysByName("textChoice_0.name", "Choix numero un");
-
- // Set second choice
- sendKeysByName("textChoice_1.name", "Choix numero deux");
- }
-
-}
Copied: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupIT.java (from rev 3640, trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java)
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupIT.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,484 @@
+package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+
+import java.util.List;
+
+/**
+ * Test the well work of a text poll creation page with the use of groups.
+ * <p/>
+ * Tested cases :
+ * <ul>
+ * <li>Creation with a nonamed group (KO)</li>
+ * <li>Creation with two group with same name (KO)</li>
+ * <li>Creation with a participant without email (KO)</li>
+ * <li>Creation with a participant with only an email (no name) (KO)</li>
+ * <li>Creation with two participants with same name in same group (KO)</li>
+ * <li>Creation with two participants with same email (KO)</li>
+ * <li>Creation with two participants with same name in different group (KO)</li>
+ * <li>Creation with two participants with same email in different group (KO)</li>
+ * </ul>
+ *
+ * @author ymartel <martel(a)codelutin.com>
+ * @since 1.4
+ */
+public class CreateTextPollForGroupIT extends AbstractPollenIT {
+
+ public CreateTextPollForGroupIT(Class<? extends WebDriver> driverType) {
+ super(driverType);
+ }
+
+ /**
+ * This test create a text poll with group of participant but with no name on group.
+ * At the end, should stay on create page cause the group name is mandatory
+ */
+ @Test
+ public void createTextPollWithNoNamedGroup() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel and display group form
+ goToGroupForm();
+
+ // Check that the group form is displayed
+ WebElement groupNameElement = findElement(By.id("votingListGROUP_0.name"));
+ Assert.assertEquals("input", groupNameElement.getTagName());
+ Assert.assertTrue(groupNameElement.isDisplayed());
+
+ // Set a participant in the group
+ // send name
+ String participantOneName = "toto";
+ sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantOneName);
+ // send email
+ String participantOneEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_0PersonToList_0.email", participantOneEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table, and group form is still displayed
+ groupNameElement = findElement(By.id("votingListGROUP_0.name"));
+ Assert.assertEquals("input", groupNameElement.getTagName());
+ Assert.assertTrue(groupNameElement.isDisplayed());
+ // check the participant is still here
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantOneEmail);
+ }
+
+ /**
+ * This test create a group text poll, with two groups with same name.
+ * At the end, should stay on create poll page, cause the group name should be unique.
+ * The group names and participants should not be lost.
+ */
+ @Test
+ public void createGroupTextPollWithGroupsWithSameName() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel and display group form
+ goToGroupForm();
+
+ // Set First group name
+ String groupOneName = "my group";
+ sendKeysById("votingListGROUP_0.name", groupOneName);
+ // Set first participant in Group 1
+ // send name
+ String participantOneName = "toto";
+ sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantOneName);
+ // send email
+ String participantOneEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_0PersonToList_0.email", participantOneEmail);
+
+ // Add a group
+ WebElement addGroupElement = findElement(By.name("pollen.action.addVotingList"));
+ Assert.assertEquals("input", addGroupElement.getTagName());
+ Assert.assertTrue(addGroupElement.isDisplayed());
+ addGroupElement.click();
+
+ // Set name of the second group: same as first one
+ sendKeysById("votingListGROUP_1.name", groupOneName);
+ // Set second participant in second group
+ // send name
+ String participantTwoName = "toto2";
+ sendKeysById("votingListGROUP_1PersonToList_0.votingId", participantTwoName);
+ // send email
+ String participantTwoEmail = "toto2(a)codelutin.com";
+ sendKeysById("votingListGROUP_1PersonToList_0.email", participantTwoEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListGROUP_0.name"), groupOneName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantOneEmail);
+ checkWebElementValue(By.id("votingListGROUP_1.name"), groupOneName);
+ checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.votingId"), participantTwoName);
+ checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.email"), participantTwoEmail);
+ }
+
+ /**
+ * This test create a group text poll, with one participant without email.
+ * At the end, should stay on create poll page, cause the mail is mandatory.
+ */
+ @Test
+ public void createGroupTextPollWithParticipantWithoutMail() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel and display group form
+ goToGroupForm();
+
+ // Set group name
+ String groupName = "my group";
+ sendKeysById("votingListGROUP_0.name", groupName);
+
+ // Set first participant
+ // send name
+ String participantName = "toto";
+ sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantName);
+ // send an empty email
+ sendKeysById("votingListGROUP_0PersonToList_0.email", "");
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListGROUP_0.name"), groupName); // group name still here
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantName); // participant name still here
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), ""); // still no email
+ }
+
+ /**
+ * This test create a group text poll, with one participant without name.
+ * At the end, should stay on create poll page, cause the mail is mandatory.
+ */
+ @Test
+ public void createGroupTextPollWithParticipantWithoutName() {
+
+ // Prepare the poll
+ preparePoll();
+ // Go to option panel and display group form
+ goToGroupForm();
+
+
+ // Set group name
+ String groupName = "my group";
+ sendKeysById("votingListGROUP_0.name", groupName);
+
+ // Set a participant
+ // send name
+ sendKeysById("votingListGROUP_0PersonToList_0.votingId", "");
+ // send an empty email
+ String participantEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_0PersonToList_0.email", participantEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListGROUP_0.name"), groupName); // group name still here
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), ""); // participant name still empty
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantEmail); // still the mail
+ }
+
+ /**
+ * This test create a group text poll, with two participants with same email in same group.
+ * At the end, should stay on create poll page, cause the email should be unique.
+ */
+ @Test
+ public void createTextPollWithSameGroupParticipantsWithSameEmail() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel and display group form
+ goToGroupForm();
+
+ // Set group name
+ String groupName = "my group";
+ sendKeysById("votingListGROUP_0.name", groupName);
+ // Set first participant in Group
+ // send name
+ String participantOneName = "toto";
+ sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantOneName);
+ // send email
+ String participantEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_0PersonToList_0.email", participantEmail);
+
+ // Set second participant in Group with same email
+ // send name
+ String participantTwoName = "toto2";
+ sendKeysById("votingListGROUP_0PersonToList_1.votingId", participantTwoName);
+ // send email
+ sendKeysById("votingListGROUP_0PersonToList_1.email", participantEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListGROUP_0.name"), groupName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantEmail);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_1.votingId"), participantTwoName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_1.email"), participantEmail);
+ }
+
+ /**
+ * This test create a group text poll, with two participants on different group with same email.
+ * At the end, should stay on create poll page, cause the participant names should be unique.
+ * The group names and participants should not be lost.
+ */
+ @Test
+ public void createGroupTextPollWithParticipantsWithSameEmail() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel and display group form
+ goToGroupForm();
+
+ // Set First group name
+ String groupOneName = "my group";
+ sendKeysById("votingListGROUP_0.name", groupOneName);
+ // Set first participant in Group 1
+ // send name
+ String participantOneName = "toto";
+ sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantOneName);
+ // send email
+ String participantEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_0PersonToList_0.email", participantEmail);
+
+ // Add a group
+ WebElement addGroupElement = findElement(By.name("pollen.action.addVotingList"));
+ Assert.assertEquals("input", addGroupElement.getTagName());
+ Assert.assertTrue(addGroupElement.isDisplayed());
+ addGroupElement.click();
+
+ // Set name of the second group
+ String groupTwoName = "my other group";
+ sendKeysById("votingListGROUP_1.name", groupTwoName);
+ // Set second participant in second group
+ // send name
+ String participantTwoName = "toto2";
+ sendKeysById("votingListGROUP_1PersonToList_0.votingId", participantTwoName);
+ // send email
+ sendKeysById("votingListGROUP_1PersonToList_0.email", participantEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListGROUP_0.name"), groupOneName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantOneName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantEmail);
+ checkWebElementValue(By.id("votingListGROUP_1.name"), groupTwoName);
+ checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.votingId"), participantTwoName);
+ checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.email"), participantEmail);
+ }
+
+ /**
+ * This test create a group text poll, with two participant with same name in a group.
+ * At the end, should stay on create poll page, cause the email should be unique.
+ * The group name and participant info must be not lost
+ */
+ @Test
+ public void createTextPollWithSameGroupParticipantsWithSameName() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel and display option panel
+ goToGroupForm();
+
+ // Set group name
+ String groupName = "my group";
+ sendKeysById("votingListGROUP_0.name", groupName);
+ // Set first participant in Group
+ // send name
+ String participantName = "toto";
+ sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantName);
+ // send email
+ String participantOneEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_0PersonToList_0.email", participantOneEmail);
+
+ // Set second participant in Group with same email
+ // send name
+ sendKeysById("votingListGROUP_0PersonToList_1.votingId", participantName);
+ // send email
+ String participantTwoEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_0PersonToList_1.email", participantTwoEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListGROUP_0.name"), groupName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantOneEmail);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_1.votingId"), participantName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_1.email"), participantTwoEmail);
+ }
+
+ /**
+ * This test create a group text poll, with two participants of different group with same name.
+ * At the end, should stay on create poll page, cause the participant name should be unique.
+ * The group names and participants should not be lost.
+ */
+ @Test
+ public void createGroupTextPollWithParticipantsWithSameName() {
+
+ // Prepare the poll
+ preparePoll();
+
+ // Go to option panel and group form
+ goToGroupForm();
+
+ // Set First group name
+ String groupOneName = "my group";
+ sendKeysById("votingListGROUP_0.name", groupOneName);
+ // Set first participant in Group 1
+ // send name
+ String participantName = "toto";
+ sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantName);
+ // send email
+ String participantOneEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_0PersonToList_0.email", participantOneEmail);
+
+ // Add a group
+ WebElement addGroupElement = findElement(By.name("pollen.action.addVotingList"));
+ Assert.assertEquals("input", addGroupElement.getTagName());
+ Assert.assertTrue(addGroupElement.isDisplayed());
+ addGroupElement.click();
+
+ // Set name of the second group
+ String groupTwoName = "my other group";
+ sendKeysById("votingListGROUP_1.name", groupTwoName);
+ // Set second participant in second group
+ // send name
+ sendKeysById("votingListGROUP_1PersonToList_0.votingId", participantName);
+ // send email
+ String participantTwoEmail = "toto(a)codelutin.com";
+ sendKeysById("votingListGROUP_1PersonToList_0.email", participantTwoEmail);
+
+ // Submit form
+ WebElement submit = findElement(By.name("action:create"));
+ submit.click();
+
+ // All good, should be on summary page !
+ checkCurrentUrl(urlFixtures.createPoll(), false);
+ // Check an error message has been displayed
+ WebElement errorMessage = findElement(By.className("errorMessage"));
+ Assert.assertNotNull(errorMessage);
+ // Check we are in good table
+ checkWebElementValue(By.id("votingListGROUP_0.name"), groupOneName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantName);
+ checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantOneEmail);
+ checkWebElementValue(By.id("votingListGROUP_1.name"), groupTwoName);
+ checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.votingId"), participantName);
+ checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.email"), participantTwoEmail);
+ }
+
+ /** Click on option panel, and select Group type to restrict the poll participation */
+ void goToGroupForm() {
+ // Go to option panel : click on it
+ WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
+ optionsClick.click();
+
+ // Switch to group type
+ List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
+ Assert.assertEquals(3, pollTypesElement.size());
+ WebElement restrictedTypeElement = pollTypesElement.get(2);
+ Assert.assertEquals("input", restrictedTypeElement.getTagName());
+ Assert.assertEquals("GROUP", restrictedTypeElement.getAttribute("value"));
+ Assert.assertTrue(restrictedTypeElement.isDisplayed());
+ restrictedTypeElement.click();
+ }
+
+ /** Prepare the poll with general data : one title and two choices */
+ void preparePoll() {
+ // Go on home page
+ gotoUrl(urlFixtures.createPoll());
+
+ // Set title
+ sendKeysByName("poll.title", "My Poll");
+
+ // Set first choice
+ sendKeysByName("textChoice_0.name", "Choix numero un");
+
+ // Set second choice
+ sendKeysByName("textChoice_1.name", "Choix numero deux");
+ }
+
+}
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupIT.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Deleted: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java 2012-08-27 09:33:29 UTC (rev 3641)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,484 +0,0 @@
-package org.chorem.pollen.ui.it;
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-import java.util.List;
-
-/**
- * Test the well work of a text poll creation page with the use of groups.
- * <p/>
- * Tested cases :
- * <ul>
- * <li>Creation with a nonamed group (KO)</li>
- * <li>Creation with two group with same name (KO)</li>
- * <li>Creation with a participant without email (KO)</li>
- * <li>Creation with a participant with only an email (no name) (KO)</li>
- * <li>Creation with two participants with same name in same group (KO)</li>
- * <li>Creation with two participants with same email (KO)</li>
- * <li>Creation with two participants with same name in different group (KO)</li>
- * <li>Creation with two participants with same email in different group (KO)</li>
- * </ul>
- *
- * @author ymartel <martel(a)codelutin.com>
- * @since 1.4
- */
-public class CreateTextPollForGroupSIT extends AbstractPollenIT {
-
- public CreateTextPollForGroupSIT(Class<? extends WebDriver> driverType) {
- super(driverType);
- }
-
- /**
- * This test create a text poll with group of participant but with no name on group.
- * At the end, should stay on create page cause the group name is mandatory
- */
- @Test
- public void createTextPollWithNoNamedGroup() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel and display group form
- goToGroupForm();
-
- // Check that the group form is displayed
- WebElement groupNameElement = findElement(By.id("votingListGROUP_0.name"));
- Assert.assertEquals("input", groupNameElement.getTagName());
- Assert.assertTrue(groupNameElement.isDisplayed());
-
- // Set a participant in the group
- // send name
- String participantOneName = "toto";
- sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantOneName);
- // send email
- String participantOneEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_0PersonToList_0.email", participantOneEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table, and group form is still displayed
- groupNameElement = findElement(By.id("votingListGROUP_0.name"));
- Assert.assertEquals("input", groupNameElement.getTagName());
- Assert.assertTrue(groupNameElement.isDisplayed());
- // check the participant is still here
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantOneEmail);
- }
-
- /**
- * This test create a group text poll, with two groups with same name.
- * At the end, should stay on create poll page, cause the group name should be unique.
- * The group names and participants should not be lost.
- */
- @Test
- public void createGroupTextPollWithGroupsWithSameName() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel and display group form
- goToGroupForm();
-
- // Set First group name
- String groupOneName = "my group";
- sendKeysById("votingListGROUP_0.name", groupOneName);
- // Set first participant in Group 1
- // send name
- String participantOneName = "toto";
- sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantOneName);
- // send email
- String participantOneEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_0PersonToList_0.email", participantOneEmail);
-
- // Add a group
- WebElement addGroupElement = findElement(By.name("pollen.action.addVotingList"));
- Assert.assertEquals("input", addGroupElement.getTagName());
- Assert.assertTrue(addGroupElement.isDisplayed());
- addGroupElement.click();
-
- // Set name of the second group: same as first one
- sendKeysById("votingListGROUP_1.name", groupOneName);
- // Set second participant in second group
- // send name
- String participantTwoName = "toto2";
- sendKeysById("votingListGROUP_1PersonToList_0.votingId", participantTwoName);
- // send email
- String participantTwoEmail = "toto2(a)codelutin.com";
- sendKeysById("votingListGROUP_1PersonToList_0.email", participantTwoEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListGROUP_0.name"), groupOneName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantOneEmail);
- checkWebElementValue(By.id("votingListGROUP_1.name"), groupOneName);
- checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.votingId"), participantTwoName);
- checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.email"), participantTwoEmail);
- }
-
- /**
- * This test create a group text poll, with one participant without email.
- * At the end, should stay on create poll page, cause the mail is mandatory.
- */
- @Test
- public void createGroupTextPollWithParticipantWithoutMail() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel and display group form
- goToGroupForm();
-
- // Set group name
- String groupName = "my group";
- sendKeysById("votingListGROUP_0.name", groupName);
-
- // Set first participant
- // send name
- String participantName = "toto";
- sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantName);
- // send an empty email
- sendKeysById("votingListGROUP_0PersonToList_0.email", "");
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListGROUP_0.name"), groupName); // group name still here
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantName); // participant name still here
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), ""); // still no email
- }
-
- /**
- * This test create a group text poll, with one participant without name.
- * At the end, should stay on create poll page, cause the mail is mandatory.
- */
- @Test
- public void createGroupTextPollWithParticipantWithoutName() {
-
- // Prepare the poll
- preparePoll();
- // Go to option panel and display group form
- goToGroupForm();
-
-
- // Set group name
- String groupName = "my group";
- sendKeysById("votingListGROUP_0.name", groupName);
-
- // Set a participant
- // send name
- sendKeysById("votingListGROUP_0PersonToList_0.votingId", "");
- // send an empty email
- String participantEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_0PersonToList_0.email", participantEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListGROUP_0.name"), groupName); // group name still here
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), ""); // participant name still empty
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantEmail); // still the mail
- }
-
- /**
- * This test create a group text poll, with two participants with same email in same group.
- * At the end, should stay on create poll page, cause the email should be unique.
- */
- @Test
- public void createTextPollWithSameGroupParticipantsWithSameEmail() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel and display group form
- goToGroupForm();
-
- // Set group name
- String groupName = "my group";
- sendKeysById("votingListGROUP_0.name", groupName);
- // Set first participant in Group
- // send name
- String participantOneName = "toto";
- sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantOneName);
- // send email
- String participantEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_0PersonToList_0.email", participantEmail);
-
- // Set second participant in Group with same email
- // send name
- String participantTwoName = "toto2";
- sendKeysById("votingListGROUP_0PersonToList_1.votingId", participantTwoName);
- // send email
- sendKeysById("votingListGROUP_0PersonToList_1.email", participantEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListGROUP_0.name"), groupName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantEmail);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_1.votingId"), participantTwoName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_1.email"), participantEmail);
- }
-
- /**
- * This test create a group text poll, with two participants on different group with same email.
- * At the end, should stay on create poll page, cause the participant names should be unique.
- * The group names and participants should not be lost.
- */
- @Test
- public void createGroupTextPollWithParticipantsWithSameEmail() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel and display group form
- goToGroupForm();
-
- // Set First group name
- String groupOneName = "my group";
- sendKeysById("votingListGROUP_0.name", groupOneName);
- // Set first participant in Group 1
- // send name
- String participantOneName = "toto";
- sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantOneName);
- // send email
- String participantEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_0PersonToList_0.email", participantEmail);
-
- // Add a group
- WebElement addGroupElement = findElement(By.name("pollen.action.addVotingList"));
- Assert.assertEquals("input", addGroupElement.getTagName());
- Assert.assertTrue(addGroupElement.isDisplayed());
- addGroupElement.click();
-
- // Set name of the second group
- String groupTwoName = "my other group";
- sendKeysById("votingListGROUP_1.name", groupTwoName);
- // Set second participant in second group
- // send name
- String participantTwoName = "toto2";
- sendKeysById("votingListGROUP_1PersonToList_0.votingId", participantTwoName);
- // send email
- sendKeysById("votingListGROUP_1PersonToList_0.email", participantEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListGROUP_0.name"), groupOneName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantOneName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantEmail);
- checkWebElementValue(By.id("votingListGROUP_1.name"), groupTwoName);
- checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.votingId"), participantTwoName);
- checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.email"), participantEmail);
- }
-
- /**
- * This test create a group text poll, with two participant with same name in a group.
- * At the end, should stay on create poll page, cause the email should be unique.
- * The group name and participant info must be not lost
- */
- @Test
- public void createTextPollWithSameGroupParticipantsWithSameName() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel and display option panel
- goToGroupForm();
-
- // Set group name
- String groupName = "my group";
- sendKeysById("votingListGROUP_0.name", groupName);
- // Set first participant in Group
- // send name
- String participantName = "toto";
- sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantName);
- // send email
- String participantOneEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_0PersonToList_0.email", participantOneEmail);
-
- // Set second participant in Group with same email
- // send name
- sendKeysById("votingListGROUP_0PersonToList_1.votingId", participantName);
- // send email
- String participantTwoEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_0PersonToList_1.email", participantTwoEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListGROUP_0.name"), groupName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantOneEmail);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_1.votingId"), participantName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_1.email"), participantTwoEmail);
- }
-
- /**
- * This test create a group text poll, with two participants of different group with same name.
- * At the end, should stay on create poll page, cause the participant name should be unique.
- * The group names and participants should not be lost.
- */
- @Test
- public void createGroupTextPollWithParticipantsWithSameName() {
-
- // Prepare the poll
- preparePoll();
-
- // Go to option panel and group form
- goToGroupForm();
-
- // Set First group name
- String groupOneName = "my group";
- sendKeysById("votingListGROUP_0.name", groupOneName);
- // Set first participant in Group 1
- // send name
- String participantName = "toto";
- sendKeysById("votingListGROUP_0PersonToList_0.votingId", participantName);
- // send email
- String participantOneEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_0PersonToList_0.email", participantOneEmail);
-
- // Add a group
- WebElement addGroupElement = findElement(By.name("pollen.action.addVotingList"));
- Assert.assertEquals("input", addGroupElement.getTagName());
- Assert.assertTrue(addGroupElement.isDisplayed());
- addGroupElement.click();
-
- // Set name of the second group
- String groupTwoName = "my other group";
- sendKeysById("votingListGROUP_1.name", groupTwoName);
- // Set second participant in second group
- // send name
- sendKeysById("votingListGROUP_1PersonToList_0.votingId", participantName);
- // send email
- String participantTwoEmail = "toto(a)codelutin.com";
- sendKeysById("votingListGROUP_1PersonToList_0.email", participantTwoEmail);
-
- // Submit form
- WebElement submit = findElement(By.name("action:create"));
- submit.click();
-
- // All good, should be on summary page !
- checkCurrentUrl(urlFixtures.createPoll(), false);
- // Check an error message has been displayed
- WebElement errorMessage = findElement(By.className("errorMessage"));
- Assert.assertNotNull(errorMessage);
- // Check we are in good table
- checkWebElementValue(By.id("votingListGROUP_0.name"), groupOneName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.votingId"), participantName);
- checkWebElementValue(By.id("votingListGROUP_0PersonToList_0.email"), participantOneEmail);
- checkWebElementValue(By.id("votingListGROUP_1.name"), groupTwoName);
- checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.votingId"), participantName);
- checkWebElementValue(By.id("votingListGROUP_1PersonToList_0.email"), participantTwoEmail);
- }
-
- /** Click on option panel, and select Group type to restrict the poll participation */
- void goToGroupForm() {
- // Go to option panel : click on it
- WebElement optionsClick = findElement(By.xpath("//a[@href=\"#toptions\"]"));
- optionsClick.click();
-
- // Switch to group type
- List<WebElement> pollTypesElement = findElements(By.name("poll.pollType"));
- Assert.assertEquals(3, pollTypesElement.size());
- WebElement restrictedTypeElement = pollTypesElement.get(2);
- Assert.assertEquals("input", restrictedTypeElement.getTagName());
- Assert.assertEquals("GROUP", restrictedTypeElement.getAttribute("value"));
- Assert.assertTrue(restrictedTypeElement.isDisplayed());
- restrictedTypeElement.click();
- }
-
- /** Prepare the poll with general data : one title and two choices */
- void preparePoll() {
- // Go on home page
- gotoUrl(urlFixtures.createPoll());
-
- // Set title
- sendKeysByName("poll.title", "My Poll");
-
- // Set first choice
- sendKeysByName("textChoice_0.name", "Choix numero un");
-
- // Set second choice
- sendKeysByName("textChoice_1.name", "Choix numero deux");
- }
-
-}
Added: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,26 @@
+package org.chorem.pollen.ui.it;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * Tests to execute in that it.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+(a)RunWith(Suite.class)
+(a)Suite.SuiteClasses(
+ {
+ CreateFreeTextPollIT.class,
+ CreateFreeDatePollIT.class,
+ CreateRestrictedTextPollIT.class,
+ CreateTextPollForGroupIT.class,
+
+ // clean drivers
+ CleanDrivers.class
+ }
+
+)
+public class PollenTestSuite {
+}
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java 2012-08-27 09:33:29 UTC (rev 3641)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -56,6 +56,10 @@
adminVotePollUri = newPollUri(adminVoteId);
}
+ protected PollUri newPollUri(String accountId) {
+ return PollUri.newPollUri(pollId, accountId);
+ }
+
protected final void canNotModifyAnyVote() {
checkCanNotModifiyVote(notConnectedVotePollUri);
checkCanNotModifiyVote(connectedVotePollUri);
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,47 @@
+package org.chorem.pollen.ui.it;
+
+import org.chorem.pollen.ui.it.freepoll.anonymousPoll.AnonymousFreePollByAdminIT;
+import org.chorem.pollen.ui.it.freepoll.anonymousPoll.AnonymousFreePollByConnectedIT;
+import org.chorem.pollen.ui.it.freepoll.anonymousPoll.AnonymousFreePollByNotConnectedIT;
+import org.chorem.pollen.ui.it.freepoll.creatorOnly.CreatorOnlyFreePollByAdminIT;
+import org.chorem.pollen.ui.it.freepoll.creatorOnly.CreatorOnlyFreePollByConnectedIT;
+import org.chorem.pollen.ui.it.freepoll.creatorOnly.CreatorOnlyFreePollByNotConnectedIT;
+import org.chorem.pollen.ui.it.freepoll.everybody.EverybodyFreePollByAdminIT;
+import org.chorem.pollen.ui.it.freepoll.everybody.EverybodyFreePollByConnectedIT;
+import org.chorem.pollen.ui.it.freepoll.everybody.EverybodyFreePollByNotConnectedIT;
+import org.chorem.pollen.ui.it.freepoll.voterOnly.VoterOnlyFreePollByAdminIT;
+import org.chorem.pollen.ui.it.freepoll.voterOnly.VoterOnlyFreePollByConnectedIT;
+import org.chorem.pollen.ui.it.freepoll.voterOnly.VoterOnlyFreePollByNotConnectedIT;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * Tests to execute in that it.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+(a)RunWith(Suite.class)
+(a)Suite.SuiteClasses(
+ {
+ AnonymousFreePollByNotConnectedIT.class,
+ AnonymousFreePollByConnectedIT.class,
+ AnonymousFreePollByAdminIT.class,
+
+ CreatorOnlyFreePollByNotConnectedIT.class,
+ CreatorOnlyFreePollByConnectedIT.class,
+ CreatorOnlyFreePollByAdminIT.class,
+
+ VoterOnlyFreePollByNotConnectedIT.class,
+ VoterOnlyFreePollByConnectedIT.class,
+ VoterOnlyFreePollByAdminIT.class,
+
+ EverybodyFreePollByNotConnectedIT.class,
+ EverybodyFreePollByConnectedIT.class,
+ EverybodyFreePollByAdminIT.class,
+
+ CleanDrivers.class
+ }
+)
+public class PollenTestSuite {
+}
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByAdminIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByAdminIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.anonymousPoll;
+package org.chorem.pollen.ui.it.freepoll.anonymousPoll;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByConnectedIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.anonymousPoll;
+package org.chorem.pollen.ui.it.freepoll.anonymousPoll;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByNotConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/anonymousPoll/AnonymousFreePollByNotConnectedIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.anonymousPoll;
+package org.chorem.pollen.ui.it.freepoll.anonymousPoll;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByAdminIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByAdminIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.creatorOnly;
+package org.chorem.pollen.ui.it.freepoll.creatorOnly;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByConnectedIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.creatorOnly;
+package org.chorem.pollen.ui.it.freepoll.creatorOnly;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.creatorOnly;
+package org.chorem.pollen.ui.it.freepoll.creatorOnly;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByAdminIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByAdminIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.everybody;
+package org.chorem.pollen.ui.it.freepoll.everybody;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByConnectedIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.everybody;
+package org.chorem.pollen.ui.it.freepoll.everybody;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByNotConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/everybody/EverybodyFreePollByNotConnectedIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.everybody;
+package org.chorem.pollen.ui.it.freepoll.everybody;
/*
* #%L
* Pollen :: UI (struts2)
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/java-info.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/java-info.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/java-info.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,7 @@
+package org.chorem.pollen.ui.it.freepoll;
+/**
+ * To test on free poll.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/java-info.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByAdminIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByAdminIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.voterOnly;
+package org.chorem.pollen.ui.it.freepoll.voterOnly;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByConnectedIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.voterOnly;
+package org.chorem.pollen.ui.it.freepoll.voterOnly;
/*
* #%L
* Pollen :: UI (struts2)
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByNotConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/freepoll/voterOnly/VoterOnlyFreePollByNotConnectedIT.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -1,4 +1,4 @@
-package org.chorem.pollen.ui.it.voterOnly;
+package org.chorem.pollen.ui.it.freepoll.voterOnly;
/*
* #%L
* Pollen :: UI (struts2)
Added: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/java-info.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/java-info.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/java-info.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,7 @@
+package org.chorem.pollen.ui.it.restrictedpoll;
+/**
+ * To test on restricted poll.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
\ No newline at end of file
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/restrictedpoll/java-info.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml 2012-08-27 09:33:29 UTC (rev 3641)
+++ trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml 2012-08-27 12:08:51 UTC (rev 3642)
@@ -363,15 +363,15 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
-
<execution>
+ <id>run-tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<includes>
- <include>**/*IT.java</include>
+ <include>**/PollenTestSuite.java</include>
</includes>
<systemPropertyVariables>
<pollenServerPort>${pollenServerPort}</pollenServerPort>
Added: trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java (rev 0)
+++ trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,23 @@
+package org.chorem.pollen.ui.it;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * Tests to execute in that it.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+(a)RunWith(Suite.class)
+(a)Suite.SuiteClasses(
+ {
+ LoginSIT.class,
+ SecurityAccessSIT.class,
+
+ CleanDrivers.class
+ }
+
+)
+public class PollenTestSuite {
+}
Property changes on: trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/PollenTestSuite.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/CleanDrivers.java
===================================================================
--- trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/CleanDrivers.java (rev 0)
+++ trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/CleanDrivers.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -0,0 +1,26 @@
+package org.chorem.pollen.ui.it;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.junit.Test;
+
+/**
+ * A dummy test to close any used drivers while its.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4.5
+ */
+public class CleanDrivers {
+
+ /** Logger. */
+ private static final Log log = LogFactory.getLog(CleanDrivers.class);
+
+ @Test
+ public void cleanDrivers() {
+
+ if (log.isInfoEnabled()) {
+ log.info("Clean drivers");
+ }
+ WebDriverResources.cleanDrivers();
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/CleanDrivers.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java
===================================================================
--- trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java 2012-08-27 09:33:29 UTC (rev 3641)
+++ trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java 2012-08-27 12:08:51 UTC (rev 3642)
@@ -22,12 +22,12 @@
* #L%
*/
+import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.rules.TestWatcher;
-import org.junit.runner.Description;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
@@ -48,112 +48,84 @@
/** Logger. */
private static final Log log = LogFactory.getLog(WebDriverResources.class);
- protected static Collection<Object[]> safeDrivers;
+ protected static Collection<Object[]> driverTypes;
- protected Map<Class<? extends WebDriver>, WebDriver> servers =
+ protected static Map<Class<? extends WebDriver>, WebDriver> drivers =
Maps.newHashMap();
public static Collection<Object[]> driverTypes() {
- if (safeDrivers == null) {
-
- List<Class<? extends WebDriver>> allDrivers = Lists.newArrayList();
-// allDrivers.add(HtmlUnitDriver.class);
- allDrivers.add(FirefoxDriver.class);
-// allDrivers.add(ChromeDriver.class);
-// allDrivers.add(InternetExplorerDriver.class);
-// allDrivers.add(SafariDriver.class);
-
- List<Class<?>> checkedDrivers = Lists.newArrayList();
- for (Class<? extends WebDriver> driver : allDrivers) {
- boolean ok = checkDriver(driver);
- if (ok) {
- checkedDrivers.add(driver);
- }
- }
- Object[][] data = new Object[checkedDrivers.size()][1];
- int i = 0;
- for (Class<?> checkedDriver : checkedDrivers) {
- data[i++][0] = checkedDriver;
- }
- safeDrivers = Arrays.asList(data);
+ if (driverTypes == null) {
+ driverTypes = prepareDrivers();
}
-
- return safeDrivers;
+ Preconditions.checkNotNull(driverTypes);
+ return driverTypes;
}
-
- private static boolean checkDriver(Class<? extends WebDriver> driverType) {
-
- boolean result = false;
- try {
- createDriver(driverType, true);
- result = true;
- } catch (Exception e) {
-
- // can not use this driver
- if (log.isInfoEnabled()) {
- log.info("Can not use driver " + driverType.getName(), e);
- }
- }
-
- return result;
- }
-
public <W extends WebDriver> W getDriver(Class<W> driverType) throws Exception {
- W result = (W) servers.get(driverType);
- if (result == null) {
- result = createDriver(driverType, false);
-
- if (HtmlUnitDriver.class == driverType) {
- ((HtmlUnitDriver) result).setJavascriptEnabled(true);
- }
- servers.put(driverType, result);
- }
+ Preconditions.checkNotNull(driverType);
+ W result = (W) drivers.get(driverType);
+ Preconditions.checkNotNull(result);
return result;
}
- @Override
- protected void starting(Description description) {
- if (log.isInfoEnabled()) {
- log.info("Start class test " + description.getClassName());
- }
- }
-
- @Override
- protected void finished(Description description) {
-
- // close all servers
-
+ public static void cleanDrivers() {
try {
- for (WebDriver webDriver : servers.values()) {
+ for (WebDriver webDriver : drivers.values()) {
try {
webDriver.quit();
} catch (Exception e) {
if (log.isErrorEnabled()) {
- log.error("Could not close nicely driver " + webDriver, e);
+ log.error("Could not close nicely driver " +
+ webDriver, e);
}
}
}
} finally {
// clear servers
- servers.clear();
+ drivers.clear();
}
}
- protected static <W extends WebDriver> W createDriver(Class<W> driverType,
- boolean clear)
- throws Exception {
- W result = driverType.getConstructor().newInstance();
+ public static List<Object[]> prepareDrivers() {
- if (clear) {
- result.close();
+ List<Class<? extends WebDriver>> allDrivers = Lists.newArrayList();
+// allDrivers.add(HtmlUnitDriver.class);
+ allDrivers.add(FirefoxDriver.class);
+// allDrivers.add(ChromeDriver.class);
+// allDrivers.add(InternetExplorerDriver.class);
+// allDrivers.add(SafariDriver.class);
+
+ List<Class<?>> checkedDrivers = Lists.newArrayList();
+ for (Class<? extends WebDriver> driverType : allDrivers) {
+
+ try {
+ WebDriver driver = createDriver(driverType);
+ checkedDrivers.add(driverType);
+ drivers.put(driverType, driver);
+ } catch (Exception e) {
+
+ // can not use this driver
+ if (log.isInfoEnabled()) {
+ log.info("Can not use driver " + driverType.getName(), e);
+ }
+ }
}
+ Object[][] data = new Object[checkedDrivers.size()][1];
+ int i = 0;
+ for (Class<?> checkedDriver : checkedDrivers) {
+ data[i++][0] = checkedDriver;
+ }
+ return Arrays.asList(data);
+ }
+ private static <W extends WebDriver> W createDriver(Class<W> driverType)
+ throws Exception {
+ W result = driverType.getConstructor().newInstance();
+
if (HtmlUnitDriver.class == driverType) {
((HtmlUnitDriver) result).setJavascriptEnabled(true);
}
return result;
}
-
}
1
0
r3641 - trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db
by tchemit@users.chorem.org 27 Aug '12
by tchemit@users.chorem.org 27 Aug '12
27 Aug '12
Author: tchemit
Date: 2012-08-27 11:33:29 +0200 (Mon, 27 Aug 2012)
New Revision: 3641
Url: http://chorem.org/repositories/revision/pollen/3641
Log:
change admin pass by like other tests
Modified:
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db/pollendb.h2.db
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db/pollendb.h2.db
===================================================================
(Binary files differ)
1
0
Author: tchemit
Date: 2012-08-27 01:18:28 +0200 (Mon, 27 Aug 2012)
New Revision: 3640
Url: http://chorem.org/repositories/revision/pollen/3640
Log:
add missingsvn properties + license header
Removed:
trunk/pollen-ui-struts2/src/it/createPoll/src/test/resources/data/
Modified:
trunk/pollen-ui-struts2/src/it/createPoll/LICENSE.txt
trunk/pollen-ui-struts2/src/it/createPoll/README.txt
trunk/pollen-ui-struts2/src/it/createPoll/changelog.txt
trunk/pollen-ui-struts2/src/it/createPoll/goals.txt
trunk/pollen-ui-struts2/src/it/createPoll/pom.xml
trunk/pollen-ui-struts2/src/it/createPoll/src/jetty/jetty-context.xml
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java
trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/LICENSE.txt
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/README.txt
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/changelog.txt
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/goals.txt
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/pom.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/jetty/jetty-context.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByAdminIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByNotConnectedIT.java
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db/pollendb.h2.db
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml
trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml
trunk/pollen-ui-struts2/src/it/pollen-ui-it/LICENSE.txt
trunk/pollen-ui-struts2/src/it/pollen-ui-it/README.txt
trunk/pollen-ui-struts2/src/it/pollen-ui-it/changelog.txt
trunk/pollen-ui-struts2/src/it/pollen-ui-it/goals.txt
trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml
trunk/pollen-ui-struts2/src/it/security/LICENSE.txt
trunk/pollen-ui-struts2/src/it/security/README.txt
trunk/pollen-ui-struts2/src/it/security/changelog.txt
trunk/pollen-ui-struts2/src/it/security/goals.txt
trunk/pollen-ui-struts2/src/it/security/pom.xml
trunk/pollen-ui-struts2/src/it/security/src/jetty/jetty-context.xml
trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/LoginSIT.java
trunk/pollen-ui-struts2/src/it/settings.xml
trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java
trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollenIT.java
trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/PollenUrlFixtures.java
trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/LICENSE.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/README.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/changelog.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/goals.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/createPoll/pom.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/pom.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/createPoll/pom.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/pom.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/createPoll/src/jetty/jetty-context.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/jetty/jetty-context.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/jetty/jetty-context.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -3,7 +3,7 @@
#%L
Pollen :: UI (struts2)
$Id$
- $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/jetty/jetty-co… $
+ $HeadURL$
%%
Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
%%
Property changes on: trunk/pollen-ui-struts2/src/it/createPoll/src/jetty/jetty-context.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeDatePollSIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,3 +1,4 @@
+package org.chorem.pollen.ui.it;
/*
* #%L
* Pollen :: UI (struts2)
@@ -20,7 +21,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
-package org.chorem.pollen.ui.it;
import org.junit.Assert;
import org.junit.Test;
Modified: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateFreeTextPollSIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,3 +1,4 @@
+package org.chorem.pollen.ui.it;
/*
* #%L
* Pollen :: UI (struts2)
@@ -20,7 +21,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
-package org.chorem.pollen.ui.it;
import org.apache.commons.lang3.time.DateUtils;
import org.junit.Assert;
Modified: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateRestrictedTextPollSIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,3 +1,4 @@
+package org.chorem.pollen.ui.it;
/*
* #%L
* Pollen :: UI (struts2)
@@ -20,7 +21,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
-package org.chorem.pollen.ui.it;
import org.junit.Assert;
import org.junit.Test;
Modified: trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/createPoll/src/test/java/org/chorem/pollen/ui/it/CreateTextPollForGroupSIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,3 +1,4 @@
+package org.chorem.pollen.ui.it;
/*
* #%L
* Pollen :: UI (struts2)
@@ -20,7 +21,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
-package org.chorem.pollen.ui.it;
import org.junit.Assert;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/LICENSE.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/README.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/changelog.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/goals.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/pom.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/pom.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/pom.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/pom.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/jetty/jetty-context.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/jetty/jetty-context.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/jetty/jetty-context.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -3,7 +3,7 @@
#%L
Pollen :: UI (struts2)
$Id$
- $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/jetty/jetty-co… $
+ $HeadURL$
%%
Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
%%
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/jetty/jetty-context.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.bean.PollUri;
import org.openqa.selenium.By;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/AbstractIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByAdminIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByAdminIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.anonymousPoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByAdminIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByConnectedIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.anonymousPoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByConnectedIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByNotConnectedIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByNotConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.anonymousPoll;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/anonymousPoll/AnonymousFreePollByNotConnectedIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByAdminIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByAdminIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.creatorOnly;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByAdminIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByConnectedIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.creatorOnly;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByConnectedIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.creatorOnly;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/creatorOnly/CreatorOnlyFreePollByNotConnectedIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByAdminIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByAdminIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.everybody;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByAdminIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByConnectedIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.everybody;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByConnectedIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByNotConnectedIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByNotConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.everybody;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/everybody/EverybodyFreePollByNotConnectedIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByAdminIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByAdminIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByAdminIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.voterOnly;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByAdminIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByConnectedIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.voterOnly;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByConnectedIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByNotConnectedIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByNotConnectedIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByNotConnectedIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it.voterOnly;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.ui.it.AbstractIT;
import org.junit.Test;
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/java/org/chorem/pollen/ui/it/voterOnly/VoterOnlyFreePollByNotConnectedIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/db/pollendb.h2.db
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : onlyCreator free poll (by conntected user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/075ab18c50c74f83b894c042bba84ff5" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/075ab18c50c74f83b894c042bba84ff5.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : everybody free poll (by not connected user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/2262a31f374e4969bb3593e762c0cae6" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/2262a31f374e4969bb3593e762c0cae6.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : everybody free poll (by admin user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/3300e59939bd4c9797e360060b8e54be" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/3300e59939bd4c9797e360060b8e54be.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : everybody free poll (by connected user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/4cd79d032aa7433d9944ec9376c385c0" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/4cd79d032aa7433d9944ec9376c385c0.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : onlyVoter free poll (by admin user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/7103c6d4a79246699425e99e1f344b98" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/7103c6d4a79246699425e99e1f344b98.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : onlyVoter free poll (by admin user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/8518ede7bf1247d2ba0dfe222575c5ba" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/8518ede7bf1247d2ba0dfe222575c5ba.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : anonymous free poll (by admin user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/87cb5b1529374ac0b8c6b7f0b98e169c" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/87cb5b1529374ac0b8c6b7f0b98e169c.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : onlyCreator free poll (by admin user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/a04bd349d8964c4fad48ac6ececc60a0" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/a04bd349d8964c4fad48ac6ececc60a0.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : onlyVoter free poll (by connected user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/b321ddccf7d743bf9c67b2664231d14f" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/b321ddccf7d743bf9c67b2664231d14f.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : anonymous free poll (by not connected user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/cacb52f4d49047b7a7aa24ec528fcc87" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/cacb52f4d49047b7a7aa24ec528fcc87.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : onlyCreator free poll (by not conntected user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/e61a350a1d714e479aad526ee85b7bc6" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/e61a350a1d714e479aad526ee85b7bc6.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Pollen : anonymous free poll (by connected user)</title>
<link rel="alternate" href="http://localhost:8080/pollen/poll/votefor/fdd43f4c8d614a9aa48047804583508a" />
Property changes on: trunk/pollen-ui-struts2/src/it/pollVoteVisibility/src/test/resources/data/feeds/fdd43f4c8d614a9aa48047804583508a.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/pollen-ui-it/LICENSE.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/pollen-ui-it/README.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/pollen-ui-it/changelog.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/pollen-ui-it/goals.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Property changes on: trunk/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/security/LICENSE.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/security/README.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/security/changelog.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Property changes on: trunk/pollen-ui-struts2/src/it/security/goals.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/security/pom.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/security/pom.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/security/pom.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Property changes on: trunk/pollen-ui-struts2/src/it/security/pom.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/security/src/jetty/jetty-context.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/security/src/jetty/jetty-context.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/security/src/jetty/jetty-context.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -3,7 +3,7 @@
#%L
Pollen :: UI (struts2)
$Id$
- $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/jetty/jetty-co… $
+ $HeadURL$
%%
Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
%%
Property changes on: trunk/pollen-ui-struts2/src/it/security/src/jetty/jetty-context.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/LoginSIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/LoginSIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/security/src/test/java/org/chorem/pollen/ui/it/LoginSIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.junit.Assert;
import org.junit.Test;
Modified: trunk/pollen-ui-struts2/src/it/settings.xml
===================================================================
--- trunk/pollen-ui-struts2/src/it/settings.xml 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/it/settings.xml 2012-08-26 23:18:28 UTC (rev 3640)
@@ -4,23 +4,22 @@
EUGene :: Maven plugin
$Id$
- $HeadURL: http://svn.nuiton.org/svn/eugene/trunk/eugene-maven-plugin/src/it/settings.… $
+ $HeadURL$
%%
Copyright (C) 2006 - 2010 CodeLutin
%%
This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Lesser Public License for more details.
+ GNU General Public License for more details.
- You should have received a copy of the GNU General Lesser Public
- License along with this program. If not, see
- <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
Property changes on: trunk/pollen-ui-struts2/src/it/settings.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.chorem.pollen.bean.PollUri;
import org.chorem.pollen.business.persistence.Poll;
Property changes on: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollenIT.java
===================================================================
--- trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollenIT.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollenIT.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
Property changes on: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/AbstractPollenIT.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/PollenUrlFixtures.java
===================================================================
--- trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/PollenUrlFixtures.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/PollenUrlFixtures.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import com.google.common.base.Preconditions;
import org.apache.commons.logging.Log;
Property changes on: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/PollenUrlFixtures.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
Modified: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java
===================================================================
--- trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java 2012-08-26 23:15:33 UTC (rev 3639)
+++ trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java 2012-08-26 23:18:28 UTC (rev 3640)
@@ -1,4 +1,26 @@
package org.chorem.pollen.ui.it;
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
Property changes on: trunk/pollen-ui-struts2/src/test/java/org/chorem/pollen/ui/it/WebDriverResources.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
1
0