When the war began , however , it declared its neutrality , arguing that because Austria-Hungary had itself declared war on Serbia , Romania was under no obligation to join the war .
Austria-Hungary then declared war on Serbia .