Stop posting new threads with the same basic topic. You need to clarify yourself by what you mean as a "test case".

I'm assuming it's amazingly simplistic to figure out the answer here. Seriously, what happens in a coke machine?

1) You put a coin or bill in.
2) The LED lights up telling you how much money you have.
3) You press a button.
4) The machine either:
... a) Flashes a light if there is nothing to dispense in what you press.
... b) Drops a drink.
5) Spits out change.

So given that, what's so difficult about figuring out test cases?

Quzah.