junit.framework.AssertionFailedError: expected:<-1> but was:<0>

Couchbase JIRA | Andrei Baranouski | 2 years ago
  1. 0

    ManagerTest.testClose() fails sometimes on Jenkins

    GitHub | 2 years ago | hideki
    junit.framework.AssertionFailedError: expected:<-1> but was:<0>
  2. 0

    http://172.23.113.52:8080/job/couchbase-lite-android-build/68/console :preDexDebugTest :dexDebugTest :processDebugTestJavaRes UP-TO-DATE :validateDebugSigning :packageDebugTest :assembleDebugTest :connectedAndroidTest com.couchbase.lite.ManagerTest > testClose[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError: expected:<-1> but was:<0> at com.couchbase.lite.ManagerTest.testClose(ManagerTest.java:237) com.couchbase.lite.replicator.ChangeTrackerTest > testChangeTrackerBackoffExceptions[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError at com.couchbase.lite.replicator.ChangeTrackerTest.testChangeTrackerBackoff(ChangeTrackerTest.java:356) com.couchbase.lite.replicator.ChangeTrackerTest > testChangeTrackerBackoffInvalidJson[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError at com.couchbase.lite.replicator.ChangeTrackerTest.testChangeTrackerBackoff(ChangeTrackerTest.java:356) com.couchbase.lite.replicator.ReplicationTest > testGoOffline[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError at com.couchbase.lite.replicator.ReplicationTest.testGoOffline(ReplicationTest.java:2627) com.couchbase.lite.replicator.ReplicationTest > testGoOfflinePusher[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError: Expected: <null> but was: POST /db/_bulk_docs HTTP/1.1 at com.couchbase.lite.replicator.ReplicationTest.testGoOfflinePusher(ReplicationTest.java:2849) com.couchbase.lite.replicator.ReplicationTest > testMockPullBulkDocsSyncGw[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError at com.couchbase.lite.replicator.ReplicationTest.mockPullBulkDocs(ReplicationTest.java:3385) :connectedAndroidTest FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':connectedAndroidTest'. > There were failing tests. See the report at: file:///home/couchbase/jenkins/workspace/couchbase-lite-android-build/build/outputs/reports/androidTests/connected/index.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED

    Couchbase JIRA | 2 years ago | Andrei Baranouski
    junit.framework.AssertionFailedError: expected:<-1> but was:<0>
  3. 0

    http://172.23.113.52:8080/job/couchbase-lite-android-build/68/console :preDexDebugTest :dexDebugTest :processDebugTestJavaRes UP-TO-DATE :validateDebugSigning :packageDebugTest :assembleDebugTest :connectedAndroidTest com.couchbase.lite.ManagerTest > testClose[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError: expected:<-1> but was:<0> at com.couchbase.lite.ManagerTest.testClose(ManagerTest.java:237) com.couchbase.lite.replicator.ChangeTrackerTest > testChangeTrackerBackoffExceptions[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError at com.couchbase.lite.replicator.ChangeTrackerTest.testChangeTrackerBackoff(ChangeTrackerTest.java:356) com.couchbase.lite.replicator.ChangeTrackerTest > testChangeTrackerBackoffInvalidJson[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError at com.couchbase.lite.replicator.ChangeTrackerTest.testChangeTrackerBackoff(ChangeTrackerTest.java:356) com.couchbase.lite.replicator.ReplicationTest > testGoOffline[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError at com.couchbase.lite.replicator.ReplicationTest.testGoOffline(ReplicationTest.java:2627) com.couchbase.lite.replicator.ReplicationTest > testGoOfflinePusher[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError: Expected: <null> but was: POST /db/_bulk_docs HTTP/1.1 at com.couchbase.lite.replicator.ReplicationTest.testGoOfflinePusher(ReplicationTest.java:2849) com.couchbase.lite.replicator.ReplicationTest > testMockPullBulkDocsSyncGw[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED  junit.framework.AssertionFailedError at com.couchbase.lite.replicator.ReplicationTest.mockPullBulkDocs(ReplicationTest.java:3385) :connectedAndroidTest FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':connectedAndroidTest'. > There were failing tests. See the report at: file:///home/couchbase/jenkins/workspace/couchbase-lite-android-build/build/outputs/reports/androidTests/connected/index.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED

    Couchbase JIRA | 2 years ago | Andrei Baranouski
    junit.framework.AssertionFailedError: expected:<-1> but was:<0>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ManagerTest.testClose() failed with latest master branch

    GitHub | 7 months ago | hideki
    junit.framework.AssertionFailedError: expected:<0> but was:<1>
  6. 0

    Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 15.305 sec <<< FAILURE! wait policy with timeout failure (org.mule.util.concurrent.WaitPolicyTestCase) Time elapsed: 1.248 sec <<< FAILURE! junit.framework.AssertionFailedError: expected:<1> but was:<0> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:280) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:198) at junit.framework.Assert.assertEquals(Assert.java:204) at org.mule.util.concurrent.WaitPolicyTestCase.testWaitPolicyWithTimeoutFailure(WaitPolicyTestCase.java:232) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:221) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:201) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

    MuleSoft JIRA | 9 years ago | andrew cooke
    junit.framework.AssertionFailedError: expected:<1> but was:<0>

    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. junit.framework.AssertionFailedError

      expected:<-1> but was:<0>

      at com.couchbase.lite.ManagerTest.testClose()
    2. com.couchbase.lite
      ManagerTest.testClose
      1. com.couchbase.lite.ManagerTest.testClose(ManagerTest.java:237)
      1 frame