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@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@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@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@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@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@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@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@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@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@codelutin.com> + * @since 1.4.5 + */ +@RunWith(Suite.class) +@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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/pollVoteVisi... $ + * %% + * 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@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/pollVoteVisi... $ + * %% + * 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@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/pollVoteVisi... $ + * %% + * 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@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@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@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@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@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@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@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@codelutin.com> + * @since 1.4.5 + */ +@RunWith(Suite.class) +@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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> -