I am sure Johannesburg is where they filmed that scene, but I am also sure they didn't film in Sokovia. The shipyard shown is in Bangladesh and not Africa, so they clearly don't maintain faithful to the actual global location of the place where they shoot the film.