We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf5bb8b commit 631a9d5Copy full SHA for 631a9d5
src/test/java/org/rulez/demokracia/pdengine/VoteCastTest.java
@@ -43,4 +43,13 @@ public void voteCast_records_a_secret_id_with_the_vote_cast() {
43
voteManager.castVote(adminInfo.voteId, ballot, theCastVote);
44
assertTrue(vote.votesCast.get(0).secretId instanceof String);
45
}
46
+
47
+ @TestedBehaviour("cast vote identifier is different from the ballot identifier")
48
+ @Test
49
+ public void voteCast_identifier_is_different_from_the_ballot_identifier() {
50
+ String ballotId = voteManager.obtainBallot(adminInfo.voteId, adminInfo.adminKey);
51
+ CastVote castVote = voteManager.castVote(adminInfo.voteId, ballot, theCastVote);
52
53
+ assertNotEquals(ballotId, castVote.secretId);
54
+ }
55
0 commit comments