Skip to content

Commit

Permalink
add comment, rename test class
Browse files Browse the repository at this point in the history
  • Loading branch information
agrgr committed Jun 23, 2024
1 parent 57a2b58 commit 4e2fcd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public void write(Object source, final AerospikeWriteData data) {

AerospikePersistentProperty versionProperty = entity.getVersionProperty();
if (versionProperty != null) {
// version is read as Integer because Record.generation is integer
Integer version = accessor.getProperty(versionProperty, Integer.class);
data.setVersion(version);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ void shouldWriteAndReadNestedPOJOs() {
new Address(new Street("Street1", 1), 1),
new Address(new Street("Street2", 2), 2)
);
SampleClasses.idAndAddressesList testObj = new idAndAddressesList("testId", addressesList);
IdAndAddressesList testObj = new IdAndAddressesList("testId", addressesList);
converter.write(testObj, forWrite);

assertThat(forWrite.getBins()).containsOnly(
Expand All @@ -774,9 +774,9 @@ void shouldWriteAndReadNestedPOJOs() {
);

AerospikeReadData forRead = AerospikeReadData.forRead(forWrite.getKey(), aeroRecord(forWrite.getBins()));
SampleClasses.idAndAddressesList actual = converter.read(idAndAddressesList.class, forRead);
IdAndAddressesList actual = converter.read(IdAndAddressesList.class, forRead);

assertThat(actual).isEqualTo(new idAndAddressesList("testId", addressesList));
assertThat(actual).isEqualTo(new IdAndAddressesList("testId", addressesList));
}

private <T> void assertWriteAndRead(int converterOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ private Person(Set<Address> addresses) {
}

@Data
public static class idAndAddressesList {
public static class IdAndAddressesList {

@Id
final String id;
Expand Down

0 comments on commit 4e2fcd0

Please sign in to comment.