A court in Myanmar has sentenced two Reuters journalists to seven years in prison for violating a state secrets act while investigating violence against the Rohingya minority.

Wa Lone and Kyaw Soe Oo, nationals of Myanmar, were arrested while carrying official documents which had just been given to them by police officers.

They have maintained their innocence, saying they were set up by police.

The case has been widely seen as a test of press freedom in Myanmar.

"I have no fear," Wa Lone, one of the two journalists, said after the verdict. "I have not done anything wrong. I believe in justice, democracy and freedom."

The two men, who both have families with young children, have been in prison since their arrest in December 2017.

"Today is a sad day for Myanmar, Reuters journalists Wa Lone and Kyaw Soe Oo, and press freedom anywhere," Reuters editor-in-chief Stephen Adler said.

Both of the journalists are Myanmar citizens who were working for the international news agency.

Judge Ye Lwin told the court in Yangon the pair had "intended to harm the interests of the state".

"And so they have been found guilty under the state secrets act," he said.

Wa Lone, 32, and Kyaw Soe Oo, 28, had been collecting evidence about the execution of 10 men by the army in the village of Inn Din in northern Rakhine.

During their investigation, they were offered documents by two police officers, but were arrested immediately afterwards for the possession of those documents.

Authorities later launched their own probe into the killings, confirming the massacre took place and promising to take action against those who had taken part.

'Deeply troubling'
The verdict has been widely criticised by observers and human rights groups.

"We are extremely disappointed by this verdict," Britain's ambassador to Myanmar, Dan Chugg said according to Reuters.

US ambassador Scot Marciel echoed the same criticism, saying the court's decision was "deeply troubling for everybody who has struggled so hard here for media freedom".

The UN's resident and humanitarian co-ordinator in Myanmar Knut Ostby said the UN had "consistently called for the release" of the journalists and that "a free press is essential for peace, justice and human rights for all. We are disappointed by today's court decision".

"The outrageous convictions show Myanmar courts' willingness to muzzle those reporting on military atrocities," Brad Adams, Asia director at Human Rights Watch, said.

"These sentences mark a new low for press freedom and further backsliding on rights under Aung San Suu Kyi's government."