junit.framework.AssertionFailedError: Wrong number of transactions expected:<4> but was:<5>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Kuali JIRA by Kevin Kronenbitter, 1 year ago
Wrong number of transactions expected:<4> but was:<5>
via Kuali JIRA by Kevin Kronenbitter, 1 year ago
Wrong number of transactions expected:<4> but was:<5>
via Stack Overflow by Alagappan Ramu
, 2 years ago
expected: &lt;[Ljava.lang.String;@2352544e&gt; but was:&lt;[Ljava.lang.String;@721cdeff&gt;
via metamodel-dev by Ankit Kumar, 1 year ago
expected:<Fri Dec 31 > 12:00:00 > > > PST 2010> but was:<Fri Dec 31 00:00:00 PST 2010>
via metamodel-dev by Arvind Prabhakar, 1 year ago
expected:<Fri Dec 31 > > 12:00:00 > > > > PST 2010> but was:<Fri Dec 31 00:00:00 PST 2010>
via metamodel-dev by Henry Saputra, 1 year ago
expected:<Fri Dec 31 >> > 12:00:00 >> > > > PST 2010> but was:<Fri Dec 31 00:00:00 PST 2010>
junit.framework.AssertionFailedError: Wrong number of transactions expected:<4> but was:<5>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at org.kuali.kfs.gl.batch.service.PosterServiceTest.testPostExpenditureTransaction(PosterServiceTest.java:628)

Users with the same issue

Once, 4 weeks ago
Once, 1 month ago
28 times, 1 month ago
Once, 3 months ago
4 times, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.