But, I think it is sufficient that a reasonable person should know to a substantial certainty that coffee during class will cause them to have to intrupt the class to get up and go to the bathroom.

Good point, that being the case the reasonable person should forsee the extreme likelihood of said event and thus should only drink a sufficient amount to keep them awake and not a substantial amount which would cause them to like piss their pants.