Court hears how barrage of abusive texts escalated to assault.