Charlee Chitsuk
Charlee Chitsuk

Reputation: 9069

JBoss Arquillian @InSequence with JUnit 4.12

I'm using Arquillian: 1.1.5.Final against the latest JUnit: 4.12. The test method which is annotated with @InSequence can not be used as the following exception.

java.lang.UnsupportedOperationException
    at java.util.Collections$UnmodifiableList$1.set(Collections.java:1412)
    at java.util.Collections.sort(Collections.java:234)
    at org.jboss.arquillian.junit.Arquillian.getChildren(Arquillian.java:73)

The other stackoverflow question here, also mentions about this error. Sadly the answer is back to use JUnit: 4.11 instead. Furthermore I also found the Arquiilian Issue: ARQ-1835. Again there is no any activity yet. I've tried to post to the Arquiliian discussion forum here which seems no activity as well.

Could you please help to advise the workaround for solving this issue?

Upvotes: 0

Views: 994

Answers (1)

NamshubWriter
NamshubWriter

Reputation: 24286

This was fixed in Arquillian. See this commit.

To fix this issue, upgrade to Arquillian 1.1.6 or later.

Upvotes: 1

Related Questions