Issue 31 in opentestbed: FullTilt hand history writer unit test fails

3 views
Skip to first unread message

opent...@googlecode.com

unread,
Nov 15, 2010, 9:41:34 AM11/15/10
to opent...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 31 by bgranvea: FullTilt hand history writer unit test fails
http://code.google.com/p/opentestbed/issues/detail?id=31

The unit test fails because of a problem with the timezone in the generated
FullTilt history file:

On my computer:

Full Tilt Poker Game #1111: Table OpenTestBed - $0.01/$0.02 - No Limit
Hold'em - 12:00:00 CET - 2000/01/01

Expected:

Full Tilt Poker Game #1111: Table OpenTestBed - $0.01/$0.02 - No Limit
Hold'em - 12:00:00 MEZ - 2000/01/01

I'm not sure if it is better to fix the test or the way the date is
formatted.


bluegaspode

unread,
Nov 15, 2010, 11:40:06 AM11/15/10
to opent...@googlegroups.com
Damn - and I already made the time to be always the same ;) ...
I think the timezone needs to be part of the history-file (otherwise we might get into trouble for PokerTracker or HoldemManager imports) so one would need to find a way to make the JUnit-Tests more robust.
Can the current timezone be set by some static method call into some Java method ?

Maybe
Locale.setDefault(Locale.GERMANY)
working ?

Cheers
Stefan

Boris Granveaud

unread,
Nov 18, 2010, 4:49:49 AM11/18/10
to opent...@googlegroups.com
it works if you add the following code before the test:

      TimeZone.setDefault(TimeZone.getTimeZone("ECT"));
      Locale.setDefault(Locale.GERMANY);

Boris.
Reply all
Reply to author
Forward
0 new messages