Originally posted by Alan W Morgan:
Hey all,
I read a few places that ppl were enforcing the 48 hour rule on the UI.
That is to say that if the date on the room if not within 48 hours of current date then you can't book it.
I was just looking at my data file and noticed that only 4 of them aren't in the past.
If I enforce this then how will anyone even test it as the chances of the test being within 48 of the date is very remote.
Thoughts ?
Originally posted by Alan Morgan:
Fair point.
I take it from your answer that
1. You think I should enforce this rule
2. I should have tests that create new rooms for the purposes of my own testing.
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Originally posted by Paul Bourdeaux:
1. You think I should enforce this rule
Definately enforce this rule. Not doing so has resulted in automatic failures in the past! I also agree with Ta Ri Ki Sun as to creating new data for your own testing.
scja|scjp|scjd|scwcd|scbcd|scdjws|scmad
Originally posted by Alan Morgan:
Good point Uwe,
scja|scjp|scjd|scwcd|scbcd|scdjws|scmad
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
SCJP 1.6, SCJD, SCWCD, SCBCD.
Be nice to people on the way up cos, you'll need 'em on your way down - From somewhere I can't remember!
Originally posted by Muthaiah Ram:
Hmm - So what happens to people, like me, who validate the booking date at the client side (view)? Any test scripts to test the DB, the update in this case, would fail (by not enforcing the 48h rule).
I have a dialog that takes the input from the user for the booking and checks there itself if the given booking date is valid or not. Only if it valid it does a update call on the DB.
So - what is the verdict here?
Originally posted by donal horgan:
I'm kinda confused as to what you are all saying but basically all i did was have a drop down menu on the GUI for "Tonight" or "Tomorrow night" for booking.
Then go straight toi the Data.java class from there.
MOON -- SCJP1.2
MOON -- SCJP1.2
Initially, the system will support only the CSRs, although the hope is that this interim step will give them a starting point for migrating the system to the web
SCJP, OCMJD, OCMJEA
Originally posted by Kuno Snaglers:
You MUST implement this feature in a way!! I just failed because of the automatic failure....
Kuno
TH
Don't touch me. And dont' touch this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|