A man shot five times by a Denver police officer after the man approached the officer with a hammer went on trial Tuesday on attempted felony assault charges.

On Dec. 4, 2011, James Bo-Rain Bradley walked up to a police cruiser sitting in a Kmart parking lot on West Evans Avenue.

Officer Sean Cronin was doing paperwork and eating his lunch inside the cruiser when Bradley allegedly smashed the driver-side window with a hammer.

Cronin, who told investigators he feared for his life, pulled out his 9mm Glock pistol and shot Bradley in the upper torso.

The Denver district attorney's office ruled the shooting justified.