Does Armor Automatcially Repair Itself With Mending?

Does Armor Automatcially Repair Itself With Mending? The Mending enchantment uses xp (experience) to mend your equipped tools, weapons and armor. Each time you gain experience by killing mobs or mining certain items, the experience earned will automatically be used to repair any damaged tools, weapons or armor that you have equipped (and are enchanted