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 | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 70#236157979

    GitHub | 9 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 | 8 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