DATAREST-1249 - Polishing.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.json;
|
||||
|
||||
import static com.fasterxml.jackson.annotation.JsonProperty.Access.READ_ONLY;
|
||||
import static com.fasterxml.jackson.annotation.JsonProperty.Access.*;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
import static org.mockito.Mockito.*;
|
||||
@@ -209,7 +209,7 @@ public class DomainObjectReaderUnitTests {
|
||||
assertThat(result.version, is(1L));
|
||||
}
|
||||
|
||||
@Test //DATAREST-1006
|
||||
@Test // DATAREST-1006
|
||||
public void doesNotWipeReadOnlyJsonPropertyForPut() throws Exception {
|
||||
|
||||
SampleUser sampleUser = new SampleUser("name", "password");
|
||||
@@ -581,7 +581,7 @@ public class DomainObjectReaderUnitTests {
|
||||
@JsonIgnore String password;
|
||||
Map<String, SampleUser> relatedUsers;
|
||||
|
||||
@JsonProperty(access = READ_ONLY)
|
||||
@JsonProperty(access = READ_ONLY) //
|
||||
private Date lastLogin;
|
||||
|
||||
public SampleUser(String name, String password) {
|
||||
|
||||
Reference in New Issue
Block a user