java.lang.AssertionError: Expected: null but: was "sun.font.CFontManager" <Click to see difference>


Solutions on the web385

Solution icon of apache
via Apache's JIRA Issue Tracker by David Pilato, 1 year ago
Expected: null but: was "sun.font.CFontManager" <Click to see difference>

Solution icon of apache
via Apache's JIRA Issue Tracker by David Pilato, 1 year ago
Expected: null but: was "sun.font.CFontManager" <Click to see difference>

Solution icon of web
Expected: but: was <Click to see difference>

Solution icon of web
Expected: but: was <Click to see difference>

Solution icon of stackoverflow
Expected: is <ADMIN> but: was null Expected :is <ADMIN> Actual :null <Click to see difference>

Solution icon of stackoverflow
Expected: <2> but: was <26> <Click to see difference>

Solution icon of stackoverflow
Expected: is not null but: was null Expected :is not null Actual :null <Click to see difference>

Solution icon of stackoverflow
Expected: is not null but: was null Expected :is not null Actual :null <Click to see difference>

Solution icon of github
Expected: is <1> but: was <5> Expected :is <1> Actual :<5> <Click to see difference>

Solution icon of github
Expected: is "null" but: was "[]"

Stack trace

java.lang.AssertionError: 
Expected: null
     but: was "sun.font.CFontManager"
 <Click to see difference>
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
	at org.elasticsearch.plugin.mapper.attachments.test.TikaSystemTest.testSystem(TikaSystemTest.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

5 times, 1 month ago
Once, 2 months ago
2 times, 3 months ago
4 times, 6 months ago
7 times, 11 months ago
17 more bugmates