convincing yourself that something is going to happen before it does, thus leading to the occurrence of what you originally expected, is called
a self-fulfilling prophecy.