Skip to content

Commit 425143e

Browse files
Try to fix test-error for duplicated entries in set
1 parent 99a0774 commit 425143e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/support/copier/working/HashSetChangedObjectCollector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public void collectChangedObject(final Object changedObject)
5858
public WorkingCopierResult<T> toResult()
5959
{
6060
return new WorkingCopierResult<>(
61-
this.entityObjects.stream().collect(Collectors.toUnmodifiableSet()),
62-
this.nonEntityObjects.stream().collect(Collectors.toUnmodifiableSet())
61+
this.entityObjects.stream().collect(Collectors.toSet()),
62+
this.nonEntityObjects.stream().collect(Collectors.toSet())
6363
);
6464
}
6565
}

spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/shared/repositories/real/life/example/PositionRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616
package software.xdev.spring.data.eclipse.store.integration.shared.repositories.real.life.example;
1717

18-
import org.springframework.data.repository.CrudRepository;
18+
import org.springframework.data.repository.ListCrudRepository;
1919

2020

21-
public interface PositionRepository extends CrudRepository<Position, String>
21+
public interface PositionRepository extends ListCrudRepository<Position, String>
2222
{
2323
}

spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/shared/tests/RealLifeTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void testReplacePositionWithNewArticleAndUseImmutableList()
190190
{
191191
this.buildDefaultModelAndSaveIt();
192192

193-
final List<Position> positions = TestUtil.iterableToList(this.positionRepository.findAll());
193+
final List<Position> positions = this.positionRepository.findAll();
194194
createAndAddShoeToPosition(positions);
195195
this.positionRepository.saveAll(positions);
196196

0 commit comments

Comments
 (0)