|
From: <pe...@us...> - 2003-11-21 04:42:49
|
Update of /cvsroot/neuclear/neuclear-bet/src/test/org/neuclear/bet/totalizers
In directory sc8-pr-cvs1:/tmp/cvs-serv10206/src/test/org/neuclear/bet/totalizers
Modified Files:
TotalizerTest.java
Log Message:
EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
Otherwise You will Finaliate.
Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
This should hopefully make everything more stable (and secure).
Index: TotalizerTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-bet/src/test/org/neuclear/bet/totalizers/TotalizerTest.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** TotalizerTest.java 20 Sep 2003 23:19:22 -0000 1.1.1.1
--- TotalizerTest.java 21 Nov 2003 04:42:46 -0000 1.2
***************
*** 12,23 ****
* Time: 5:13:43 PM
*/
! public class TotalizerTest extends AbstractBettingTest {
! public TotalizerTest(String string) {
super(string);
}
! public void testEventInfo() throws InterruptedException {
! Totalizer tote = createTotalizer();
assertNotNull(tote);
BettingEvent event = tote.getEvent("Race 3");
--- 12,23 ----
* Time: 5:13:43 PM
*/
! public final class TotalizerTest extends AbstractBettingTest {
! public TotalizerTest(final String string) {
super(string);
}
! public final void testEventInfo() throws InterruptedException {
! final Totalizer tote = createTotalizer();
assertNotNull(tote);
BettingEvent event = tote.getEvent("Race 3");
***************
*** 30,41 ****
}
! public void testMakeBet() throws BettingEventExpired, InterruptedException {
! Totalizer tote = createTotalizer();
! BettingEvent event = tote.getEvent("Race 1");
Iterator iter = event.listOutcomes();
int bet = 100;
int pool = 0;
while (iter.hasNext()) {
! BettableOutcome outcome = (BettableOutcome) iter.next();
assertNotNull(outcome.bet(bet));
pool += bet;
--- 30,41 ----
}
! public final void testMakeBet() throws BettingEventExpired, InterruptedException {
! final Totalizer tote = createTotalizer();
! final BettingEvent event = tote.getEvent("Race 1");
Iterator iter = event.listOutcomes();
int bet = 100;
int pool = 0;
while (iter.hasNext()) {
! final BettableOutcome outcome = (BettableOutcome) iter.next();
assertNotNull(outcome.bet(bet));
pool += bet;
|