BROOKLYN - A judge has ruled that the man charged with shooting a police officer in Crown Heights back in February must stand trial. 

According to prosecutors, 28-year-old Rashun Robinson shot officer James Li multiple times outside a White Castle. He and another man were pursued by Li and his partner for skipping out on a bus fare. 

The president of the Patrolmen's Benevolent Association says Robinson's defense team had filed a motion to dismiss the charges, claiming that he had the right to defend himself. 

Li had only been on the job for three months at the time of the shooting, and he’s expected to make a full recovery. 

Cops say Robinson was found with a gun when he was caught. He faces a number of charges, including attempted murder.