A Belfast man allegedly smashed his way into a caravan to attack an ex-partner with a shovel, a court heard today.