java.lang.AssertionError: removed snapshots did go into trash Expected: null but: was ["artifact-1.0-20010101.184024-1.jar"]

Sonatype JIRA | Benjamin Hanzelmann | 5 years 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

    https://builds.sonatype.org/job/nexus-oss-its/jdk=java-6x,label=win/lastCompletedBuild/testReport/org.sonatype.nexus.integrationtests.nexus4579/Nexus4579OptionalTrashForSnapshotsIT/removeAllSnapshotsDirectly/ {code} org.sonatype.nexus.integrationtests.nexus4579.Nexus4579OptionalTrashForSnapshotsIT.removeAllSnapshotsDirectly (from Nexus4579OptionalTrashForSnapshotsIT) Failing for the past 1 build (Since Failed#90 ) Took 0.73 sec. add description Error Message removed snapshots did go into trash Expected: null but: was ["artifact-1.0-20010101.184024-1.jar"] Stacktrace java.lang.AssertionError: removed snapshots did go into trash Expected: null but: was ["artifact-1.0-20010101.184024-1.jar"] at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.sonatype.nexus.integrationtests.nexus4579.Nexus4579OptionalTrashForSnapshotsIT.removeAllSnapshotsDirectly(Nexus4579OptionalTrashForSnapshotsIT.java:108) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:157) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:97) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70) ... Removed 26 stack frames {code}

    Sonatype JIRA | 5 years ago | Benjamin Hanzelmann
    java.lang.AssertionError: removed snapshots did go into trash Expected: null but: was ["artifact-1.0-20010101.184024-1.jar"]
  2. 0

    rexsl-test failure

    GitHub | 4 years ago | simonjenga
    java.lang.AssertionError: XPath '//y[.='\u0443\u0440\u0430!']' has to exist in: HTTP request: HTTP request body HTTP response (200): <x a='1'><!-- hi --><y>???!</y></x> Expected: not an empty collection but: was <ListWrapper(original=[], dom=[x: null], xpath=//y[.='???!'])>
  3. 0

    DataflowAssert doesn't pass TableRow test

    Stack Overflow | 1 year ago | Jorge Z
    java.lang.AssertionError: Expected: iterable over [<{id=x}>] in any order but: Not matched: <{id=x}>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Expected/actual dialogue for failed tests not working when using hamcrest

    GitHub | 6 years ago | t-jones
    java.lang.AssertionError: test blah failed Expected: is "blah blah blah" but: was "yada yada yada"

  1. marcbouvierdav 6 times, last 18 hours ago
  2. rsprangemeijer 1 times, last 4 days ago
  3. olle.hallin 1 times, last 5 days ago
  4. aldrinleal 2 times, last 3 weeks ago
  5. Adrien 15 times, last 1 month ago
7 more registered users
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.AssertionError

    removed snapshots did go into trash Expected: null but: was ["artifact-1.0-20010101.184024-1.jar"]

    at org.hamcrest.MatcherAssert.assertThat()
  2. Hamcrest
    MatcherAssert.assertThat
    1. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    1 frame
  3. org.sonatype.nexus
    Nexus4579OptionalTrashForSnapshotsIT.removeAllSnapshotsDirectly
    1. org.sonatype.nexus.integrationtests.nexus4579.Nexus4579OptionalTrashForSnapshotsIT.removeAllSnapshotsDirectly(Nexus4579OptionalTrashForSnapshotsIT.java:108)
    1 frame
  4. org.apache.maven
    TestNGProvider.invoke
    1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)
    2. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:157)
    3. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:97)
    4. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
    4 frames
  5. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
    4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
    5 frames