java.lang.AssertionError: Expected: is "2.1251E1" but: was "2E1"

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by berryma4
, 1 year ago
Expected: is "2.1251E1" but: was "2E1"
via Stack Overflow by Adio
, 2 years ago
Expected: is <2> but: was <1>
via GitHub by gregw
, 1 year ago
Expected: is "file:/opt/jetty-distro/demo.base/etc/something.xml" but: was "file:${jetty.base}/etc/something.xml"
via Stack Overflow by EvgeniySharapov
, 2 years ago
Expected: "null()" but: was "/.[@name='data'][1][@name='data'][1]"
via Stack Overflow by Elad Benda
, 1 year ago
Expected: <2> but: was <26> <Click to see difference>
via Stack Overflow by JulioAragao
, 2 years ago
Expected: iterable containing [with toString() "c"] but: item 0: toString() was "a"
java.lang.AssertionError: Expected: is "2.1251E1" but: was "2E1"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.csstudio.simplepv.VTypeFormatTest.expFormatValueOfDoubleHasCharacteristicLtTen(VTypeFormatTest.java:40)

Users with the same issue

3 times, 4 months ago
Once, 10 months ago
3 times, 1 year ago
4 times, 1 month ago
3 times, 2 months ago

Write tip

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