java.lang.AssertionError: Expecting <["ClassInDefaultPackage", "DefaultPackageTest", "com.apple.mrj.MRJAboutHandler", "com.apple.mrj.MRJApplicationUtils", "com.apple.mrj.MRJFileUtils", ... "org.junit.validator.PublicClassValidator", "org.junit.validator.TestClassValidator", "org.junit.validator.ValidateWith"]> not to contain <["io.github.lukehutch.fastclasspathscanner.test.whitelisted.Impl1Sub"]> but found <["io.github.lukehutch.fastclasspathscanner.test.whitelisted.Impl1Sub"]>

GitHub | btbouwens | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 70#236157979

    GitHub | 8 months ago | btbouwens
    java.lang.AssertionError: Expecting <["ClassInDefaultPackage", "DefaultPackageTest", "com.apple.mrj.MRJAboutHandler", "com.apple.mrj.MRJApplicationUtils", "com.apple.mrj.MRJFileUtils", ... "org.junit.validator.PublicClassValidator", "org.junit.validator.TestClassValidator", "org.junit.validator.ValidateWith"]> not to contain <["io.github.lukehutch.fastclasspathscanner.test.whitelisted.Impl1Sub"]> but found <["io.github.lukehutch.fastclasspathscanner.test.whitelisted.Impl1Sub"]>
  2. 0

    JUnit test always fails when comparing two objects

    Stack Overflow | 7 months ago | KunAn Hsu
    java.lang.AssertionError: expected:<com.kashu.demo.User@554d7139> but was:<com.kashu.demo.User@6643364a> 20:02:16.869 [DEBUG] [TestEventLogger] at org.junit.Assert.fail(Assert.java:88) 20:02:16.869 [QUIET] [system.out] 20:02:16.868 [ 20:02:16.869 [DEBUG] [TestEventLogger] at org.junit.Assert.failNotEquals(Assert.java:834) 20:02:16.869 [QUIET] [system.out] INFO] [org.gradle.api.internal.tasks.testing.worker.TestWorker] Gradle Test Executor 1 finished executing tests. 20:02:16.870 [DEBUG] [TestEventLogger] at org.junit.Assert.assertEquals(Assert.java:118) 20:02:16.870 [DEBUG] [TestEventLogger] at org.junit.Assert.assertEquals(Assert.java:144) 20:02:16.870 [DEBUG] [TestEventLogger] at com.kashu.demo.UserRepositoryTest.findSavedUserById(UserRepositoryTest.java:67) 20:02:16.871 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 20:02:16.871 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    Root Cause Analysis

    1. java.lang.AssertionError

      Expecting <["ClassInDefaultPackage", "DefaultPackageTest", "com.apple.mrj.MRJAboutHandler", "com.apple.mrj.MRJApplicationUtils", "com.apple.mrj.MRJFileUtils", ... "org.junit.validator.PublicClassValidator", "org.junit.validator.TestClassValidator", "org.junit.validator.ValidateWith"]> not to contain <["io.github.lukehutch.fastclasspathscanner.test.whitelisted.Impl1Sub"]> but found <["io.github.lukehutch.fastclasspathscanner.test.whitelisted.Impl1Sub"]>

      at io.github.lukehutch.fastclasspathscanner.issues.IssuesTest.issue70()
    2. io.github.lukehutch
      IssuesTest.issue70
      1. io.github.lukehutch.fastclasspathscanner.issues.IssuesTest.issue70(IssuesTest.java:33)
      1 frame
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3 frames