Build to verify Spring IO compatibility.

Build: #388 failed Changes by Mahmoud Ben Hassine

Build result summary

Details

Completed
Duration
2 minutes
Labels
None
Agent
bamboo-13.af.pivotal.io
Revision
4ff28bf09b008f5a0301a24ec456e3b183e510c5 4ff28bf09b008f5a0301a24ec456e3b183e510c5
Total tests
3411
Failing since
#385 (Changes by Mahmoud Ben Hassine and Saikat Bhadra <saikat.bhadra@gmail.com>)

Responsible

Code commits

Author Commit Message Commit date
Mahmoud Ben Hassine Mahmoud Ben Hassine 4ff28bf09b008f5a0301a24ec456e3b183e510c5 4ff28bf09b008f5a0301a24ec456e3b183e510c5 Add new line in gradle.properties

Tests

Existing test failures 20
Status Test Failing since View job Duration
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.MongoItemReaderTests.testQueryWithFields(MongoItemReaderTests.java:173)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.MongoItemReaderTests.testQueryWithHint(MongoItemReaderTests.java:192)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.MongoItemReaderTests.testBasicQuerySecondPage(MongoItemReaderTests.java:156)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.MongoItemReaderTests.testBasicQueryFirstPage(MongoItemReaderTests.java:139)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{["name": "foo"]}> but was:<{[ "name" : "foo" ]}>
org.junit.ComparisonFailure: expected:<{["name": "foo"]}> but was:<{[ "name" : "foo" ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.MongoItemReaderTests.testQueryWithParameters(MongoItemReaderTests.java:214)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{["name": "foo"]}> but was:<{[ "name" : "foo" ]}>
org.junit.ComparisonFailure: expected:<{["name": "foo"]}> but was:<{[ "name" : "foo" ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.MongoItemReaderTests.testQueryWithCollection(MongoItemReaderTests.java:237)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
	at org.springframework.batch.item.data.MongoItemWriter.doWrite(MongoItemWriter.java:143)
	at org.springframework.batch.item.data.MongoItemWriter$1.beforeCommit(MongoItemWriter.java:166)
	at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:96)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:922)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:730)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:714)
(48 more lines...)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
	at org.springframework.batch.item.data.MongoItemWriterTests.testResourceKeyCollision(MongoItemWriterTests.java:257)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
(41 more lines...)
org.mockito.exceptions.misusing.InvalidUseOfMatchersException: org.mockito.exceptions.misusing.InvalidUseOfMatchersException: 
Misplaced or misused argument matcher detected here:

-> at org.springframework.batch.item.data.MongoItemWriterTests.testResourceKeyCollision(MongoItemWriterTests.java:257)

You cannot use argument matchers outside of verification or stubbing.
Examples of correct usage of argument matchers:
    when(mock.get(anyInt())).thenReturn(null);
(80 more lines...)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
	at org.springframework.batch.item.data.MongoItemWriter.doWrite(MongoItemWriter.java:138)
	at org.springframework.batch.item.data.MongoItemWriter$1.beforeCommit(MongoItemWriter.java:166)
	at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:96)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:922)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:730)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:714)
(48 more lines...)
org.mockito.exceptions.misusing.UnfinishedStubbingException: org.mockito.exceptions.misusing.UnfinishedStubbingException: 
Unfinished stubbing detected here:
-> at org.springframework.batch.item.data.MongoItemWriterTests.testResourceKeyCollision(MongoItemWriterTests.java:249)

E.g. thenReturn() may be missing.
Examples of correct stubbing:
    when(mock.isOk()).thenReturn(true);
    when(mock.isOk()).thenThrow(exception);
(67 more lines...)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
	at org.springframework.batch.item.data.MongoItemWriter.doWrite(MongoItemWriter.java:138)
	at org.springframework.batch.item.data.MongoItemWriter.write(MongoItemWriter.java:107)
	at org.springframework.batch.item.data.MongoItemWriterTests.testWriteNoTransactionWithCollection(MongoItemWriterTests.java:93)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
	at org.springframework.batch.item.data.MongoItemWriter.doWrite(MongoItemWriter.java:143)
	at org.springframework.batch.item.data.MongoItemWriter.write(MongoItemWriter.java:107)
	at org.springframework.batch.item.data.MongoItemWriterTests.testWriteNoTransactionNoCollection(MongoItemWriterTests.java:78)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{["name": "foo"]}> but was:<{[ "name" : "foo" ]}>
org.junit.ComparisonFailure: expected:<{["name": "foo"]}> but was:<{[ "name" : "foo" ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.builder.MongoItemReaderBuilderTests.testVarargs(MongoItemReaderBuilderTests.java:143)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
org.junit.ComparisonFailure: expected:<{[]}> but was:<{[ ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.builder.MongoItemReaderBuilderTests.testBasic(MongoItemReaderBuilderTests.java:72)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<{["name": "foo"]}> but was:<{[ "name" : "foo" ]}>
org.junit.ComparisonFailure: expected:<{["name": "foo"]}> but was:<{[ "name" : "foo" ]}>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.batch.item.data.builder.MongoItemReaderBuilderTests.testCollection(MongoItemReaderBuilderTests.java:122)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
	at org.springframework.batch.item.data.MongoItemWriter.doWrite(MongoItemWriter.java:143)
	at org.springframework.batch.item.data.MongoItemWriter.write(MongoItemWriter.java:107)
	at org.springframework.batch.item.data.builder.MongoItemWriterBuilderTests.testBasicWrite(MongoItemWriterBuilderTests.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;)Ljava/lang/Object;
	at org.springframework.batch.item.data.builder.MongoItemWriterBuilderTests.testDelete(MongoItemWriterBuilderTests.java:71)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
(41 more lines...)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoOperations.save(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
	at org.springframework.batch.item.data.MongoItemWriter.doWrite(MongoItemWriter.java:138)
	at org.springframework.batch.item.data.MongoItemWriter.write(MongoItemWriter.java:107)
	at org.springframework.batch.item.data.builder.MongoItemWriterBuilderTests.testWriteToCollection(MongoItemWriterBuilderTests.java:81)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(43 more lines...)
org.mockito.exceptions.misusing.UnfinishedVerificationException: org.mockito.exceptions.misusing.UnfinishedVerificationException: 
Missing method call for verify(mock) here:
-> at org.springframework.batch.item.data.builder.MongoItemWriterBuilderTests.testDelete(MongoItemWriterBuilderTests.java:71)

Example of correct verification:
    verify(mock).doSomething()

Also, this error might show up because you verify either of: final/private/equals()/hashCode() methods.
(60 more lines...)