Fluid ignores obstacle
You have to activate the fluid modifier for your cake in the physics panel and set the type to "obstacle". Then you can choose if using the shell (surface), the volume of your obstacle, or both.

For your task I suggest to use shell volume initialization.

If nothing happen you probably have inverted normals. Try recalculate them.

Hope it helped you!

Cheers!