Skip to content

Commit bdf028a

Browse files
committed
Merge branch '2.0.x'
2 parents 56542ef + 99f33d5 commit bdf028a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/rest/RepositoryRestMvcAutoConfigurationTests.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
package org.springframework.boot.autoconfigure.data.rest;
1818

1919
import java.net.URI;
20-
import java.util.Date;
2120

22-
import com.fasterxml.jackson.core.JsonProcessingException;
23-
import com.fasterxml.jackson.databind.ObjectMapper;
2421
import org.junit.After;
2522
import org.junit.Test;
2623

@@ -145,13 +142,6 @@ public void backOffWithCustomConfiguration() {
145142
assertThat(bean.getBaseUri()).isEqualTo(URI.create(""));
146143
}
147144

148-
public void assertThatDateIsFormattedCorrectly(String beanName)
149-
throws JsonProcessingException {
150-
ObjectMapper objectMapper = this.context.getBean(beanName, ObjectMapper.class);
151-
assertThat(objectMapper.writeValueAsString(new Date(1413387983267L)))
152-
.isEqualTo("\"2014-10\"");
153-
}
154-
155145
private void load(Class<?> config, String... environment) {
156146
AnnotationConfigWebApplicationContext applicationContext = new AnnotationConfigWebApplicationContext();
157147
applicationContext.setServletContext(new MockServletContext());

0 commit comments

Comments
 (0)